Re: Delivery report issue
Ahmed Shabana <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
?take a pcap capture from your java app traffic . to able to compare it with kannel one. ________________________________ From: Mohammad Hossein Shafinia <[email protected]> Sent: Tuesday, March 3, 2015 9:02 AM To: Ahmed Shabana Cc: hafez ahmad; mohammad hossein shafinia; [email protected]; Hadi Bahreinian; devel-request; Farzad Tehrani Subject: Re: Delivery report issue Thanks all. Yes we set the value to 31 so all the states we can get. http://127.0.0.1:13013/cgi-bin/sendsms?username=negahbanan&password=shorapasses&from=5544&to=992987******&text=$TEXT&udh=$UDH&charset=UTF-8&coding=2&dlr-mask=31&dlr-url=http%3A%2F%2F127.0.0.1%3A7777%2Fservices%2Fdlr.php%3FsmscID%3D%25i%26dlr%3D%25d%26answer%3D%25A%26to%3D%25p%26from%3D%25P%26ts%3D%25T%26smsID%3D12099298728278320150303122824%26charset%3D%25C%26kannel_id%3D%25I<http://127.0.0.1:13013/cgi-bin/sendsms?username=negahban&password=shorapass&from=5544&to=992987******&text=$TEXT&udh=$UDH&charset=UTF-8&coding=2&dlr-mask=31&dlr-url=http%3A%2F%2F127.0.0.1%3A7777%2Fservices%2Fdlr.php%3FsmscID%3D%25i%26dlr%3D%25d%26answer%3D%25A%26to%3D%25p%26from%3D%25P%26ts%3D%25T%26smsID%3D12099298728278320150303122824%26charset%3D%25C%26kannel_id%3D%25I> But just we get 8 and we didn't get any thing else after that. I think SMSC does support delivery reports because some other teams who use java for developing the application for connecting to SMSC can get delivery report from the phone, but I don't know how I can use Kannel to get that report. Kind regards, Mohammad Hossein On Tue, Mar 3, 2015 at 12:14 PM, Ahmed Shabana <[email protected]<mailto:[email protected]>> wrote: Hi Mohammad , Seem you have a little bit confuse , if you continue reading the section below this "If you want multiple report types, you simply add the values together. For example if you want to get delivery success and/or failure you set the dlr-mask value to 1+2. and so on. If you specifydlr-mask on the URL you pass on to Kannel you also need to specify dlr-url. dlr-url should contain the URL to which Kannel should place a HTTP requests once the delivery report is ready to be delivered back to your system" you can think on it as a bit-operation i.e. 0000 0001 = delivery success request set 0000 0010 = delivery failure request set so 0000 0011 = delivery success set AND delivery failure set? and so on Best regards, Ahmed Shabana ________________________________ From: devel <[email protected]<mailto:[email protected]>> on behalf of hafez ahmad <[email protected]<mailto:[email protected]>> Sent: Tuesday, March 3, 2015 8:00 AM To: mohammad hossein shafinia Cc: [email protected]<mailto:[email protected]>; [email protected]<mailto:[email protected]>; Hadi Bahreinian; mohammad hossein shafinia; devel-request Subject: Re: Delivery report issue Hi Mohammad, From my experience some SMSC return 16 or 8 only , so in this case you should consider it delivered to the user if you get 8,-you can check with operator - also you can catch the acknowledgment text from the DLR url to figure out the message states. Best, Hafez Ahmad On Mar 3, 2015 10:51 AM, "mohammad hossein shafinia" <[email protected]<mailto:[email protected]>> wrote: Dear all, I hope everything is great on your end. Regarding kannel tutorial<http://kannel.org/download/1.4.4/userguide-1.4.4/userguide.html#delivery-reports>, we always get number 8 that means delivery to SMSC but we never get 1 which means successful delivery to phone so we cant understand for which numbers the contents are delivered so we can send the hidden message to them to charge them. When you deliver SMS to Kannel you have to indicate what kind of delivery report messages you would like to receive back from the system. The delivery report types currently implemented are: 1: delivery success 2: delivery failure 4: message buffered 8: smsc submit 16: smsc reject 32: smsc intermediate notifications I would appreciate it if you kindly help us in this order. Kind regards, Mohammad Hossein