Hi Wayne,
On Mon, 2006-05-15 at 10:39 +0800, Wayne Khan wrote:
> Hi Tjatur,
> Okay, say I am sending out two messages in quick succession, perhaps a 
> second intervals.
> 
> Each has a unique msgID=1, msgID=2.
> 
> There's probably no guarantee that the reports will be received in 
> order, correct? i.e. the report for msgID=2 could come first instead of 
> second.
> 
Yup that's possible...

> If doing inserts into some dlr table, this means that the foreign key 
> reference is incorrect!!!
> 
> At the moment I am using the recipient number to determine which foreign 
> key to insert into the dlr table. This is rather tedious and the code is 
> not too decipherable. Furthermore it is not guaranteed to be correct so 
> I am looking for a better solution.
> 
That's the problem if you use recipient number (msisdn, i presume). So,
I suggest to use a unique identification for each message sent out. I
could be some combination msisdn or other unique id. Use that unique id
as the msgID, by which you could identify which message from the id.

> I was thinking more along the lines of inserting msgID into the sms 
> itself -- hidden from a regular handset -- and then getting the smsc to 
> return that value so if any reference is made it is guaranteed to be 
> correct.
> 
CMIIW, this number will be hold in kannel system. So, SMSC will not know
about it. How Kannel identify which dlr message comming is handled by
protocol guide (SMPP, EMI etc..)

Hope it give a light...

--tjatur

> Heru Tjatur wrote:
> > Hi Wayne,
> >
> > I set it in dlr-url when sending messages vi cgi-bin/sendsms. So, each
> > time I send message, I put dlr-url containing my custom ID.
> >
> > Something like this:
> > dlr-url="http://127.0.0.1/smspapp/dlr.php?msgID=[mycustomID]&dlrstatus=%
> > d&[other parameter]
> >
> > Don't forget to url-encode your dlr-url when sending the mesaage via
> > cgi-bin/sendsms?
> >
> > Hope it give you a hint ...
> >
> > --tjatur
> >
> > On Fri, 2006-05-12 at 13:40 +0800, Wayne Khan wrote:
> >   
> >> Hi Heru,
> >> How do you send the custom id to the smsc and get it back?
> >>
> >> I've tried the various kannel escape codes (%a, %b) but they don't seem 
> >> to work.
> >>
> >> I'm doing some auditing function so there's a need to tie in the report 
> >> with the sms... please help! Thanks!
> >>
> >> Heru Tjatur wrote:
> >>     
> >>> dear Issam,
> >>>
> >>> Here what I do to get the dlr in Kannel. Hope it could give you a light
> >>> how to implement it for your needs.
> >>>
> >>> (1) I set up a url that will capture delivery status of the messages
> >>> sent by kannel, base on a custom ID for the message (I defined that ID
> >>> for each message sent).
> >>> (2) When sending the message to the user, through cgi-bin/sendsms?, a
> >>> drl-url containing custom ID is added with proper dlr-mask value.
> >>> (3) That way, each incomming dlr will bring custom ID that will used to
> >>> update my table regarding the delivery status of the message.
> >>> (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN3749)
> >>>
> >>> Hope this could help you...
> >>>
> >>> --tjatur
> >>>
> >>>
> >>> On Thu, 2006-05-11 at 12:15 issam wrote:
> >>>   
> >>>       
> >>>> hello
> >>>> I use dlr-url parameter.
> >>>> when I send a message with kannel I attribute a unique ID to this 
> >>>> message 
> >>>> and Kannel give it another ID when he send it for delivery 
> >>>> (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). I want to correspond in my base 
> >>>> this 
> >>>> ID and my ID to resend the message if he fail after validity period 
> >>>> expiration.
> >>>> How can I do this
> >>>> big thanks for help
> >>>> ----- Original Message ----- 
> >>>> From: "Heru Tjatur" <[EMAIL PROTECTED]>
> >>>> To: <[email protected]>
> >>>> Sent: Thursday, May 11, 2006 4:22 AM
> >>>> Subject: Re: dlr
> >>>>
> >>>>
> >>>>     
> >>>>         
> >>>>> Dear issam,
> >>>>>
> >>>>> On Wed, 2006-05-10 at 13:47 +0100, issam wrote:
> >>>>>       
> >>>>>           
> >>>>>> Hello
> >>>>>> when I send a message with Kannel, he return a message like accepted
> >>>>>> for delivery but not the id used in dlr message.
> >>>>>> if I send 2 messages and I receive one dlr how can I know if this dlr
> >>>>>> is for first message or 2nd message.
> >>>>>>         
> >>>>>>             
> >>>>> You could use set dlr-url parameter when sending the message. Each dlr
> >>>>> message coming, it will its trigger dlr-url. So, you will know which
> >>>>> message's dlr is comming.
> >>>>>
> >>>>> Hope it could help you..
> >>>>>
> >>>>> --tjatur
> >>>>>
> >>>>>
> >>>>>
> >>>>>       
> >>>>>           
> >>>>     
> >>>>         
> >>>
> >>>   
> >>>       
> >
> >   
> 


Reply via email to