;
; A database is not recomended as this file is ment to be changed only when
; large changes are done on the system. The database system is likely to
; expand globals in the extension part of paterns, can be tested by setting
; writeprotect=no
;
[general]
static=yes
writeprotect=yes

[globals]

[default]

exten => 1,1,Dial(SIP/1236,20,tT)
exten => 1,2,Goto(dial-${DIALSTATUS},${EXTEN},1)

exten => 2,1,Dial(SIP/1238,20,tT)
exten => 2,2,Goto(dial-${DIALSTATUS},${EXTEN},1)

exten => 3,1,Dial(SIP/1239,20,tT)
exten => 3,2,Goto(dial-${DIALSTATUS},${EXTEN},1)

exten => 4,1,Dial(SIP/1240,20,tT)
exten => 3,2,Goto(dial-${DIALSTATUS},${EXTEN},1)

[dial-BUSY]

exten => 1,1,Goto(default,4,1)
exten => 2,1,Busy()
exten => 3,1,Busy()
exten => 4,1,Busy()

[dial-ANSWER]
exten => _[1234],1,Hangup()

[dial-NOANSWER]
exten => _[1234],1,Hangup()

[dial-CONGESTION]
exten => _[1234],1,Hangup()

[dial-CHANUNAVAIL]
exten => _[1234],1,Hangup()

[dial-CANCEL]
exten => _[1234],1,Hangup()
