this one too forget to cc list
-------- Forwarded Message --------
> From: Alvaro Cornejo <[email protected]>
> To: Elton Hoxha <[email protected]>
> Subject: Re: DLR-URL and parameters confusion
> Date: Thu, 05 Mar 2009 10:42:57 -0500
>
> Hi
>
> If you are refering to the message unique identifier, you must generate
> it and feed it into the dlr-url. You can feed any info you like to
> dlr-ulr. Kannel will honour that url and will only replace the values he
> know about (%P,%a, %q, etc) the rest of url will be send back exactly as
> you sent it to kannel.
>
> Then when kannel has an dlr to feed you back to your application, kannel
> will sent the info provided by the dlr-url and your script will handle
> it as you wish... or simply does nothing if don't need dlr but use a
> fake script just to make kannel feel good ;D
>
> Note that depending on your needs, that unique id might not be
> necessary. Dlr is used to track message status -either for
> billing/stats/other- and you can get different parameters for having the
> detailed info, again if needed.
>
> However, if you are refering to smsc id (the identification of the
> "route") it is %i and it will be the id you set on your smcs config.
>
> Regards
>
> Alvaro
>
> On Thu, 2009-03-05 at 16:21 +0100, Elton Hoxha wrote:
> > Hi Alvaro,
> >
> > I was checking the mail list and I am reading your communication with
> > other guy regarding dlr-url.
> >
> > Refering to:
> >
> > >>> > --- On Tue, 1/13/09, Alvaro Cornejo
> > >>> <[email protected]> wrote:
> >
> > >>> > From: Alvaro Cornejo <[email protected]>
> > >>> > Subject: Re: dlr-url
> > >>> > To: "Drew Stockler" <[email protected]>
> >
> > >>> > Cc: [email protected]
> > >>> > Date: Tuesday, January 13, 2009, 6:27 PM
> > >>> >
> > >>> > Hi Drew
> >
> > >>> >
> > >>> > The status of your message is dlrv=8 that means
> > >>> message delivered to
> > >>> > your smsc. Check docs for the other status
> >
> > >>> > values.
> > >>> >
> > >>> > I'm not sure but I think that %a and %A is "ACK%2F"
> > >>> because it is
> > >>> > the
> >
> > >>> > "sms text part" of the dlr message. In this case,
> > >>> the text received
> > >>> > is
> > >>> > the "ACK" from bearerbox when submitting the message
> >
> > >>> to your smsc.
> > >>> >
> > >>> > I think you don't need this info to match your dlr,
> > >>> I'll add intead an
> > >>> > ID from your own in the dlr-url so you can use it to
> >
> > >>> match dlr with your
> > >>> > database and update the appropiate reccord
> > >>> accordingly to the dlr.
> > >>> >
> > >>> > you can use something like:
> >
> > >>> >
> > >>> >
> > >>>
> > >>> http://localhost:13004/cgi-bin/sendsms?username=remindme&password=alerts&to=4043078165&text=test&dlr-mask=31&drl-url='http://localhost/sms.php?phone=%p&smsid=[YourOwnId]×tamp=%T&dlrv=%d'
> >
> > >>> >
> > >>> > and have your sms.php script look at the db for the
> > >>> smsid value and
> > >>> > update the status field accordingly. Something like:
> >
> > >>> >
> > >>> > UPDATE table SET dlrv = $dlrv, timestamp=
> > >>> $timestamp WHERE msg_id =
> > >>> > $smsid AND from_number =
> >
> > >>> > $phone
> > >>> >
> > >>> >
> > >>> > Hope helps
> >
> > I would like to ask, while setting this unique ID from application
> > side, how can I represent it in the sendsms-user block? So
> >
> > dlr-url =
> > "http://10.1.21.236:2469/KannelGetStatus.asmx/GetStatus?dlrv=%
> > d&status=%F&smsid=?"
> >
> > Table 6.9 has all the parameters that we can use, how can I add the
> > escape code here for the smsid??
> >
> > Thanks
> > Elton
> >