$msgid=123;
$myurl=url_encode("http://myfunnyhost.com/dlr-receive.php?msgid=$msgid";)

Then you post to kannel:
http://mykannelhost/sendsms?to=004917.......&dlr-mask=31&dlr-url=$myurl

Regards
Falko

Am 09.06.2009 um 13:03 schrieb Latitude Berlin:

Hi Falko,

I assume that the id will be sent in send-sms URL request and that whould be put in DLR URL to have the mapping. Is this correct? How to send id in send-sms req and do the mapping?

Thanks.

On Tue, Jun 9, 2009 at 12:21 PM, Falko Ziemann <[email protected]> wrote:
Generate your own ID and add it to the DLR-URL.

When you give the DLR-URL to kannel inside the sendsms add &id=12345 to the dlr-url.

Regards
Falko

Am 09.06.2009 um 12:12 schrieb Latitude Berlin:

If my application is sending a lot me SMS messages, then on receiving DLR, how may I know for which SMS message this DLR is for? I know message-id will be there but how can I decide which message-id is for which sent message?



On Tue, Jun 9, 2009 at 12:05 PM, Alejandro Guerrieri <[email protected] > wrote:
Not directly, you need DLR's for that.

This is because the sending is asynchronous, so kannel might not be able to give back a message id until the external smsc accepts the message (which may happen an hour later, for example).

Regards,

Alejandro


On Tue, Jun 9, 2009 at 11:56 AM, Latitude Berlin <[email protected] > wrote:
Hi,

I need to store message-ids of SMS messages in my application. Is it possible that when I send send-sms request to Kannel (via HTTP), Kannel reports the message-id of the sms to my application through a Servlet?

Thanks a lot.

Cheers





Reply via email to