Piyush, Sadly, you cannot do it like that. This is because Kannel operates asynchronously, so it won't be able to return the message id until the smsc has accepted it. Think about it: the link with the smsc could be down, yet kannel would accept the message (and place it in it's internal queue).
You need to pass some sort of id on your dlr-url, but cannot be that one, because you don't have it when you enqueue the message. Most people inserts the message into a db table before sending, and uses the id from that table on the dlr-url. Hope it helps, Alejandro On Tue, May 19, 2009 at 4:53 PM, Piyush <[email protected]> wrote: > Hi, > When I call... > > http://XX.XXX.X.XXX:13013/cgi-bin/sendsms?username=xxxxx&password=xxxxx&to=xxxxxxxxxx&text=hello&from=xxxxx&dlr-mask=31 > > it returns 0: accepted for delivery. > But I want it to return message id. So that, later I can check out the > status of the message in dlr through these specific message id. > > Regards, > Piyush Khandelwal > > -------------------- > ibibo Mail :: Get your mail box with Music, Skins, Greetings and Stationery > now! <http://mail.ibibo.com/?from=footer> >
