Hi,
I am having trouble passing variables via the call files, here is my call
file via the php:
fputs($oSocket, "Action: login\r\n");
fputs($oSocket, "Events: off\r\n");
fputs($oSocket, "Username: $strUser\r\n");
fputs($oSocket, "Secret: $strSecret\r\n\r\n");
fputs($oSocket, "Action: originate\r\n");
fputs($oSocket, "Channel: $strChannel\r\n");
fputs($oSocket, "WaitTime: $strWaitTime\r\n");
fputs($oSocket, "CallerId: $strCallerId\r\n");
fputs($oSocket, "Exten: 3001\r\n");
fputs($oSocket, "Context: $strContext\r\n");
fputs($oSocket, "Priority: $strPriority\r\n");
fputs($oSocket, "MaxRetries: $strMaxReTry\r\n");
fputs($oSocket, "RetryTime: $strRetryTime\r\n");
fputs($oSocket, "SetVar: DIAL1=$number1\r\n");
fputs($oSocket, "SetVar: DIAL2=$number2\r\n");
fputs($oSocket, "SetVar: AcceptParallel=$ap\r\n\r\n");
fputs($oSocket, "Action: Logoff\r\n\r\n");
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 ?
Thanks
-dani
--
_____________________________________________________________________
-- 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