Hi Alejandro, I wish, I could give you the full answer to your question, but I am struggling now for some weeks to recover the full DLR and store it in a MySQL database. I have learned some things in those weeks and I hope, I will finally accomplish it soon.
What I have figured out so far, is: - you receive a first DLR (the "submit_sm_resp ") that serves as an acknowledgement from your provider (e.g., 8). This just means, that the provider has received your request to send the SMS; - it is the second DLR (the "deliver_sm" that you are looking for where the provider confirms whether the message was actually delivered (or whether the attempts to deliver the message failed, the mobile number was incorrect, ect.). This second message is delivered over HTTP and you will have to set up a Call Back URL (something like: http://yourserver.com/dlr.php?smscID=%i&dlr=%d&answer=%A&to=%p&from=%P&ts=%T &smsID=07fceb25372fcc4cb847c7099008500e&charset=%C&kannel_id=%I) This is called the dlr-url which you will have to define in your kannel configuration, and on your server you will need a php script, that your provider can call and submit the values of the delivery report to. These will come in the form of parameters such as '%p' and '%u' (see pggs. 94-95 of the UG). The php script captures these values and stores them in your database. This is the bit where I am stuck :-( There is plenty of material in the UG and in the various forums. What beginning Kannel users like you and I miss, is a good description of how it all comes together. I am sure that once we have see everything working, we will say "Ah, of course!". Anyhow, I hope, the above will help to get you started and maybe the experts can correct me where I am wrong. Regards, Michael On 11/7/11 23:17, "Alejandro Mejia Evertsz" <[email protected]> wrote: > Hello everyone. > Excuse me for this dumb question, but I got lost on the UG regarding this. > I'm using an LG phone and I have MT and MO working fine. > When sending a message via HTTP I'm setting dlr-mask=31 > > I'm getting DLR correctly but only with status = 8 (delivered to smsc). > When I get the sms on my mobile phone, there's nothing being received by > kannel, so my guessing is that I'm setting dlr-mask with a value that > doesn't ask my mobile operator to get a DLR for the sent message. Or am > I wrong? > Can someone explain which are valid values for dlr-mask if I want to > request for full DLR to the operator? > (I'm sure my operator supports DLR, because when sending from the phone > with this option enabled, I get a DLR when it gets delivered on the > destination's mobile) > > Thanks in advance for your time. > > Regards, > > Alejandro >
