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, "Action: login\r\n");<br> fputs($oSocket, "Events: off\r\n");<br> fputs($oSocket, "Username: $strUser\r\n");<br>
fputs($oSocket, "Secret: $strSecret\r\n\r\n");<br> fputs($oSocket, "Action: originate\r\n");<br> fputs($oSocket, "Channel: $strChannel\r\n");<br> fputs($oSocket, "WaitTime: $strWaitTime\r\n");<br>
fputs($oSocket, "CallerId: $strCallerId\r\n");<br> fputs($oSocket, "Exten: 3001\r\n");<br> fputs($oSocket, "Context: $strContext\r\n");<br> fputs($oSocket, "Priority: $strPriority\r\n");<br>
fputs($oSocket, "MaxRetries: $strMaxReTry\r\n");<br> fputs($oSocket, "RetryTime: $strRetryTime\r\n");<br> fputs($oSocket, "SetVar: DIAL1=$number1\r\n");<br> fputs($oSocket, "SetVar: DIAL2=$number2\r\n");<br>
fputs($oSocket, "SetVar: AcceptParallel=$ap\r\n\r\n");<br> fputs($oSocket, "Action: Logoff\r\n\r\n");<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>