Hi all, I need that the phone people Dial and the phone that appear in the .wav filename to be the same phone, how can i do this please.
i’m using originate to the calls outgoing, what wrong recording call with this?:
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: $number\r\n”);
fputs($oSocket, “Context: $strContext\r\n”);
fputs($oSocket, “Priority: $strPriority\r\n\r\n”);
fputs($oSocket, “Action: monitor\r\n”);
fputs($oSocket, “File: $filename\r\n”);
fputs($oSocket, “Mix: $mix\r\n”);
fputs($oSocket, “Action: Logoff\r\n\r\n”);
Thanks in advances