Sorry, forget to cc list

-------- Forwarded Message --------
> From: Alvaro Cornejo <cornejo.alv...@gmail.com>
> To: Elton Hoxha <elt...@gmail.com>
> Subject: Re: DLR-URL and parameters confusion
> Date: Thu, 05 Mar 2009 11:38:27 -0500
> 
> Hi
> 
> It can be just as simple as:
> 
> dlr-url ="http://10.1.21.236:2469/KannelGetStatus.asmx/GetStatus?dlrv=%
> d&myid=1111"
> 
> or add any additional info you might need.
> 
> This might be your full call to kannel. Note you will better urlencode()
> the full dlr-url (as well as message text) prior to post it to kannel to
> avoid issues with some chars:
> 
> http://localhost:13004/cgi-bin/sendsms?username=remindme&password=alerts&to=4043078165&text=test&dlr-mask=31&drl-url='http://10.1.21.236:2469/KannelGetStatus.asmx/GetStatus?dlrv=%d&myid=1111'
> 
> So, for each MT you send to kannel you need to change the value of
> "myid"
> 
> Finally take a look at dlr-mask value in order to get only the statuses
> you are interested in. (31 = All statuses)
> 
> And that's it
> 
> Regards
> 
> Alvaro
> 
> 
> On Thu, 2009-03-05 at 17:01 +0100, Elton Hoxha wrote:
> > Thanks for your reply.
> > 
> > I think that %i parameter is useful when we deal with multiple smpp
> > connections, making possible to defer the shortcodes from eachother.
> > The scenario that i`m interested is like this:
> > 
> > My application submits an MT message to Kannel adding that extra
> > generated ID (let`s say 1111, to keep track of that sms) to the URL,
> > Kannel forwards it to SMSC and SMSC returns absent subscriber (phone
> > switched off) Nak. Then kannel returns the value 8 or 4 (I guess so,
> > just being submitted to SMSC waiting in the queue). Now, whenever the
> > subscriber switches on the phone and the sms get delivered, SMSC will
> > send an ack to kannel, and I want KAnnel at that moment to send back
> > to me the message status (i guess it will send 1) and that generated
> > ID 1111.
> > 
> > As all parameters are predefined in kannel, please can you tell me how
> > to put the correct parameter for myid.
> > 
> > dlr-url ="http://10.1.21.236:2469/KannelGetStatus.asmx/GetStatus?dlrv=
> > %d&status=%F&myid=?"
> > 
> > 
> > Many thanks
> > 
> > 
> > 
> > 
> > On Thu, Mar 5, 2009 at 4:42 PM, Alvaro Cornejo
> > <cornejo.alv...@gmail.com> wrote:
> >         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
> >         > >>>         <cornejo.alv...@gmail.com> wrote:
> >         >
> >         > >>>         >         From: Alvaro Cornejo
> >         <cornejo.alv...@gmail.com>
> >         > >>>         >         Subject: Re: dlr-url
> >         > >>>         >         To: "Drew Stockler"
> >         <psustock1...@yahoo.com>
> >         >
> >         > >>>         >         Cc: users@kannel.org
> >         > >>>         >         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]&timestamp=%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
> >         >
> >         
> >         
> > 


Reply via email to