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