Try Set instead of SetVar.<br><br><div class="gmail_quote">On Sat, Feb 12, 2011 at 9:59 PM, Dan Dan <span dir="ltr">&lt;<a href="mailto:dani.mani.99@gmail.com">dani.mani.99@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br><br>I am having trouble passing variables via the call files, here is my call file via the php:<br><br>    fputs($oSocket, &quot;Action: login\r\n&quot;);<br>    fputs($oSocket, &quot;Events: off\r\n&quot;);<br>    fputs($oSocket, &quot;Username: $strUser\r\n&quot;);<br>

    fputs($oSocket, &quot;Secret: $strSecret\r\n\r\n&quot;);<br>    fputs($oSocket, &quot;Action: originate\r\n&quot;);<br>    fputs($oSocket, &quot;Channel: $strChannel\r\n&quot;);<br>    fputs($oSocket, &quot;WaitTime: $strWaitTime\r\n&quot;);<br>

    fputs($oSocket, &quot;CallerId: $strCallerId\r\n&quot;);<br>    fputs($oSocket, &quot;Exten: 3001\r\n&quot;);<br>    fputs($oSocket, &quot;Context: $strContext\r\n&quot;);<br>    fputs($oSocket, &quot;Priority: $strPriority\r\n&quot;);<br>

    fputs($oSocket, &quot;MaxRetries: $strMaxReTry\r\n&quot;);<br>    fputs($oSocket, &quot;RetryTime: $strRetryTime\r\n&quot;);<br>    fputs($oSocket, &quot;SetVar: DIAL1=$number1\r\n&quot;);<br>    fputs($oSocket, &quot;SetVar: DIAL2=$number2\r\n&quot;);<br>

    fputs($oSocket, &quot;SetVar: AcceptParallel=$ap\r\n\r\n&quot;);<br>    fputs($oSocket, &quot;Action: Logoff\r\n\r\n&quot;);<br><br>Here I am trying to set three variables but they do not seem to be passed on to the extensions for dialing .... Am I following the right syntax ?<br>

<br>Thanks<br>-dani<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>