Hi,

well, actually, this problem is more PHP than Kannel related. It was
discussed in the devel@ mailing list. The problem is when you are trying
to send SMS with sendsms CGI wrapper, if all the parameters are correctly,
this will give you HTTP 202 Accepted, which should mean that "ok, we're
gona try to deliver your message". And afterwards with the help of DLR
(delivery reports) you can be sure that "200 OK", your message was
delivered.

If you are not willing to ignore these PHP warnings, I suggest you to
write your own functions opening sockets with fsockopen() or similar and
then parse the response on your own. 202 is really similar to 200.

Dziugas

On Thu, 4 Mar 2004, Ivars Jukams wrote:

> I can send sms via http request, but I always receive this error:
>
> [error] PHP Warning:
> fopen(http://mykannelserver.com:13013/cgi-bin/sendsms?...) ): failed to open
> stream: HTTP request failed! HTTP/1.0 202 Foo
>
> I do:
> $path = "http://mykannelserver.com:13013/cgi-bin/sendsms?...";;
> fopen($path,"r");
>
> and fopen always returns false, but sms is sent successfully.
>
> So php doesnt know, is kannel up or down at this moment? And also can not
> check, if sms is sent or not.
>
> Maybe this is apache configuration problem? Or PHP? Or kannel?
> Can anybody give me some suggestion...
>
> Ivars
>
>

Reply via email to