Hi Colin,
Here's how we do it:
1. Log the message within our application to a database.
2. Retrieve the unique record id for that message.
3. Pass the record id as part of the DLR URL to Kannel
4. When Kannel receives a DLR for that message, it updates your app via HTTP passing that message id as part of the DLR URL.
For example:
$messageid = 12345;
$yourappurl = "http://yourappurl";
$dlrurl = "http://{yourappurl}?messageid={messageid}&messagestatus=%d&statustext=%A";
$kannelurl = "http://kannel:13013/cgi-bin/sendsms?user=username&password=password&from={$from}&to={$to}&text={$text}&smsc={$smsc}&dlr-mask=31&dlr-url={$dlrurl}";
etc etc.
Hope that makes sense.
Alex
Colin McKinnon wrote:
On Tuesday 19 October 2004 06:20, Jeetendra Singh wrote:
For message delivery reconciliation, you need a message id.
This message id is generated by SMSC and is send in submit_sm_response PDU to the gateway. This is defiend in SMPP specifications. Your application can use this message id for reconciliation.
Thanks J.
....but how do I see this value when sending a text/receiving a delivery report using the HTTP interface? (v1.2.1 of user guide does not seem to mention how to work with either value via HTTP, nor is there an obvious candidate in the MySQL DLR storage schema - I even tried reading the source code to no avail)
TIA,
C.
Colin McKinnon wrote:<br> <blockquote cite="[EMAIL PROTECTED]" type="cite"> <pre wrap="">Hi all,
I'm trying to get my head around kannel.
I maintain an SMS content delivery/billing system. Up till now we've used aggregators to provide SMS services via HTTP interfaces, but I'm looking to implement our own SMPP gateway which will sit between our current platform and the networks.
We use MT billing extensively.
The biggest issues so far are:
1) I can't see any way to get/set a unique transaction id for MO/MT messages - is this possible?
2) When a delivery report arrives back at the gateway, how can I reconcile it (in the absence of 1) with the outgoing message?
TIA,
Colin
