Re: [asterisk-users] SoftHangup on asterisk 1.8.3.2 (renamed)

2011-07-13 Thread Ishfaq Malik
On Tue, 2011-07-12 at 09:13 +0100, Ishfaq Malik wrote:
 On Thu, 2011-07-07 at 14:23 -0400, Jeremy Kister wrote:
  On 7/7/2011 9:32 AM, Ishfaq Malik wrote:
   I'm having the same issue on 1.8.3.2 (with a couple of patches)
  
exten =  s,1,Set(CHAN=${SHELL(asterisk -rx core show channels |  awk
'/^SIP\/vgw1-/ { print $1 }' | head -1)})
  
  
  This turned out to be a PEBKAC error.  A newline was attached to the 
  $CHAN variable.
  
  adding | tr -d '\n' to the end of the command fixed it right up.
  
  
  
 
 Well in that case I'm having a different issue.
 When I do
 channel request hangup SIP/-1136
 I get a 
 Requested Hangup on channel 'SIP/-1136'
 response but the channel never hangs up
 I'm having to restart the asterisk to clear the channels and that is not
 an optimum solution!
 
 Has anyone else encountered this or can see something obvious that I'm
 doing wrong?
 

Worked out what was happening. I was trying to hangup stale channels. As
a stale channel is not being written to or read from the hangup will
never execute.

-- 
Ishfaq Malik
Software Developer
PackNet Ltd

Office:   0161 660 3062


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] SoftHangup on asterisk 1.8.3.2 (renamed)

2011-07-12 Thread Ishfaq Malik
On Thu, 2011-07-07 at 14:23 -0400, Jeremy Kister wrote:
 On 7/7/2011 9:32 AM, Ishfaq Malik wrote:
  I'm having the same issue on 1.8.3.2 (with a couple of patches)
 
   exten =  s,1,Set(CHAN=${SHELL(asterisk -rx core show channels |  awk
   '/^SIP\/vgw1-/ { print $1 }' | head -1)})
 
 
 This turned out to be a PEBKAC error.  A newline was attached to the 
 $CHAN variable.
 
 adding | tr -d '\n' to the end of the command fixed it right up.
 
 
 

Well in that case I'm having a different issue.
When I do
channel request hangup SIP/-1136
I get a 
Requested Hangup on channel 'SIP/-1136'
response but the channel never hangs up
I'm having to restart the asterisk to clear the channels and that is not
an optimum solution!

Has anyone else encountered this or can see something obvious that I'm
doing wrong?

-- 
Ishfaq Malik
Software Developer
PackNet Ltd

Office:   0161 660 3062


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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