Arquivo extensions.conf

De Manuais Informática - IES San Clemente.
Ir a la navegación Ir a la búsqueda
; extensions.conf - the Asterisk dial plan
;
; Static extension configuration file, used by
; the pbx_config module. This is where you configure all your 
; inbound and outbound calls in Asterisk. 
; 
; This configuration file is reloaded 
; - With the "dialplan reload" command in the CLI
; - With the "reload" command (that reloads everything) in the CLI

;
; The "General" category is for certain variables.  
;
[general]
static=yes
writeprotect=no
clearglobalvars=no

[buzonvoz]
; Acceso a buzon de voz con extension + password
exten => 8000,1,VoicemailMain

; Acceso directo a buzon de voz solicitando solamente password.
exten => 8001,1,VoicemailMain(${CALLERID(num)}@default)


[latencia]
; Extension para evaluar latencias.
exten => 8100,1,Playback(demo-echotest) ; Let them know what's going on
exten => 8100,n,Echo                    ; Do the echo test
exten => 8100,n,Playback(demo-echodone) ; Let them know it's over
exten => 8100,n,Goto(s,6)               ; Start over

[conferencias]
exten => 8500,1,MeetMe(100,iM)
exten => 8500,1,Playback(conf-thereare)
exten => 8500,n,MeetMeCount(100)
exten => 8500,n,Playback(conf-peopleinconf)


[macro-extension]
;esta macro recibira dous parámetros
;o primero indica o dispositivo ó que hai que chamar
;o segundo e o número do buzón de voz ó que desviar a chamada
exten => s,1,NoOp(chamada para ${ARG1})
exten => s,n,Dial(${ARG1},20)
exten => s,n,Goto(s-${DIALSTATUS},1)

; si esta ocupado, reprodúcese a mensaxe correspondente
exten => s-BUSY,1,VoiceMail(${ARG2},b)
exten => s-BUSY,n,Hangup

; si non contesta, reprodúcese a mensaxe de "non dispoñible"
exten => s-NOANSWER,1,VoiceMail(${ARG2},u)
exten => s-NOANSWER,n,Hangup

; en calqueira outro caso, facemos o mesmo que si non contesta.
exten => s-.,1,Goto(s-NOANSWER,1)

;-------------------------------------------
; Ramiro
; Grabar sonidos para IVR
;------------------------------------------
[grabacion]
exten => 205,1,Wait(2) 
exten => 205,2,Record(/tmp/asterisk-recording:gsm) 
exten => 205,3,Wait(2)
exten => 205,4,Playback(/tmp/asterisk-recording)
exten => 205,5,wait(2)
exten => 205,6,Hangup

[deeper]
exten => s,1,Background(dipa)
exten => s,2,Goto(secretaria,s,1)

[secretaria]
exten => s,1,Background(secretaria)
exten => 1,1,Goto(deeper,s,1)
exten => 2,1,Goto(informatica,s,1)

[informatica]
exten => s,1,Background(informatica)
exten => s,2,Dial(SIP/7000)
exten => s,3,Hangup()
exten => 0,1,Goto(ivr,100)
exten => 1,1,Goto(Menu,s,1)

[Menu]
exten => s,1,Set(CHANNEL(musicclass)=default); 
exten => s,2,Wait(3) ;espera 3 segundos
exten => s,3,Set(TIMEOUT(digit)=5) ; 5 segundos es el tiempo que espera entre el primer digito y los sucesivos 
exten => s,4,Set(TIMEOUT(response)=10) ; 10 segundos es el tiempo que espera para que el llamante presione una tecla 

exten => s,5,BackGround(introducion-menu-ies) ; presenta el menu vocal y al mismo tiempo escucha si el llamante presiona alguna tecla 
exten => s,6,WaitExten() ; espera que el llamante presione alguna tecla 

exten => 1,1,Goto(informatica,s,1)
exten => 2,1,Goto(secretaria,s,1)
exten => i,1,Playback(invalid)
exten => i,2,Playback(goodbye)
exten => i,3,Hangup

exten => t,1,Goto(Menu,s,2) ;si dentro de 10 segundo el llamante no presiona ninguna tecla vuelve a presentar el menu vocal 
exten => h,1,Hangup ; si el llamante cuelga ejecuta la extension h

[ivr]
exten => 100,1,Answer
exten => 100,2,Goto(Menu,s,1)

;------------------------------------------


[provinciales]

[internacionales]

[moviles]

[exteriores]

[personal]
include => buzonvoz
include => latencia
include => conferencias
include => colas

include => grabacion
include => ivr

exten => 5000,1,Macro(extension,SIP/5000,5000)
exten => 5001,1,Macro(extension,SIP/5001,5001)
exten => 5002,1,Macro(extension,SIP/5002,5002)
exten => 5003,1,Macro(extension,SIP/5003,5003)
exten => 5004,1,Macro(extension,SIP/5004,5004)
exten => 5005,1,Macro(extension,SIP/5005,5005)
exten => 5006,1,Macro(extension,SIP/5006,5006)
exten => 5007,1,Macro(extension,SIP/5007,5007)


exten => 6000,1,Macro(extension,IAX2/6000,5000)
exten => 6001,1,Macro(extension,IAX2/6001,5001)
exten => 6002,1,Macro(extension,IAX2/6002,5002)
exten => 6003,1,Macro(extension,IAX2/6003,5003)
exten => 6004,1,Macro(extension,IAX2/6004,5004)
exten => 6005,1,Macro(extension,IAX2/6005,5005)
exten => 6006,1,Macro(extension,IAX2/6006,5006)
exten => 6007,1,Macro(extension,IAX2/6007,5007)

exten => 7000,1,Macro(extension,SIP/7000,7000)
exten => 0000,1,Macro(extension,SIP/0000,0000)


exten => 3333,1,Background(agent-pass)

[colas]
exten=> 8600,1,Answer
exten=> 8600,2,Set(CHANNEL(musicclass)=blues)
exten=> 8600,3,DigitTimeout,5
exten=> 8600,4,ResponseTimeout,10
exten=> 8600,5,Backgroun(welcome)
exten=> 8600,6,Queue(administradores,tT)
exten=> 8600,7,Hangup


exten=> 8601,1,Answer
exten=> 8601,2,Set(CHANNEL(musicclass)=blues)
exten=> 8601,3,MusicOnHold

;--------------------------------------------------
; Configuracion conexion LDAP: Ramiro
;------------------------------------------------------
[users]
switch => Realtime/@

[demo]
switch => Realtime/@

[default]
include => users
include => demo
;------------------------------------------------------

[from-pstn]
exten => s,1,Answer
exten => s,n,VoiceMail(5000)