Hi Ravi, i have no problems here to get the kannel message_id value i just tested that in working environment release info:
Kannel bearerbox version `cvs-20070424'. Build `Apr 26 2007 02:19:45', compiler `3.3.6'. System Linux, release 2.6.20ipsec-smp, version #2 SMP Fri Apr 20 22:55:23 EEST 2007, machine i686. Hostname darkwater.com, IP 127.0.0.1. Libxml version 2.6.20. Using OpenSSL 0.9.7g 11 Apr 2005. Using SQLite 3.3.17. Using native malloc. have to say, your ts value looks just like the kannel id values .. i mean this one: >>> Adding DLR smsc=test, ts=8d161acc-0043-4220-8489-7b958fb5e716, my logs look like this: 2007-07-11 18:06:40 [11497] [7] DEBUG: SMPP[darkwater]: Got PDU: 2007-07-11 18:06:40 [11497] [7] DEBUG: SMPP PDU 0xad400940 dump: 2007-07-11 18:06:40 [11497] [7] DEBUG: type_name: submit_sm_resp 2007-07-11 18:06:40 [11497] [7] DEBUG: command_id: 2147483652 = 0x80000004 2007-07-11 18:06:40 [11497] [7] DEBUG: command_status: 0 = 0x00000000 2007-07-11 18:06:40 [11497] [7] DEBUG: sequence_number: 7 = 0x00000007 2007-07-11 18:06:40 [11497] [7] DEBUG: message_id: "2B23AF36" 2007-07-11 18:06:40 [11497] [7] DEBUG: SMPP PDU dump ends. 2007-07-11 18:06:40 [11497] [7] DEBUG: DLR[pgsql]: Adding DLR smsc=darkwater, ts=723758902, src=1917, dst=+359885100407, mask=31, boxc= 2007-07-11 18:06:40 [11497] [7] DEBUG: sql: INSERT INTO dlr (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('darkwater', '723758902', '1917', '+359885100407', 'SANTA', 'http://localhost/dlr.pgsql.php?smscID=%i&dlr=%d&answer=%A&to=%p&from=%P&ts=%T&smsID=664bc90d2f6e84a51cbcb2deed90e886&charset=%C&kannel_id=%I', '31', '', '0'); 2007-07-11 18:06:40 [11497] [7] DEBUG: SMSC[darkwater]: creating DLR message 2007-07-11 18:06:40 [11497] [7] DEBUG: SMSC[darkwater]: DLR = http://localhost/dlr.pgsql.php?smscID=%i&dlr=%d&answer=%A&to=%p&from=%P&ts=%T&smsID=664bc90d2f6e84a51cbcb2deed90e886&charset=%C&kannel_id=%I i dont think the internal ID has something common with the smsc message_id you got in the PDU ... in case you want to keep track on that one : message_id: "2B23AF36", you have to patch slightly the kannel source i think .. but that is the thing that makes kannel great - the open source :) cheers -----Original Message----- From: Ravi Bhalotia [EMAIL PROTECTED] Sent: 27 ??? 2007 ?. To: seik Subject:getting message_id from submit_sm_resp > Thanks Seik. However, in my case the kannel ID is important, it is > getting assigned a value of message_id that is being passed by the smsc > we are using. So, in case of issues or messages getting rejected we need > to store that ID in our database to look up in our SMSC's system. What I > want to do is keep a lookup table of our application's unique IDS to the > kannel ID that holds the value of message id returned from the smsc > after submit_sm_resp is received. > Any ideas on how to achieve that? > Thanks for your response, > Ravi > seik wrote: >> Hi Ravi, >> >> i use dlr-urls like this one: >> >> "http://127.0.0.1/dlr.pgsql.php?smscID=%i&dlr=%d&answer=%A&to=%p&from=%P&ts=%T&smsID=8e08a94122e147571029f30caf046cef&charset=%C&kannel_id=%I" >> >> in general kannel_id is useless for me, it is for internal kannel queues >> only i belive. >> but i have no problems getting it from the kannel dlr GET request >> >> use your unique smsid value, its just enough :) >> >> cheers >> >> >> >> -----Original Message----- >> From: Ravi Bhalotia [EMAIL PROTECTED] >> Sent: 26 ??? 2007 ?. >> To: seik >> Subject:getting message_id from submit_sm_resp >> >> >>> hi All - I am trying to get message_id from submit_sm_resp message and >>> pass it to the application we are running through a dlr url. Passing a >>> dlr-mask of 31 and a dlr-url but the message_id parameter seems to be >>> omitted from the dlr-url. The dlr url is getting called but without the >>> value filled in. Here are some logs: >>> >> >> >>> Adding DLR smsc=test, ts=8d161acc-0043-4220-8489-7b958fb5e716, >>> src=XXXXX, dst=1XXXXXXXXXX, mask=31, boxc=default >>> 2007-07-26 15:23:13 [7284] [7] DEBUG: SMSC[test]: creating DLR message >>> 2007-07-26 15:23:13 [7284] [7] DEBUG: SMSC[test]: DLR = >>> http://localhost/dlr.php?smsid=5492&message_id=%I&type=%d >>> >> >> >>> I am passing smsid as part of the dlr url, so that is fine, but the >>> other two parameters are not being populated at all. >>> >> >> >>> Am I doing something wrong? I am not setting msg-id-type value in the >>> kannel.conf, as I want to use the default value of -1 for C-Strings. I >>> have been going over the user guide multiple times to figure out what I >>> am doing wrong, but cannot figure out. Can one of you guys help me to >>> resolve this? >>> >> >> >>> Cheers, >>> -Ravi Bhalotia >>> >> >> >>