Dear Beckman,

>   If you are having the problem of entries in your store being deleted,
> then
>   you are probably recieving the message_id from the smsc in DLR reports.

I was just exploring that possiblity since i am trying to get another smsc
link which will allow me online reports, thus the entries should be
deleted. Anyways i think the best would be to test it out when the new
smsc link is up and see how it goes from there.

>      Step 1.  Put the contents of the message into a table.  ie. phone
>      number, message.  This table has an auto-incrementing id.  It also
> has
>      a field for "dlr" which is a small int, defaults to 0.
>
>      Step 2.  I get the unique ID that the DB has given me for that row.
>      THAT is my internal message ID.  For example, this is ID 42.

Hmm.. its similar way what i have in place right now. The php script
stores the info inside the db, gets the unique id (which is an auto
incrementing field ;)) and then calls sendsms with the dlr-url setup as
http://x.x.x.x/a.php?id=XXX where XXX is the auto incrementing field.

If you recall i had posted earlier, using the same id i was planning to
get the ts value from inside the kannel dlr table.

>      Step 5.  Add ALL the %x escape codes you can and have your script
> email
>      you the output when a DLR report is called so you can see what
>      information is available to you when the DLR report is done.

I am doing that now, adding all the escape codes.

Thx for all the help Beckman.

-- 
regards,

Anand

> On Fri, 15 Apr 2005, Anand Gupta wrote:
>
>> Thx for the nice explanation. I was trying to out ways to get to the ts
>> field ;) If you recall my earlier message in which i mentioned about the
>> script which is called in using dlr-url to check for the unique id in
>> kannel table to get to the ts field ? There is one problem to it, if the
>> message is delivered before my script gets to it then the script has no
>> way to get the ts field hence i was trying to get something on that.
>> Getting another insert was basically to get those values in another
>> table
>> for the same work and then remove them at leisure, says once a day or
>> something.
>
>
>   Look through your bearerbox.log (whatever has the most data) and look
> for
>   a message that starts with " id:" -- these are delivery receipt
> messages,
>   specialized SMS messages with delivery info.
>
>   Here's what I do:
>
>
>   Try that out.
>
> Beckman
> ---------------------------------------------------------------------------
> Peter Beckman                                                  Internet
> Guy
> [EMAIL PROTECTED]
> http://www.purplecow.com/
> ---------------------------------------------------------------------------
>


Reply via email to