[asterisk-users] force channel hangup

Danny Nicholas danny at debsinc.com
Fri Nov 28 16:42:01 CST 2008


Right you are, Alex.  How about (CLI) Zap restart?  I was thinking zap
destroy channel 1, but that just kills the channel until you do a zap
restart.  That being said, this is an option

exten => _911,1,System('/usr/sbin/asterisk -rx "zap restart"')
exten => _911,2,System('/usr/sbin/asterisk -rx "zap restart"')
Second instance is to start the line that was in use during first restart
exten => _911,3,Dial(Zap/1/ww911,60)
exten => _911,3,Hangup()

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Alex Balashov
Sent: Friday, November 28, 2008 4:25 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] force channel hangup

Because hangup (and other behavioural) directives can only be addressed 
to a particular instance of a channel use, i.e. 
Technology/channel-uniqueID.  The latter are not addressable from the 
dial plan except implicitly.

Danny Nicholas wrote:

> Why wouldn't this work?
> exten => _911,1,Hangup(Zap/1)
> exten => _911,2,Dial(Zap/1/ww911,60)
> exten => _911,3,Hangup()
> 
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Anthony
> Messina
> Sent: Friday, November 28, 2008 3:48 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] force channel hangup
> 
> On Thursday 27 November 2008 20:25:49 Kelvin Chan wrote:
>> Hi guys,
>>
>> I have 1 zap channel in my house shared among couple people. If someone
>> dials 911, I want that zap channel to be disconnected right away to make
>> way for the 911 call.
>>
>> I dug through voip-info.org and didn't find much.
>> Any hints?
>>
> 
> i use this: 
> http://messinet.com/index.php?page_name=Asterisk&wikipage=Asteriske911


-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list