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

Niksa Baldun niksa.baldun at lumiss.hr
Sun Mar 27 06:22:52 MST 2005


Well, you could use the fact that ChanIsAvail command returns session ID
together with channel name and remember it in your macro for normal
calls, something like this:

[globals]
BUSYOUTCHAN=

[macro-pstn-out]
exten => s,1,ChanIsAvail(SIP/potsoutbound)
exten => s,2,SetGlobalVar(BUSYOUTCHAN=${AVAILCHAN})
exten => s,3,Cut(FREECHAN=AVAILCHAN,,1)
exten => s,4,Dial(${FREECHAN}/${ARG1},30)
exten => s,102,Congestion

BUSYOUTCHAN variable should now contain the correct name of session to
hang up:

exten => s,x,SoftHangup(${BUSYOUTCHAN})

in your 911 macro should work. Bear in mind that this will only work if
your outbound link contains a single line. Achieving the same for
multiple lines is harder by an order of magnitude, due to limitations in
* config.


John Goerzen wrote:

>On 2005-03-26, Niksa Baldun <niksa.baldun at lumiss.hr> wrote:
>  
>
>>It is probably a SPA-3000 problem. I have tried a similar setup (not for
>>911, I need to hangup a phone) and it works with ISDN phones and
>>Swisswoice SIP phone, but not with BudgetOne, for example. The phone
>>just won't drop the line for some reason. Hope this helps.
>>    
>>
>
>It maybe set me down the right path.
>
>As I mentioned, SoftHangup(SIP/potsoutbound) doesn't work.
>
>However, if I get the name of a specific connection -- for instance,
>SIP/potsoutbound-7d5c, I can use the Manager command Hangup to hang up
>that particular connection, and it works.
>
>However, the name of the connection isn't predictable, and I can't
>figure out how to do this from the dialplan.
>
>Suggestions are still welcome :-)
>
>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