[asterisk-users] Asterisk Call File using Local Channel not passing Variable back to Dialplan

Bruce B bruceb444 at gmail.com
Mon Feb 14 17:16:32 CST 2011


Hi Everyone,

I am trying to pass a variable using the .call files but it turns out blank.
Can someone please point out what might be wrong here:

*/tmp/spool-file.sh*
*----------------------------------------------------------------------*
echo "Channel: Local/s at callback_leg*1*/n
CallerID: \"Call-back\" <123456>
MaxRetries: 0
RetryTime: 10
WaitTime: 45
Context: callback_leg*2*
Extension: s
Priority: 1
Set: myNum=$1
Set: partyNum=$2
AlwaysDelete: Yes
Archive: Yes" > $call_file

*Context - callback_leg1*
*----------------------------------------------------------------------*
[callback_leg1]
exten => s,1,Answer()
exten => s,1,NoOp(PartyNum=${partyNum})
exten => s,n,NoOp(MyNum=${myNum})
exten => s,n,Hangup()


Both the NoOp for $partyNum and $myNum come back blank. Does this have
anything to do with the use of Local Channel?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110214/7e915cbe/attachment.htm>


More information about the asterisk-users mailing list