[globals]
[general]
static=yes
writeprotect=no
;In the [general] section, we have set autofallthrough=yes, which tells
;Asterisk to continue when an extension runs out of things to do. If you
;set this to no, then Asterisk will sit and wait for input after all priorities
;have executed. This is most prevalent if the Background() application is
;the last application executed in an extension. If set to yes (which is now
;the default in 1.4), Asterisk will drop the call after Background() finishes
;executing (at the end of the prompt(s) supplied to it). In order to force
;Asterisk to wait for input after the Background() application finishes
;playing the voice prompts supplied to it, we use the WaitExten()
;application.
;It is safest to use the autofallthrough=yes
;command as we don’t want Asterisk hanging around waiting for input
;unless we explicitly tell it to do so
autofallthrough=yes
[default]
exten => s,1,Verbose(1|Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()
[incoming]
exten => s,1,Answer()
exten => s,n,Playback(/basit/MUJHE_RAAT_DIN)
exten => s,n,Hangup()
exten => 123,1,Answer()
exten => 123,n,Background(enter-ext-of-person)
exten => 123,n,WaitExten()
exten => 1,1,Dial(SIP/1000,10)
exten => 1,n,Playback(/basit/MUJHE_RAAT_DIN) ;it’s an mp3 file
exten => 1,n,Playback(vm-nobodyavail)
exten => 1,n,Hangup()
exten => 2,1,Dial(SIP/2000,10)
exten => 2,n,Playback(vm-nobodyavail)
exten => 2,n,Hangup()
exten => i,1,Playback(pbx-invalid)
exten => i,n,Goto(incoming,123,1)
exten => t,1,Playback(vm-goodbye)
exten => t,n,Hangup()
[internal]
exten => 500,1,Verbose(1|Echo test application)
exten => 500,n,Echo()
exten => 500,n,Hangup()
[phones]
include => internal