[asterisk-users] identifying channel for softhangup
Danny Nicholas
danny at debsinc.com
Tue Dec 29 14:54:57 CST 2009
You could do a System(core show channels) and grep out 911 and kill
everything else; probably easier as an AGI call that a dialplan function,
but both can be done.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jeremy Kister
Sent: Tuesday, December 29, 2009 2:46 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] identifying channel for softhangup
On 12/29/2009 3:23 PM, Danny Nicholas wrote:
> Most of the asterisk-dev members read this discussion (In My Experience).
> ${EXTEN} in the case you state would be SIP/vgw1-00000075.
> Perhaps this link would be helpful
> http://www.voip-info.org/wiki/view/Asterisk+Detailed+Variable+List
Thanks for the reply,
But I think ${EXTEN} would be in the channel name space - i need
something in the global name space that can let me identify the channel.
I'm trying to set up a 911 system just like Christian Hoffmeyer's
example at http://www.voip-info.org/wiki/view/Asterisk+tips+911
So, someone could be occupying my single land line with a
non-emergency phone call. this single land-line is connected to my
Cisco 1760V on FXO port 3/0. I simply am looking for something so
that if anyone dials "911", the first thing that happens is that a
SoftHangup(SIP/vgw1-XXX) is executed, and then the call goes out the
landline. then if a second 911 call goes out, then it goes out over sip.
I have all that working, except the SoftHangup -- because the channel
name is not static. So I need to look it up somehow on the fly, or
configure the channel name to be static/predictable.
--
Jeremy Kister
http://jeremy.kister.net./
_______________________________________________
-- 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