hi eric, there are no stupid questions, only stupid answers. let me give one ;-)
When you send a sms, you don't know what happens to that. It may reach the phone. it may not. It may get queued in SMSC and there are other possibilities also. 5 are listed in Kannel docs. ==why do you need to store it in db? When kannel gets DLR, it should know *which* sms has got it's delivery back. Just checking src and dest number MAY/MAY NOT not lead you to the exact for which kannel has received DLR. So, every sms sent using /cgi-bin/sendsms must have some _UNI id_ attached to it. To maintain that _UNI id_ is our responsibility. That _UNI id_ MUST be passed on with <dlrurl> CGI param. So, that when kannel gets DLR and subsequently calls our <dlrurl with UNI id as param and dlr value>, this program can actually check the _UNI id_ and accordingly takes action. ( e.g. just mark it fail/succ OR resend sms) Just to maintain that UNI id, i suggested to store the sms(nefore sending) in DB. You may use flat files or whatever you like. hope it clears. Navjot Singh |-----Original Message----- |From: Eric Diwouta-Loth [mailto:[EMAIL PROTECTED] |Sent: Wednesday, July 23, 2003 7:40 PM |To: Navjot Singh |Cc: [EMAIL PROTECTED] |Subject: RE: kannel sms responds... | | |Hi, | |maybe my question is stupid, but if your store all sms in a db |before you send |them and that we use dlr-url + dlr-mask in the http interface, |what does kannel |actually do when he receives a dlr ? : |Does it store it in the db and then triggers the dlr-url ? |is the external storage made to help kannel dealing with a large number a |awaited dlr ? | |Regards, | |Eric Diwouta-Loth | | |Selon Navjot Singh <[EMAIL PROTECTED]>: | |> hi Nejc, |> |> i am sure you must have solved your problem by now. |> In case, you have not (and i am no too late ;-), let me explain. |> |> 0. Set your kannel to support DLR, either internal/external(mysql/sdb) |> 1. BEFORE you send sms, save it in db/file with some *unique tag*. |> 2. In send sms request, pass 2 addiotnal params dlrurl and dlrmask |> + where dlrurl=http://yourhost.com/dlr?id=<uniq_tag>&dlr=%d |> your this url may contain any logic, you wish. |> + to see what dlrmask values can be, consult kannel docs. |> 3. Now when your sent sms gets a DLR back from SMSC, kannel will call |> the <dlrurl> you specified with dlr containing actual value returned |> by SMSC. ( SUCCESS =>1, FAIL => 2 and so on..) |> |> if you need dlr conf etc, pls ask freely. |> |> HTH |> -navjot |> |> |> |> |-----Original Message----- |> |From: Nejc Menard @ GENERA Lynx d.o.o. Ljubljana |> |[mailto:[EMAIL PROTECTED] |> |Sent: Monday, July 21, 2003 4:54 PM |> |To: Navjot Singh |> |Subject: Re: kannel sms responds... |> | |> | |> |Thank you for your answer. |> | |> |How can i know, which dlr report is for which sent sms? We are woking |> |with some scheduler app. that sends let say at 6 am 50 sms |messages. The |> |delivery reports are not coming in the same row usually... |> | |> |Regards, |> | |> |Nejc. |> | |> |Navjot Singh pravi: |> | |> |>hi, |> |> |> |>1. Use dlr-url and dlr-mask. |> |>2. Before making HTTP req, you might be saving the sms in db / |file. The |> |>status may be by "sent". |> |>3. The dlr-url program can simply update the status of the record to |> |>"delivered" / "failed" as it comes out to be. |> |> In your case, if it's failed, you may resend it. |> |> |> |>HTH |> |>-navjot |> |> |> |>|-----Original Message----- |> |>|From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] Behalf Of |> |>|Nejc Menard @ |GENERA Lynx d.o.o. Ljubljana |> |>|Sent: Monday, July 21, 2003 3:40 PM |> |>|To: [EMAIL PROTECTED] |> |>|Subject: kannel sms responds... |> |>| |> |>| |> |>|Hi! |> |>| |> |>|We have an servlet application, that sends sms requests over |http (GET). |> |>|How can we implement the reading of status of sms. That means |if it was |> |>|sent, buffered or worse and the most important failed. This |must be done |> |>|in order of sending the failed sms again. Maybe there is a possibility |> |>|to return the dlr reports with some readable connection to sent sms |> |>|(some index or something...). By the way- it there any suitable front |> |>|end to this like stand alone? To read the logs and list the |sent sms and |> |>|dlrs...? |> |>| |> |>|Best regards, |> |>| |> |>|Nejc Menard |> |>|GENERA Lynx d.o.o. |> |>|Ljubljana, Slovenia |> |>| |> |>| |> |>| |> |> |> |> |> |> |> |> |> |> |> | |> | |> | |> | |> |> | | |
