[Asterisk-Users] 911 & SoftHangup on SPA-3000

Tim Connolly tim at timsnet.com
Fri Mar 25 19:32:06 MST 2005


	Might be a good idea if we didn't post such scripts.. How many
people are going to accidently call 911 while trying to test this? Use a
test number, like 611 or 411 or how about your boss's cell phone ?
 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of John Goerzen
Sent: Friday, March 25, 2005 6:38 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] 911 & SoftHangup on SPA-3000

Hi,

I have a SPA-3000 and would like to use the 911 recipe from
http://www.voip-info.org/wiki-Asterisk+tips+911.  So I took the simple
recipe and modified it slightly:

exten => 911,1,ChanIsAvail(SIP/potsoutbound)
exten => 911,2,Dial(SIP/potsoutbound/911)
exten => 911,3,Hangup()
exten => 911,102,SoftHangup(SIP/potsoutbound)
exten => 911,103,Wait(1)
exten => 911,104,Goto(1)

Now, I made the appropriate changes -- Changing Zap/1 to
SIP/postoutbound.  Things are working fine if nobody is using the
line.  However, if people are using the line, ChanIsAvail doesn't
detect it.  I thought -- fine, make 103 be a SoftHangup so that when
Dial detects the in-use condition, it will hang up.  Well, asterisk
-vvv shows that the SoftHangup command is running, but it's not
causing the SPA-3000 to drop the line, so this creates an endless
loop.

I have tried the "a" option to SoftHangup.

Any ideas?

Thanks,
John
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list