SMPP Delivery Reports Issue
Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. * * * * *2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL* *2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL* *2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001* *2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x * *2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008* *2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends.* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU:* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump:* *2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp* *2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004* *2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012* *2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends.* *2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=**91X, mask=31, boxc=fabox* *2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '**91X', '**91X', '', ' http://xxx.xxx.xxx/dlr.php?type=%dkannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128', '31', 'faaabox', '0')* * * * * This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham
RE: SMPP Delivery Reports Issue
What happens if you try to do the same insert, manually? Do you get an error message? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Jinson Sent: dinsdag 29 juni 2010 19:00 To: users Subject: SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. 2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001 2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008 2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU: 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump: 2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp 2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004 2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012 2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=91X, mask=31, boxc=fabox 2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '91X', '91X', '', 'http://xxx.xxx.xxx/dlr.php?type=%d http://xxx.xxx.xxx/dlr.php?type=%25dkannel_id=%25Fmsisdn=%25pdlrvalue=%2 5Amessage_id=900629222518-836128 kannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128', '31', 'faaabox', '0') This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham
Re: SMPP Delivery Reports Issue
Hello, I'm sorry for the confusion. It was getting inserted. But not processing the DLRs. I could see the following in my smsbox log * * *010-06-29 17:35:36 [24643] [4] WARNING: No translation found for id:70 sub:001 dlvrd:001 submit date:1006292305 done date:1006292305 stat:DELIVRD err:000 text:Test from +xx to +xx* *2010-06-29 17:35:36 [24643] [4] ERROR: request failed* Thanks Jinson Abraham On Tue, Jun 29, 2010 at 10:56 PM, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you try to do the same insert, manually? Do you get an error message? == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Jinson *Sent:* dinsdag 29 juni 2010 19:00 *To:* users *Subject:* SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. *2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL* *2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL* *2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001* *2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008* *2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends.* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU:* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump:* *2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp* *2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004* *2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012* *2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends.* *2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=91X, mask=31, boxc=fabox* *2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '91X', '91X', '', ' http://xxx.xxx.xxx/dlr.php?type=%dkannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128http://xxx.xxx.xxx/dlr.php?type=%25dkannel_id=%25Fmsisdn=%25pdlrvalue=%25Amessage_id=900629222518-836128', '31', 'faaabox', '0')* This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham
RE: SMPP Delivery Reports Issue
Then maybe you should indeed set msg-id-type. Someone else on the list may know what is going on. I don't see how 51 translates to 70, no matter what base numerical system. == Rene From: Jinson [mailto:jin...@mobme.in] Sent: dinsdag 29 juni 2010 19:37 To: Rene Kluwen Cc: users Subject: Re: SMPP Delivery Reports Issue Hello, I'm sorry for the confusion. It was getting inserted. But not processing the DLRs. I could see the following in my smsbox log 010-06-29 17:35:36 [24643] [4] WARNING: No translation found for id:70 sub:001 dlvrd:001 submit date:1006292305 done date:1006292305 stat:DELIVRD err:000 text:Test from +xx to +xx 2010-06-29 17:35:36 [24643] [4] ERROR: request failed Thanks Jinson Abraham On Tue, Jun 29, 2010 at 10:56 PM, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you try to do the same insert, manually? Do you get an error message? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Jinson Sent: dinsdag 29 juni 2010 19:00 To: users Subject: SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. 2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001 2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008 2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU: 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump: 2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp 2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004 2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012 2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=91X, mask=31, boxc=fabox 2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '91X', '91X', '', 'http://xxx.xxx.xxx/dlr.php?type=%d http://xxx.xxx.xxx/dlr.php?type=%25dkannel_id=%25Fmsisdn=%25pdlrvalue=%2 5Amessage_id=900629222518-836128 kannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128', '31', 'faaabox', '0') This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham
Re: SMPP Delivery Reports Issue
That was for a different message ID. I tried all the combinations of message ID. But I doubt that the SMSC is acting weired. Please find the logs. *2010-06-29 17:43:23 [24617] [22] DEBUG: SMPP[160by2SMPP]: Sending PDU:* *2010-06-29 17:43:23 [24617] [22] DEBUG: SMPP PDU 0x2c00a580 dump:* *2010-06-29 17:43:23 [24617] [22] DEBUG: type_name: submit_sm* *2010-06-29 17:43:23 [24617] [22] DEBUG: command_id: 4 = 0x0004* *2010-06-29 17:43:23 [24617] [22] DEBUG: command_status: 0 = 0x* *2010-06-29 17:43:23 [24617] [22] DEBUG: sequence_number: 37 = 0x0025* *2010-06-29 17:43:23 [24617] [22] DEBUG: service_type: NULL* *2010-06-29 17:43:23 [24617] [22] DEBUG: source_addr_ton: 1 = 0x0001* *2010-06-29 17:43:23 [24617] [22] DEBUG: source_addr_npi: 1 = 0x0001* *2010-06-29 17:43:23 [24617] [22] DEBUG: source_addr: 918089x* *2010-06-29 17:43:23 [24617] [22] DEBUG: dest_addr_ton: 1 = 0x0001* *2010-06-29 17:43:23 [24617] [22] DEBUG: dest_addr_npi: 1 = 0x0001* *2010-06-29 17:43:23 [24617] [22] DEBUG: destination_addr: Jinson* *2010-06-29 17:43:23 [24617] [22] DEBUG: esm_class: 3 = 0x0003* *2010-06-29 17:43:23 [24617] [22] DEBUG: protocol_id: 0 = 0x* *2010-06-29 17:43:23 [24617] [22] DEBUG: priority_flag: 0 = 0x* *2010-06-29 17:43:23 [24617] [22] DEBUG: schedule_delivery_time: NULL* *2010-06-29 17:43:23 [24617] [22] DEBUG: validity_period: NULL* *2010-06-29 17:43:23 [24617] [22] DEBUG: registered_delivery: 0 = 0x* *2010-06-29 17:43:23 [24617] [24] DEBUG: boxc_receiver: got ack* *2010-06-29 17:43:23 [24617] [22] DEBUG: replace_if_present_flag: 0 = 0x* *2010-06-29 17:43:23 [24617] [22] DEBUG: data_coding: 0 = 0x* *2010-06-29 17:43:23 [24617] [22] DEBUG: sm_default_msg_id: 0 = 0x * *2010-06-29 17:43:23 [24617] [22] DEBUG: sm_length: 14 = 0x000e* *2010-06-29 17:43:23 [24617] [22] DEBUG: short_message: Request Failed* *2010-06-29 17:43:23 [24617] [22] DEBUG: SMPP PDU dump ends.* *2010-06-29 17:43:23 [24617] [22] DEBUG: SMPP[160by2SMPP]: Got PDU:* *2010-06-29 17:43:23 [24617] [22] DEBUG: SMPP PDU 0x2c00a580 dump:* *2010-06-29 17:43:23 [24617] [22] DEBUG: type_name: submit_sm_resp* *2010-06-29 17:43:23 [24617] [22] DEBUG: command_id: 2147483652 = 0x8004* *2010-06-29 17:43:23 [24617] [22] DEBUG: command_status: 11 = 0x000b* *2010-06-29 17:43:23 [24617] [22] DEBUG: sequence_number: 37 = 0x0025* *2010-06-29 17:43:23 [24617] [22] DEBUG: message_id: NULL* *2010-06-29 17:43:23 [24617] [22] DEBUG: SMPP PDU dump ends.* Thanks Jinson Abraham On Tue, Jun 29, 2010 at 11:13 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Then maybe you should indeed set msg-id-type. Someone else on the list may know what is going on. I don’t see how 51 translates to 70, no matter what base numerical system. == Rene *From:* Jinson [mailto:jin...@mobme.in] *Sent:* dinsdag 29 juni 2010 19:37 *To:* Rene Kluwen *Cc:* users *Subject:* Re: SMPP Delivery Reports Issue Hello, I'm sorry for the confusion. It was getting inserted. But not processing the DLRs. I could see the following in my smsbox log *010-06-29 17:35:36 [24643] [4] WARNING: No translation found for id:70 sub:001 dlvrd:001 submit date:1006292305 done date:1006292305 stat:DELIVRD err:000 text:Test from +xx to +xx* *2010-06-29 17:35:36 [24643] [4] ERROR: request failed* Thanks Jinson Abraham On Tue, Jun 29, 2010 at 10:56 PM, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you try to do the same insert, manually? Do you get an error message? == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Jinson *Sent:* dinsdag 29 juni 2010 19:00 *To:* users *Subject:* SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. *2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL* *2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL* *2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001* *2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x* *2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008* *2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends.* *2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU:* *2010-06-29 16:55:18 [24139] [22] DEBUG
Re: SMPP Delivery Reports Issue
Hi, What do you mean not processing? Have you specified a dlr-url? What is your sendsms url? Please post also detailed bb logs of the deliver_sm for the DLR along with some context. It seems that bb doesn't consider it a DLR, instead it thinks it is an MO SMS, tries to find an sms-service for it and fails. BR, Nikos - Original Message - From: Jinson To: Rene Kluwen Cc: users Sent: Tuesday, June 29, 2010 8:37 PM Subject: Re: SMPP Delivery Reports Issue Hello, I'm sorry for the confusion. It was getting inserted. But not processing the DLRs. I could see the following in my smsbox log 010-06-29 17:35:36 [24643] [4] WARNING: No translation found for id:70 sub:001 dlvrd:001 submit date:1006292305 done date:1006292305 stat:DELIVRD err:000 text:Test from +xx to +xx 2010-06-29 17:35:36 [24643] [4] ERROR: request failed Thanks Jinson Abraham On Tue, Jun 29, 2010 at 10:56 PM, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you try to do the same insert, manually? Do you get an error message? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Jinson Sent: dinsdag 29 juni 2010 19:00 To: users Subject: SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. 2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001 2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008 2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU: 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump: 2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp 2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004 2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012 2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=91X, mask=31, boxc=fabox 2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '91X', '91X', '', 'http://xxx.xxx.xxx/dlr.php?type=%dkannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128', '31', 'faaabox', '0') This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham
Re: SMPP Delivery Reports Issue
Yes. I have a dlr url and send-sms url works fine for all other SMSCs configured. The problem is with this particular SMSC I guess bb doesn't consider DLR and process it as an MO. Have attached detailed logs. Thanks Jinson Abraham 2010/6/29 Nikos Balkanas nbalka...@gmail.com Hi, What do you mean not processing? Have you specified a dlr-url? What is your sendsms url? Please post also detailed bb logs of the deliver_sm for the DLR along with some context. It seems that bb doesn't consider it a DLR, instead it thinks it is an MO SMS, tries to find an sms-service for it and fails. BR, Nikos - Original Message - From: Jinson To: Rene Kluwen Cc: users Sent: Tuesday, June 29, 2010 8:37 PM Subject: Re: SMPP Delivery Reports Issue Hello, I'm sorry for the confusion. It was getting inserted. But not processing the DLRs. I could see the following in my smsbox log 010-06-29 17:35:36 [24643] [4] WARNING: No translation found for id:70 sub:001 dlvrd:001 submit date:1006292305 done date:1006292305 stat:DELIVRD err:000 text:Test from +xx to +xx 2010-06-29 17:35:36 [24643] [4] ERROR: request failed Thanks Jinson Abraham On Tue, Jun 29, 2010 at 10:56 PM, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you try to do the same insert, manually? Do you get an error message? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Jinson Sent: dinsdag 29 juni 2010 19:00 To: users Subject: SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. 2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001 2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008 2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU: 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump: 2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp 2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004 2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012 2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=91X, mask=31, boxc=fabox 2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '91X', '91X', '', ' http://xxx.xxx.xxx/dlr.php?type=%dkannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128', '31', 'faaabox', '0') This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham 2010-06-29 17:50:04 [24617] [22] DEBUG: SMPP[mysmpp1]: Sending PDU: 2010-06-29 17:50:04 [24617] [22] DEBUG: SMPP PDU 0x7d2df0 dump: 2010-06-29 17:50:04 [24617] [22] DEBUG: type_name: submit_sm 2010-06-29 17:50:04 [24617] [22] DEBUG: command_id: 4 = 0x0004 2010-06-29 17:50:04 [24617] [22] DEBUG: command_status: 0 = 0x 2010-06-29 17:50:04 [24617] [22] DEBUG: sequence_number: 53 = 0x0035 2010-06-29 17:50:04 [24617] [22] DEBUG: service_type: NULL 2010-06-29 17:50:04 [24617] [22] DEBUG: source_addr_ton: 5 = 0x0005 2010-06-29 17:50:04 [24617] [22] DEBUG: source_addr_npi: 0 = 0x 2010-06-29 17:50:04 [24617] [22] DEBUG: source_addr: Jinson 2010-06-29 17:50:04 [24617] [22] DEBUG: dest_addr_ton: 2 = 0x0002 2010-06-29 17:50:04 [24617] [22] DEBUG: dest_addr_npi: 1 = 0x0001 2010-06-29 17:50:04 [24617] [22] DEBUG: destination_addr: 9199x 2010-06-29 17:50:04 [24617] [22] DEBUG: esm_class: 3 = 0x0003 2010-06-29 17:50:04 [24617] [22] DEBUG: protocol_id: 0 = 0x 2010-06-29 17:50:04 [24617] [22] DEBUG: priority_flag: 0 = 0x 2010-06-29 17:50:04 [24617] [22] DEBUG: schedule_delivery_time: NULL 2010-06-29 17:50:04 [24617] [22] DEBUG: validity_period: NULL 2010-06-29 17:50:04
RE: SMPP Delivery Reports Issue
It looks like your smsc sends the wrong esm_class for delivery receipts. == Rene From: Jinson [mailto:jin...@mobme.in] Sent: dinsdag 29 juni 2010 20:10 To: Nikos Balkanas Cc: Rene Kluwen; users Subject: Re: SMPP Delivery Reports Issue Yes. I have a dlr url and send-sms url works fine for all other SMSCs configured. The problem is with this particular SMSC I guess bb doesn't consider DLR and process it as an MO. Have attached detailed logs. Thanks Jinson Abraham 2010/6/29 Nikos Balkanas nbalka...@gmail.com Hi, What do you mean not processing? Have you specified a dlr-url? What is your sendsms url? Please post also detailed bb logs of the deliver_sm for the DLR along with some context. It seems that bb doesn't consider it a DLR, instead it thinks it is an MO SMS, tries to find an sms-service for it and fails. BR, Nikos - Original Message - From: Jinson To: Rene Kluwen Cc: users Sent: Tuesday, June 29, 2010 8:37 PM Subject: Re: SMPP Delivery Reports Issue Hello, I'm sorry for the confusion. It was getting inserted. But not processing the DLRs. I could see the following in my smsbox log 010-06-29 17:35:36 [24643] [4] WARNING: No translation found for id:70 sub:001 dlvrd:001 submit date:1006292305 done date:1006292305 stat:DELIVRD err:000 text:Test from +xx to +xx 2010-06-29 17:35:36 [24643] [4] ERROR: request failed Thanks Jinson Abraham On Tue, Jun 29, 2010 at 10:56 PM, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you try to do the same insert, manually? Do you get an error message? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Jinson Sent: dinsdag 29 juni 2010 19:00 To: users Subject: SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. 2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001 2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008 2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU: 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump: 2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp 2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004 2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012 2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=91X, mask=31, boxc=fabox 2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '91X', '91X', '', 'http://xxx.xxx.xxx/dlr.php?type=%d http://xxx.xxx.xxx/dlr.php?type=%25dkannel_id=%25Fmsisdn=%25pdlrvalue=%2 5Amessage_id=900629222518-836128 kannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128', '31', 'faaabox', '0') This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham
RE: SMPP Delivery Reports Issue
It should be 2C hex or more. From: Jinson [mailto:jin...@mobme.in] Sent: dinsdag 29 juni 2010 20:21 To: Rene Kluwen Cc: Nikos Balkanas; users Subject: Re: SMPP Delivery Reports Issue Whats the correct esm_class for DLRs? Thanks Jinson Abraham On Tue, Jun 29, 2010 at 11:49 PM, Rene Kluwen rene.klu...@chimit.nl wrote: It looks like your smsc sends the wrong esm_class for delivery receipts. == Rene From: Jinson [mailto:jin...@mobme.in] Sent: dinsdag 29 juni 2010 20:10 To: Nikos Balkanas Cc: Rene Kluwen; users Subject: Re: SMPP Delivery Reports Issue Yes. I have a dlr url and send-sms url works fine for all other SMSCs configured. The problem is with this particular SMSC I guess bb doesn't consider DLR and process it as an MO. Have attached detailed logs. Thanks Jinson Abraham 2010/6/29 Nikos Balkanas nbalka...@gmail.com Hi, What do you mean not processing? Have you specified a dlr-url? What is your sendsms url? Please post also detailed bb logs of the deliver_sm for the DLR along with some context. It seems that bb doesn't consider it a DLR, instead it thinks it is an MO SMS, tries to find an sms-service for it and fails. BR, Nikos - Original Message - From: Jinson To: Rene Kluwen Cc: users Sent: Tuesday, June 29, 2010 8:37 PM Subject: Re: SMPP Delivery Reports Issue Hello, I'm sorry for the confusion. It was getting inserted. But not processing the DLRs. I could see the following in my smsbox log 010-06-29 17:35:36 [24643] [4] WARNING: No translation found for id:70 sub:001 dlvrd:001 submit date:1006292305 done date:1006292305 stat:DELIVRD err:000 text:Test from +xx to +xx 2010-06-29 17:35:36 [24643] [4] ERROR: request failed Thanks Jinson Abraham On Tue, Jun 29, 2010 at 10:56 PM, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you try to do the same insert, manually? Do you get an error message? == Rene From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Jinson Sent: dinsdag 29 juni 2010 19:00 To: users Subject: SMPP Delivery Reports Issue Hello Users, I've configured a new SMSC on my existing kannel installation. My DLRs are not working on this SMSC. I'm using mysql DLR storage. I can see the insert queries in the log but nothing gets inserted into the DB. DLRs are coming on SMPP properly. 2010-06-29 16:55:18 [24139] [22] DEBUG: priority_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: schedule_delivery_time: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: validity_period: NULL 2010-06-29 16:55:18 [24139] [22] DEBUG: registered_delivery: 1 = 0x0001 2010-06-29 16:55:18 [24139] [22] DEBUG: replace_if_present_flag: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: data_coding: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_default_msg_id: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sm_length: 8 = 0x0008 2010-06-29 16:55:18 [24139] [22] DEBUG: short_message: Test SMS 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP[160by2SMPP]: Got PDU: 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU 0x795bf0 dump: 2010-06-29 16:55:18 [24139] [22] DEBUG: type_name: submit_sm_resp 2010-06-29 16:55:18 [24139] [22] DEBUG: command_id: 2147483652 = 0x8004 2010-06-29 16:55:18 [24139] [22] DEBUG: command_status: 0 = 0x 2010-06-29 16:55:18 [24139] [22] DEBUG: sequence_number: 18 = 0x0012 2010-06-29 16:55:18 [24139] [22] DEBUG: message_id: 51 2010-06-29 16:55:18 [24139] [22] DEBUG: SMPP PDU dump ends. 2010-06-29 16:55:18 [24139] [22] DEBUG: DLR[mysql]: Adding DLR smsc=160by2SMPP, ts=51, src=91X, dst=91X, mask=31, boxc=fabox 2010-06-29 16:55:18 [24139] [22] DEBUG: sql: INSERT INTO kannel_table (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('XXXSMPP', '51', '91X', '91X', '', 'http://xxx.xxx.xxx/dlr.php?type=%d http://xxx.xxx.xxx/dlr.php?type=%25dkannel_id=%25Fmsisdn=%25pdlrvalue=%2 5Amessage_id=900629222518-836128 kannel_id=%Fmsisdn=%pdlrvalue=%Amessage_id=900629222518-836128', '31', 'faaabox', '0') This is not getting inserted into the DB. Is there anything to do with msg-id-type? Can somebody help me on this? Thanks Jinson Abraham