If i understand correctly what you want to do, you have to pass your message ID 
to dlr-url. like: 

$dlr_url = 
'http://domain.com/dlr.php?smscID=%i&report=%A&to=%p&from=%P&ts=%T&type=%d&msgid=1000

In dlr.php script , you read $_GET['msgid'] and you make your updates to db.

Hope this helps you,

Tania




----- Original Message ----- 
  From: Suporte Técnico Nivel 2 - Iagente Soluções Online 
  To: [email protected] 
  Sent: Friday, May 27, 2011 5:01 PM
  Subject: RES: Need help with DLR and Foreign messages ID


  Hi Everyone,

   

  Is anybody there capable to help me on this?

   

  Thanks in advance.

   

  Rafael

   

  De: [email protected] [mailto:[email protected]] Em nome de 
Rafael Azevedo
  Enviada em: quinta-feira, 26 de maio de 2011 19:11
  Para: [email protected]
  Assunto: Need help with DLR and Foreign messages ID

   

  Hi everyone,

   

  I've just finished the kannel instalation and configuration. Everything seems 
to work fine, messages are being sent without any serious problems.

   

  But, since one of my smsc's is HTTP based, I'm required to send my internal 
MSG ID to the end SMS gateway. That's really necessary in order to have the DLR 
working properly.

   

  This is an example of the issue:

   

  1) I have the message ID # 1000

  2) My application send to the kannel smsc the message through HTTP

  3) Kannel must send the message to my SMSC HTTP BASED GATEWAY including the 
unique foreign message ID that was perviosly generated by my APP

  4) The END HTTP GATEWAY will send me through HTTP the DLR to another URL that 
only does one thing: checks the DLR and update the database.

   

  I tried using %F but it does not seems to work in my case, since my unique 
internal msg id is not the same as %F is showing.

   

  Is there anything I can do? This is really crucial for me.

   

  Thanks in advance.

  Rafael

Reply via email to