[asterisk-users] dropping line (s) for 911
mir shahnawaz
shahnawazmir at gmail.com
Fri Feb 12 14:49:27 CST 2010
Hi all,
I am trying to implement call dropping funtionality in asterisk for
911. I mean if all lines are busy and someone wants to dial 911 at
least one line should be dropped. Here is my extensions.conf which i
copied from internet. Could somebody help me figure out what is wrong.
Thanks in advance.
[globals]
CONSOLE=Console/dsp ; Console interface for demo
;CONSOLE=DAHDI/1
;CONSOLE=Phone/phone0
TRUNK=DAHDI/g0 ; Trunk interface
EMERGENCY=0
EMERGENCY_TRUNK=DAHDI/g0
EMERGENCY_NUM=12345678 (for testing)
[default]
exten => 911,1,Goto(nineoneone,s,1)
[nineoneone]
exten => s,1,Set(SET_EMERG_FLAG=0)
exten => s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK})
exten => s,n,Set(EMERGENCY=1,g)
exten => s,n,Set(SET_EMERG_FLAG=1)
exten => s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM})
exten => s,s+2(trunkbusy),GotoIf($[${EMERGENCY}=1]?inprogress)
exten => s,n,SoftHangup(${EMERGENCY_TRUNK}-1)
exten => s,n,Wait(12)
exten => s,n,Goto(checkavail)
exten => s,s+2(inprogress),Congestion
exten => s,checkavail+101(notavail),Goto(trunkbusy)
exten => h,1,GotoIf($[${SET_EMERG_FLAG}=1]?3)
exten => h,3,Set(EMERGENCY=0,g)
Regards
Shahnawaz Mir
More information about the asterisk-users
mailing list