Hi,
Please address users list for such questions. Not devel.
The SMSc never genarate a DLR for accepted or rejected by SMSc. It just
reponds to bb by ACK/NACK. This is transformed to a DLR (8 or 2) by bb so
that the sender is informed of the fate of the SMS. 8 (buffered by SMSc) is
temporary and is kept as a dlr_entry until a final DLR arrives. 2 (rejected)
is final and should just delete the dlr_entry from the table and forward the
DLR to smsbox to post result in dlr_url.
Sometimes, due to network or server problems, a final dlr never arrives.
That would leave the dlr_entry in your dlr_table for ever. Kannel cannot
delete that dlr_entry, since DLRs mean money and it could arrive at any
moment in the future, and would be lost without its dlr_entry. The user
should periodically take the responsibility and clean stale dlr_entries from
the table.
Hope this answers your questions.
BR,
Nikos
----- Original Message -----
From: Mohammed Saleem
To: Nikos Balkanas
Cc: kannel_dev_mailinglist
Sent: Thursday, November 18, 2010 4:44 PM
Subject: Re: SMSC Rejected DLR shouldn't be saved in the DLR storage
Hi Nikos
There is nothing useful in the UG in this case, maybe I didn't explain
enough:
When the bearerbox sends a message it inserts a record in the DLR storages,
lets say a MySQL table, this recor will be used as a reference when a DLR is
received later and then the bearerbox will call the url and then remove that
record
This case applies on Delievered (status=1), Failed(stats=2) and buffered
(status=4) and it works fine with these DLR statuses, but when the MT gets
rejected by the SMSC at the submit time, why the bearerbox inserts a record
for that MT?!! since the SMSC will forget that mesage and there will be no
later DLR reply for that messages because it is already rejected, this
causes the DLR record to be saved forever in the MySQL table !!
I have solved this by creating a program that cleans each record that has
passed at least the validity-period (I set it to 24 hours) but this wont
solve my issue, since sometimes there are DLRs that takes this long and they
are already submitted (not rejected) which corrupts my stats and I can't
report lost DLRs to the carrier for investigation
I hope I explained the problem well enough
Thanks
Best Regards,
Mohammed M I Sleem
http://www.abusleem.net
http://www.freakle.com - The Search Freak
http://www.colorle.com - color your Google search
2010/11/18 Nikos Balkanas <[email protected]>
Hi,
Read UG about dlr-mask.
BR,
Nikos
----- Original Message ----- From: Mohammed Saleem
To: kannel_dev_mailinglist
Sent: Thursday, November 18, 2010 3:24 PM
Subject: Re: SMSC Rejected DLR shouldn't be saved in the DLR storage
Hello Kanelers,
Any idea?
please advise on this, I couldn't find the place where to modify the source
to disable this !!
Any reply would be highly appreciated
Thanks
Best Regards,
Mohammed M I Sleem
http://www.abusleem.net
http://www.freakle.com - The Search Freak
http://www.colorle.com - color your Google search
On Tue, Nov 16, 2010 at 6:29 PM, Mohammed Saleem <[email protected]>
wrote:
When the SMS is rejected by the SMSC, why it gets saved into the DLR
storage? (eg. dlr table)? since it is already rejected by the SMSC it
shouldn't be saved in the DLR storage or it will kept in the storage forever
is this a bug or is there a case that the SMSC may report DLR on rejected
messages?
Thanks
Best Regards,
Mohammed M I Sleem
http://www.abusleem.net
http://www.freakle.com - The Search Freak
http://www.colorle.com - color your Google search