Bruce B
2011-Feb-14 23:16 UTC
[asterisk-users] Asterisk Call File using Local Channel not passing Variable back to Dialplan
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>
Mike Diehl
2011-Feb-15 05:05 UTC
[asterisk-users] Asterisk Call File using Local Channel not passing Variable back to Dialplan
The syntax that I use is: SetVar: username=justincase I'm using Asterisk 1.6.2. Hope that helps. Mike. "Bruce B" <bruceb444 at gmail.com> wrote:> Hi Everyone, > > I am trying to pass a variable using the .call files but it turns outblank.> 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 >-------------------------------- --> _____________________________________________________________________ > -- 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-- Take care and have fun, Mike Diehl.