Hi,
I see. I thought maybe that was the case with %a & %b only being used with
a SMSC and not the web interface. How easy would this be to add (I do a
little programming but haven't looked at the code yet)? Adding the DLR-URL
into the post is going to be too difficult in the environment for the box
that is doing the original HTTP post to the kannel server.
Or I guess a perl script listening on a socket that can respond to a HTTP
request acting as a middle man (client of the php dlr.php script using http
perl module and the kannel 15015 web sever) would do?
Suggestions welcome.
Thank you,
Antonio
----- Original Message -----
From: "Cezary Siwek" <[email protected]>
To: <[email protected]>
Sent: Tuesday, April 21, 2009 10:53 PM
Subject: Re: Kannel dlr-url %a http post shows is always empty in ?
Hello,
The Kannel 's DLR storage does not store the message body. If you need it
in your application, you have to add message body into dlr-url when you
submitting SMS.
in example:
$text = "this is a test";
$dlrurl=
urlencode("http://host/dlr.php?status=%d&body=$text&message_id=$my_internal_id");
$url =
"http://kannelhost:port/cgi-bin/sendsms?..........dlr-mask=31&dlr-url=$dlrurl";
Regards,
Cezary Siwek