Hi<br><br>this is my code for * manager:<br><br> $oSocket = fsockopen($strHost, 5038, $errnum, $errdesc) or die("Connection to host failed");<br> fputs($oSocket, "Action: login\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, "Context: $strContext\r\n");<br> fputs($oSocket, "Exten: $strExten\r\n");<br> fputs($oSocket, "Priority: $strPriority\r\n\r\n");
<br> fputs($oSocket, "Action: Logoff\r\n\r\n");<br><br>when call gets answered it goes to my specified exten can I also handle if my call is not got answered b'coz of some reason.
<br><br>that is when get ans goto exten= 101 if call is not got and goto exten=102<br><br>please help.<br><br>thanks<br><br>arun<br><br>