Hi,

I am currently using Kannel to send either SMS or binaries for our application. Now the problem is, that, so far, we have been sending the SMS request using a php function I took from the mailing list some times ago

function send_req ($string)
{
       require_once ('/webhome/functions/configurations/kannel.inc');
       $request =      'http://'.$kannel['host'].':'.$kannel['port'].
                       '/cgi-bin/sendsms'.
                       '?user='.$kannel['user'].
                       '&pass='.$kannel['pass'].
                       $string;

       $result = @file( $request );
       return 'ok';
}

right now I send the request and consider it as successful, which is not necessarily right (some carriers don't accept binaries for example, or problems with the recipient phone number etc etc ...)
the access.log file stores
2005-08-17 23:52:01 Sent SMS  for success
2005-08-17 22:30:53 FAILED Send SMS for failure

Is it possible to get that status during the request process (even if I have to modify my script to keep an http connection open or something.) ?
Thank you for your help.

Eric

Reply via email to