;-----------------------------------------------------------------------------
; File: extensions.conf
;
;             ---- Automatically generated, do not edit ----
;
; (c) IPTAM GmbH, Karsten Wemheuer, 2005 - 2010
;-----------------------------------------------------------------------------


[general]
static=yes
writeprotect=yes
priorityjumping=yes
clearglobalvars=yes

[globals]
HopCountMax = 7
OptionCFNOCIDfirst = 0
USE_ORIGVM = 1
MonitorEnabled = 0
TrunkSelection = 0
OptionCD = 1
LAST_RESSORT = text,text,tone,tone
def_lang = de
MONITOR_EXEC = /usr/bin/asterisk-monitor

[Standard]
exten => 100,1,Dial(SIP/phone1)
exten => 100,2,Gosub(sub-dial-result,s,1)
exten => 100,hint,SIP/phone1

exten => 150,1,Dial(SIP/phone2)
exten => 150,2,Gosub(sub-dial-result,s,1)
exten => 150,hint,SIP/phone2

exten => 180,1,Dial(SIP/phone3)
exten => 180,2,Gosub(sub-dial-result,s,1)
exten => 180,hint,SIP/phone3

[sub-dial-result]
exten => s,1,Verbose(1,HANGUPCAUSE is ${HANGUPCAUSE} and DIALSTATUS is ${DIALSTATUS})
exten => s,n,GotoIf($[${HANGUPCAUSE} = 1]?unalloc)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s,n(unalloc),Hangup(1)

exten => s-NOANSWER,1,hangup

exten => s-BUSY,1,Busy

exten => s-CHANUNAVAIL,1,Goto(s-CONGESTION,1)

exten => s-ANSWERED,1,Hangup

exten => s-CONGESTION,1,Congestion

[default]
include => Standard


