CONSOLE=Console/dsp ; Console interface for demo
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest ; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=Zap/G2 ; Trunk interface
;
; Note the 'G2' in the TRUNK variable above. It specifies which group (defined
; in zapata.conf) to dial, i.e. group 2, and how to choose a channel to use in
; the specified group. The four possible options are:
; Timing list for includes is
;
; <time range>|<days of week>|<days of month>|<months>
;
; Note that ranges may be specified to wrap around the ends. Also, minutes are
;
; Here are the entries you need to participate in the IAXTEL
; call routing system. Most IAXTEL numbers begin with 1-700, but
; there are exceptions. For more information, and to sign
el)p, please go to www.gnophone.com or www.iaxtel.com
;
;iaxtel700]
; The SWITCH statement permits a server to share the dialplan with{EXTEN:1}@iaxtt
; another server. Use with care: Reciprocal switch statements are not
; allowed (e.g. both A -> B and B -> A), and the switched server needs
; to be on-line or else dialing can be severly delayed.
;
[iaxprovider]
;switch => IAX2/user:[key]@myserver/mycontext
[local]
;
; Master context for local, toll-free, and iaxtel calls only
;
ignorepat => 9
include => default
include => trunklocal
include => iaxtel700
include => trunktollfree
; ${ARG1} - Device to page
for ANY call
exten => s,1,ChanIsAvail(${ARG1}|js) ; j is for Jump and s iss
exten => s,n,GoToIf([${AVAILSTATUS} = "1"]?autoanswer:fail)
e PolyComs
exten => s,n(autoanswer),Set(_ALERT_INFO="RA") ; This is for thh
tream, Snoms, and Othersr(Call-Info: Answer-After=0) ; This is for the Grandss
st on the Wiki!!!!) ; Add others here and Poo
exten => s,n,Dial(${ARG1}||)
exten => s,n(fail),Hangup
exten => s,n(restart),BackGround(demo-congrats) ; Play a congratulatory message
exten => s,n(instruct),BackGround(demo-instruct) ; Play some instructions
exten => s,n,WaitExten ; Wait for an extension to be dialed.
exten => 2,1,BackGround(demo-moreinfo) ; Give some more information.
exten => 2,n,Goto(s,instruct)
exten => 3,1,Set(LANGUAGE()=fr) ; Set language to french
exten => 1000,1,Goto(default,s,1)
;
; We also create an example user, 1234, who is on the console and has
; voicemail, etc.
;
exten => 3,n,Goto(s,restart) ; Start with the congr463,1 74%