[asterisk-users] SoftHangup on asterisk 1.8.2.3

Jeremy Kister asterisk-01 at jeremykister.com
Thu Jul 7 13:23:35 CDT 2011


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.



-- 

Jeremy Kister
http://jeremy.kister.net./



More information about the asterisk-users mailing list