[asterisk-users] identifying channel for softhangup

Jeremy Kister asterisk-01 at jeremykister.com
Tue Dec 29 14:45:32 CST 2009


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./



More information about the asterisk-users mailing list