you should have no need for the message ID generated by the SMSC (not to
mention that some SMSC do not generate a message ID, or generate one
that is not unique, or split messages, or what not) - simply generate an
"application ID" for each SM you send.
If your application stores the messages in the database, then you can
simply use the database's record id for that purpose.
This "application ID" you then embed in the DLR URL that you submit with
each message, for example :
dlrurl=http://localhost/dlr.php?appid=1234&result=%d
(url encode that, of course). then when Kannel returns a delivery
report, it also sends you the application id that _you_ stored with the
message.
That way you can leave the actuall mechanics of matching messages to
delivery reports to the module specific code in Kannel - where it should
be. 

--
Oded Arbel
m-Wise Inc.
[EMAIL PROTECTED]
(972)-67-340014
(972)-9-9581711 (ext: 116)

::..
Buckle up, Dorothy, cause Kansas is going bye-bye.
    -- from "The Matrix"


> -----Original Message-----
> From: Mauricio Ramos [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 17, 2002 3:22 AM
> To: '[EMAIL PROTECTED]'
> Subject: Matching submitted SM with DLR response
> 
> 
> Does anybody know any configuration or technique to match a 
> submitted short
> message to the respective DLR?
> 
> In other words, I'd like to get the message ID returned by 
> the SMSC in the
> submit_sm_resp PDU (SMPP) through the sendsms CGI and store it in my
> external database.  When Kannel receives the DLR message I'd 
> like to pass it
> to an external URL trough a escape code in the querystring.  
> This would
> allow me to match the original message ID with the respective 
> DLR response.
> 
> I'm asking this because I'm evaluating Kannel and my current 
> SMS Gateway
> allow this to me.
> 
> Thanks.
> 
> 

Reply via email to