Thanks for the input. Lack of proper documentation really causes issues with things like this. I think it&#39;s noted somewhere on Voipinfo that SetVar was to be used with version 1.0 and prior to 1.6. It turned out that the issue was with s,1,Answer() for first leg of the call. Taking that out fixed the issue and now the whole context is read. Previously I was mistakenly looking at the second leg which had everything garbled.<div>

<br><div class="gmail_quote">On Tue, Feb 15, 2011 at 12:05 AM, Mike Diehl <span dir="ltr">&lt;<a href="mailto:mdiehl@diehlnet.com">mdiehl@diehlnet.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

The syntax that I use is:<br>
<br>
SetVar: username=justincase<br>
<br>
I&#39;m using Asterisk 1.6.2.  Hope that helps.<br>
<br>
Mike.<br>
<div class="im"><br>
<br>
&quot;Bruce B&quot; &lt;<a href="mailto:bruceb444@gmail.com">bruceb444@gmail.com</a>&gt; wrote:<br>
&gt; Hi Everyone,<br>
&gt;<br>
&gt; I am trying to pass a variable using the .call files but it turns out<br>
blank.<br>
&gt; Can someone please point out what might be wrong here:<br>
&gt;<br>
&gt; */tmp/spool-file.sh*<br>
&gt; *----------------------------------------------------------------------*<br>
</div>&gt; echo &quot;Channel: Local/s@callback_leg*1*/n<br>
<div class="im">&gt; CallerID: \&quot;Call-back\&quot; &lt;123456&gt;<br>
&gt; MaxRetries: 0<br>
&gt; RetryTime: 10<br>
&gt; WaitTime: 45<br>
</div>&gt; Context: callback_leg*2*<br>
<div class="im">&gt; Extension: s<br>
&gt; Priority: 1<br>
&gt; Set: myNum=$1<br>
&gt; Set: partyNum=$2<br>
&gt; AlwaysDelete: Yes<br>
&gt; Archive: Yes&quot; &gt; $call_file<br>
&gt;<br>
&gt; *Context - callback_leg1*<br>
&gt; *----------------------------------------------------------------------*<br>
&gt; [callback_leg1]<br>
&gt; exten =&gt; s,1,Answer()<br>
&gt; exten =&gt; s,1,NoOp(PartyNum=${partyNum})<br>
&gt; exten =&gt; s,n,NoOp(MyNum=${myNum})<br>
&gt; exten =&gt; s,n,Hangup()<br>
&gt;<br>
&gt;<br>
&gt; Both the NoOp for $partyNum and $myNum come back blank. Does this have<br>
&gt; anything to do with the use of Local Channel?<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
<br>
</div>--------------------------------<br>
 --<br>
&gt; _____________________________________________________________________<br>
&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
&gt; New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
&gt;                <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
&gt;<br>
&gt; asterisk-users mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
<br>
--<br>
<br>
Take care and have fun,<br>
Mike Diehl.<br>
<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>