[PATCH] Re: Problems with the handling of DLR's / SMPP
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Centrium GmbH |
| Message-ID | <[email protected]> |
Hi, ok it has nothing with bug's in kannel to do. It is a "broken" smsc, what are you using (btw. known one, see comments in the patch). Attached you can find patch, that should solve your problems, please try it... Attached patch just adds some workaround for broken smsc's... On Tuesday 26 August 2003 15:54, Stefan Cars wrote: [snip] > 2003-08-26 15:52:12 [6] DEBUG: DLR[internal]: Adding DLR smsc=t2new, > ts=6269704, src=71118, dst=46708443600, mask=1, boxc= here you have requested only DLR_SUCCESS [snip] > 2003-08-26 15:52:12 [7] DEBUG: data: 69 64 3a 36 32 36 39 37 30 34 20 > 73 75 62 3a 30 id:6269704 sub:0 > 2003-08-26 15:52:12 [7] DEBUG: data: 30 31 20 64 6c 76 72 64 3a 30 30 > 31 20 73 75 62 01 dlvrd:001 sub > 2003-08-26 15:52:12 [7] DEBUG: data: 6d 69 74 20 64 61 74 65 3a 30 33 > 30 38 32 36 31 mit date:0308261 > 2003-08-26 15:52:12 [7] DEBUG: data: 33 35 32 20 64 6f 6e 65 20 64 61 > 74 65 3a 30 33 352 done date:03 > 2003-08-26 15:52:12 [7] DEBUG: data: 30 38 32 36 31 33 35 32 20 73 74 > 61 74 3a 41 43 08261352 stat:AC > 2003-08-26 15:52:12 [7] DEBUG: data: 4b 45 44 20 20 20 65 72 72 3a 30 > 30 33 20 74 65 KED err:003 te > 2003-08-26 15:52:12 [7] DEBUG: data: 78 74 3a 20 00 > xt: . but see here, buggy smsc got us ACKED status, which we not requested... > 2003-08-26 15:52:12 [7] DEBUG: Octet string dump ends. > 2003-08-26 15:52:12 [7] DEBUG: SMPP PDU dump ends. > 2003-08-26 15:52:12 [7] DEBUG: SMPP[t2new] handle_pdu, got DLR > 2003-08-26 15:52:12 [7] DEBUG: DLR[internal]: Looking for DLR smsc=t2new, > ts=6269704, dst=(null), type=2 > 2003-08-26 15:52:12 [7] DEBUG: DLR[internal]: Ignoring DLR message because > of mask type=2 dlr->mask=1 > 2003-08-26 15:52:12 [7] ERROR: SMPP[t2new]: got DLR but could not find > message or was not interested in it here smpp and dlr-core found the appropriate message, but of your mask doesn't send it to smsbox. Here were appropriate message deleted, because type=2 is DLR_FAIL and is the and status of the message.... So here must smpp set type as DLR_BUFFERED... [snip] > 2003-08-26 15:52:18 [7] DEBUG: DLR[internal]: Looking for DLR smsc=t2new, > ts=6269704, dst=(null), type=1 > 2003-08-26 15:52:18 [7] WARNING: DLR[internal]: DLR for DST<(null)> not > found. > 2003-08-26 15:52:18 [7] ERROR: SMPP[t2new]: got DLR but could not find > message or was not interested in it and at the end here message can't be found, because deleted already... > 2003-08-26 15:52:18 [7] DEBUG: SMPP[t2new]: Sending PDU: > 2003-08-26 15:52:18 [7] DEBUG: SMPP PDU 0x813da00 dump: > 2003-08-26 15:52:18 [7] DEBUG: type_name: deliver_sm_resp > 2003-08-26 15:52:18 [7] DEBUG: command_id: 2147483653 = 0x80000005 > 2003-08-26 15:52:18 [7] DEBUG: command_status: 0 = 0x00000000 > 2003-08-26 15:52:18 [7] DEBUG: sequence_number: 10 = 0x0000000a > 2003-08-26 15:52:18 [7] DEBUG: message_id: NULL > 2003-08-26 15:52:18 [7] DEBUG: SMPP PDU dump ends. > > On Tue, 26 Aug 2003, Alexander Malysh wrote: > > Hi, > > > > please send us/me the whole bearerbox output... > > > > Thanks... > > > > On Tuesday 26 August 2003 15:33, Stefan Cars wrote: > > > This is with msg-id-type... > > > > > > 2003-08-26 15:30:52 [7] DEBUG: SMPP[t2new]: Got PDU: > > > 2003-08-26 15:30:52 [7] DEBUG: SMPP PDU 0x813d900 dump: > > > 2003-08-26 15:30:52 [7] DEBUG: type_name: deliver_sm > > > 2003-08-26 15:30:52 [7] DEBUG: command_id: 5 = 0x00000005 > > > 2003-08-26 15:30:52 [7] DEBUG: command_status: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: sequence_number: 2 = 0x00000002 > > > 2003-08-26 15:30:52 [7] DEBUG: service_type: NULL > > > 2003-08-26 15:30:52 [7] DEBUG: source_addr_ton: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: source_addr_npi: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: source_addr: "46708443600" > > > 2003-08-26 15:30:52 [7] DEBUG: dest_addr_ton: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: dest_addr_npi: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: destination_addr: NULL > > > 2003-08-26 15:30:52 [7] DEBUG: esm_class: 4 = 0x00000004 > > > 2003-08-26 15:30:52 [7] DEBUG: protocol_id: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: priority_flag: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: schedule_delivery_time: NULL > > > 2003-08-26 15:30:52 [7] DEBUG: validity_period: NULL > > > 2003-08-26 15:30:52 [7] DEBUG: registered_delivery: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: replace_if_present_flag: 0 = > > > 0x00000000 2003-08-26 15:30:52 [7] DEBUG: data_coding: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 > > > 2003-08-26 15:30:52 [7] DEBUG: sm_length: 101 = 0x00000065 > > > 2003-08-26 15:30:52 [7] DEBUG: short_message: > > > 2003-08-26 15:30:52 [7] DEBUG: Octet string at 0x81375e0: > > > 2003-08-26 15:30:52 [7] DEBUG: len: 101 > > > 2003-08-26 15:30:52 [7] DEBUG: size: 102 > > > 2003-08-26 15:30:52 [7] DEBUG: immutable: 0 > > > 2003-08-26 15:30:52 [7] DEBUG: data: 69 64 3a 36 32 36 39 33 35 35 > > > 20 73 75 62 3a 30 id:6269355 sub:0 > > > 2003-08-26 15:30:52 [7] DEBUG: data: 30 31 20 64 6c 76 72 64 3a 30 > > > 30 31 20 73 75 62 01 dlvrd:001 sub > > > 2003-08-26 15:30:52 [7] DEBUG: data: 6d 69 74 20 64 61 74 65 3a 32 > > > 36 30 39 30 33 31 mit date:2609031 > > > 2003-08-26 15:30:52 [7] DEBUG: data: 35 33 31 20 64 6f 6e 65 20 64 > > > 61 74 65 3a 30 33 531 done date:03 > > > 2003-08-26 15:30:52 [7] DEBUG: data: 30 38 32 36 31 33 33 31 20 73 > > > 74 61 74 3a 44 45 08261331 stat:DE > > > 2003-08-26 15:30:52 [7] DEBUG: data: 4c 49 56 52 44 20 65 72 72 3a > > > 30 30 30 20 74 65 LIVRD err:000 te > > > 2003-08-26 15:30:52 [7] DEBUG: data: 78 74 3a 20 00 > > > xt: . > > > 2003-08-26 15:30:52 [7] DEBUG: Octet string dump ends. > > > 2003-08-26 15:30:52 [7] DEBUG: SMPP PDU dump ends. > > > 2003-08-26 15:30:52 [7] DEBUG: SMPP[t2new] handle_pdu, got DLR > > > 2003-08-26 15:30:52 [7] DEBUG: DLR[internal]: Looking for DLR > > > smsc=t2new, ts=6269355, dst=(null), type=1 > > > 2003-08-26 15:30:52 [7] WARNING: DLR[internal]: DLR for DST<(null)> not > > > found. > > > 2003-08-26 15:30:52 [7] ERROR: SMPP[t2new]: got DLR but could not find > > > message or was not interested in it > > > > > > > > > / Stefan > > > > > > On Mon, 25 Aug 2003, Alexander Malysh wrote: > > > > hmm, please try msg-id-type = 1 and send us the debug log ... > > > > > > > > Thanks... > > > > > > > > On Monday 25 August 2003 20:43, Stefan Cars wrote: > > > > > Hehe, I've tried that aswell, nothing of it works... I've set > > > > > msg-type-id to all the different values that you can think of. > > > > > > > > > > / Stefan > > > > > > > > > > On Mon, 25 Aug 2003, Alexander Malysh wrote: > > > > > > oops, sorry If have read userguide , but I believe not sooo > > > > > > deeply ;) > > > > > > > > > > > > You need msg-type-id set for: submit_resp = HEX , deliver_sm = > > > > > > DECIMAL > > > > > > > > > > > > Good luck! > > > > > > > > > > > > On Monday 25 August 2003 20:39, Stefan Cars wrote: > > > > > > > Without msg-id-type the dump is as follows: > > > > > > > > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: SMPP[t2new]: Sending PDU: > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: SMPP PDU 0x813d900 dump: > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: type_name: submit_sm > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: command_id: 4 = 0x00000004 > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: command_status: 0 = 0x00000000 > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: sequence_number: 3 = > > > > > > > 0x00000003 2003-08-25 20:36:45 [6] DEBUG: service_type: > > > > > > > "1718" > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: source_addr_ton: 5 = > > > > > > > 0x00000005 2003-08-25 20:36:45 [6] DEBUG: source_addr_npi: 1 > > > > > > > = 0x00000001 2003-08-25 20:36:45 [6] DEBUG: source_addr: > > > > > > > "71118" > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: dest_addr_ton: 2 = 0x00000002 > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: dest_addr_npi: 1 = 0x00000001 > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: destination_addr: > > > > > > > "46708443600" 2003-08-25 20:36:45 [6] DEBUG: esm_class: 3 = > > > > > > > 0x00000003 2003-08-25 20:36:45 [6] DEBUG: protocol_id: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:45 [6] DEBUG: priority_flag: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:45 [6] DEBUG: > > > > > > > schedule_delivery_time: NULL 2003-08-25 20:36:45 [6] DEBUG: > > > > > > > validity_period: NULL 2003-08-25 20:36:45 [6] DEBUG: > > > > > > > registered_delivery: 1 = 0x00000001 2003-08-25 20:36:45 [6] > > > > > > > DEBUG: > > > > > > > replace_if_present_flag: 0 = 0x00000000 2003-08-25 20:36:45 [6] > > > > > > > DEBUG: data_coding: 0 = 0x00000000 2003-08-25 20:36:45 [6] > > > > > > > DEBUG: sm_default_msg_id: 0 = 0x00000000 2003-08-25 20:36:45 > > > > > > > [6] DEBUG: sm_length: 3 = 0x00000003 2003-08-25 20:36:45 [6] > > > > > > > DEBUG: short_message: "hej" > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: SMPP PDU dump ends. > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: SMPP[t2new]: Got PDU: > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: SMPP PDU 0x813d900 dump: > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: type_name: submit_sm_resp > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: command_id: 2147483652 = > > > > > > > 0x80000004 2003-08-25 20:36:45 [6] DEBUG: command_status: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:45 [6] DEBUG: sequence_number: 3 > > > > > > > = 0x00000003 2003-08-25 20:36:45 [6] DEBUG: message_id: > > > > > > > "0005f7df6" 2003-08-25 20:36:45 [6] DEBUG: SMPP PDU dump ends. > > > > > > > 2003-08-25 20:36:45 [6] DEBUG: DLR[internal]: Adding DLR > > > > > > > smsc=t2new, ts=0005f7df6, src=71118, dst=46708443600, mask=1, > > > > > > > boxc= 2003-08-25 20:36:46 [7] DEBUG: SMPP[t2new]: Got PDU: > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: SMPP PDU 0x813d900 dump: > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: type_name: deliver_sm > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: command_id: 5 = 0x00000005 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: command_status: 0 = 0x00000000 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: sequence_number: 1 = > > > > > > > 0x00000001 2003-08-25 20:36:46 [7] DEBUG: service_type: NULL > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: source_addr_ton: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:46 [7] DEBUG: source_addr_npi: 0 > > > > > > > = 0x00000000 2003-08-25 20:36:46 [7] DEBUG: source_addr: > > > > > > > "46708443600" 2003-08-25 20:36:46 [7] DEBUG: dest_addr_ton: 0 > > > > > > > = 0x00000000 2003-08-25 20:36:46 [7] DEBUG: dest_addr_npi: 0 > > > > > > > = 0x00000000 2003-08-25 20:36:46 [7] DEBUG: destination_addr: > > > > > > > NULL 2003-08-25 20:36:46 [7] DEBUG: esm_class: 4 = 0x00000004 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: protocol_id: 0 = 0x00000000 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: priority_flag: 0 = 0x00000000 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: schedule_delivery_time: NULL > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: validity_period: NULL > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: registered_delivery: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:46 [7] DEBUG: > > > > > > > replace_if_present_flag: 0 = 0x00000000 2003-08-25 20:36:46 [7] > > > > > > > DEBUG: data_coding: 0 = 0x00000000 2003-08-25 20:36:46 [7] > > > > > > > DEBUG: sm_default_msg_id: 0 = 0x00000000 2003-08-25 20:36:46 > > > > > > > [7] DEBUG: sm_length: 101 = 0x00000065 2003-08-25 20:36:46 [7] > > > > > > > DEBUG: short_message: > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: Octet string at 0x81375d0: > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: len: 101 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: size: 102 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: immutable: 0 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: data: 69 64 3a 36 32 35 38 > > > > > > > 31 36 36 20 73 75 62 3a 30 id:6258166 sub:0 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: data: 30 31 20 64 6c 76 72 > > > > > > > 64 3a 30 30 31 20 73 75 62 01 dlvrd:001 sub > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: data: 6d 69 74 20 64 61 74 > > > > > > > 65 3a 30 33 30 38 32 35 31 mit date:0308251 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: data: 38 33 37 20 64 6f 6e > > > > > > > 65 20 64 61 74 65 3a 30 33 837 done date:03 > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: data: 30 38 32 35 31 38 33 > > > > > > > 37 20 73 74 61 74 3a 41 43 08251837 stat:AC > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: data: 4b 45 44 20 20 20 65 > > > > > > > 72 72 3a 30 30 33 20 74 65 KED err:003 te > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: data: 78 74 3a 20 00 > > > > > > > xt: . > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: Octet string dump ends. > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: SMPP PDU dump ends. > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: SMPP[t2new] handle_pdu, got DLR > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: DLR[internal]: Looking for DLR > > > > > > > smsc=t2new, ts=6258166, dst=(null), type=2 > > > > > > > 2003-08-25 20:36:46 [7] WARNING: DLR[internal]: DLR for > > > > > > > DST<(null)> not found. > > > > > > > 2003-08-25 20:36:46 [7] ERROR: SMPP[t2new]: got DLR but could > > > > > > > not find message or was not interested in it > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: SMPP[t2new]: Sending PDU: > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: SMPP PDU 0x813da00 dump: > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: type_name: deliver_sm_resp > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: command_id: 2147483653 = > > > > > > > 0x80000005 2003-08-25 20:36:46 [7] DEBUG: command_status: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:46 [7] DEBUG: sequence_number: 1 > > > > > > > = 0x00000001 2003-08-25 20:36:46 [7] DEBUG: message_id: NULL > > > > > > > 2003-08-25 20:36:46 [7] DEBUG: SMPP PDU dump ends. > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: SMPP[t2new]: Got PDU: > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: SMPP PDU 0x813d900 dump: > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: type_name: deliver_sm > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: command_id: 5 = 0x00000005 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: command_status: 0 = 0x00000000 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: sequence_number: 2 = > > > > > > > 0x00000002 2003-08-25 20:36:51 [7] DEBUG: service_type: NULL > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: source_addr_ton: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:51 [7] DEBUG: source_addr_npi: 0 > > > > > > > = 0x00000000 2003-08-25 20:36:51 [7] DEBUG: source_addr: > > > > > > > "46708443600" 2003-08-25 20:36:51 [7] DEBUG: dest_addr_ton: 0 > > > > > > > = 0x00000000 2003-08-25 20:36:51 [7] DEBUG: dest_addr_npi: 0 > > > > > > > = 0x00000000 2003-08-25 20:36:51 [7] DEBUG: destination_addr: > > > > > > > NULL 2003-08-25 20:36:51 [7] DEBUG: esm_class: 4 = 0x00000004 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: protocol_id: 0 = 0x00000000 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: priority_flag: 0 = 0x00000000 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: schedule_delivery_time: NULL > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: validity_period: NULL > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: registered_delivery: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:51 [7] DEBUG: > > > > > > > replace_if_present_flag: 0 = 0x00000000 2003-08-25 20:36:51 [7] > > > > > > > DEBUG: data_coding: 0 = 0x00000000 2003-08-25 20:36:51 [7] > > > > > > > DEBUG: sm_default_msg_id: 0 = 0x00000000 2003-08-25 20:36:51 > > > > > > > [7] DEBUG: sm_length: 101 = 0x00000065 2003-08-25 20:36:51 [7] > > > > > > > DEBUG: short_message: > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: Octet string at 0x81375e0: > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: len: 101 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: size: 102 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: immutable: 0 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: data: 69 64 3a 36 32 35 38 > > > > > > > 31 36 36 20 73 75 62 3a 30 id:6258166 sub:0 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: data: 30 31 20 64 6c 76 72 > > > > > > > 64 3a 30 30 31 20 73 75 62 01 dlvrd:001 sub > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: data: 6d 69 74 20 64 61 74 > > > > > > > 65 3a 32 35 30 39 30 33 32 mit date:2509032 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: data: 30 33 37 20 64 6f 6e > > > > > > > 65 20 64 61 74 65 3a 30 33 037 done date:03 > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: data: 30 38 32 35 31 38 33 > > > > > > > 37 20 73 74 61 74 3a 44 45 08251837 stat:DE > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: data: 4c 49 56 52 44 20 65 > > > > > > > 72 72 3a 30 30 30 20 74 65 LIVRD err:000 te > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: data: 78 74 3a 20 00 > > > > > > > xt: . > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: Octet string dump ends. > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: SMPP PDU dump ends. > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: SMPP[t2new] handle_pdu, got DLR > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: DLR[internal]: Looking for DLR > > > > > > > smsc=t2new, ts=6258166, dst=(null), type=1 > > > > > > > 2003-08-25 20:36:51 [7] WARNING: DLR[internal]: DLR for > > > > > > > DST<(null)> not found. > > > > > > > 2003-08-25 20:36:51 [7] ERROR: SMPP[t2new]: got DLR but could > > > > > > > not find message or was not interested in it > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: SMPP[t2new]: Sending PDU: > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: SMPP PDU 0x813da00 dump: > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: type_name: deliver_sm_resp > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: command_id: 2147483653 = > > > > > > > 0x80000005 2003-08-25 20:36:51 [7] DEBUG: command_status: 0 = > > > > > > > 0x00000000 2003-08-25 20:36:51 [7] DEBUG: sequence_number: 2 > > > > > > > = 0x00000002 2003-08-25 20:36:51 [7] DEBUG: message_id: NULL > > > > > > > 2003-08-25 20:36:51 [7] DEBUG: SMPP PDU dump ends. > > > > > > > > > > > > > > On Mon, 25 Aug 2003, Alexander Malysh wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > no problem here at all ;) just try to not define the > > > > > > > > msg-id-type for this smsc and all should be fine... please > > > > > > > > for the future: read userguide! > > > > > > > > > > > > > > > > On Monday 25 August 2003 20:23, Stefan Cars wrote: > > > > > > > > > Hi! > > > > > > > > > > > > > > > > > > I just stumpled across a problem using DLR with a new SMSC > > > > > > > > > (SMPP), this have been wroking fine before on some other > > > > > > > > > SMSC's so I suspect the problem is with the source and > > > > > > > > > destionation address at the SMSC.. > > > > > > > > > > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: SMPP[t2new]: Sending PDU: > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: SMPP PDU 0x813d900 dump: > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: type_name: submit_sm > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: command_id: 4 = 0x00000004 > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: command_status: 0 = > > > > > > > > > 0x00000000 2003-08-25 20:18:31 [6] DEBUG: > > > > > > > > > sequence_number: 6 = 0x00000006 2003-08-25 20:18:31 [6] > > > > > > > > > DEBUG: service_type: "1718" > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: source_addr_ton: 5 = > > > > > > > > > 0x00000005 2003-08-25 20:18:31 [6] DEBUG: > > > > > > > > > source_addr_npi: 1 = 0x00000001 2003-08-25 20:18:31 [6] > > > > > > > > > DEBUG: source_addr: "71118" > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: dest_addr_ton: 2 = > > > > > > > > > 0x00000002 2003-08-25 20:18:31 [6] DEBUG: dest_addr_npi: > > > > > > > > > 1 = 0x00000001 2003-08-25 20:18:31 [6] DEBUG: > > > > > > > > > destination_addr: "46708443600" 2003-08-25 20:18:31 [6] > > > > > > > > > DEBUG: esm_class: 3 = 0x00000003 2003-08-25 20:18:31 [6] > > > > > > > > > DEBUG: protocol_id: 0 = 0x00000000 2003-08-25 20:18:31 > > > > > > > > > [6] DEBUG: priority_flag: 0 = 0x00000000 2003-08-25 > > > > > > > > > 20:18:31 [6] DEBUG: > > > > > > > > > schedule_delivery_time: NULL 2003-08-25 20:18:31 [6] DEBUG: > > > > > > > > > validity_period: NULL 2003-08-25 20:18:31 [6] DEBUG: > > > > > > > > > registered_delivery: 1 = 0x00000001 2003-08-25 20:18:31 [6] > > > > > > > > > DEBUG: > > > > > > > > > replace_if_present_flag: 0 = 0x00000000 2003-08-25 20:18:31 > > > > > > > > > [6] DEBUG: data_coding: 0 = 0x00000000 2003-08-25 > > > > > > > > > 20:18:31 [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: sm_length: 3 = 0x00000003 > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: short_message: "hej" > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: SMPP PDU dump ends. > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: SMPP[t2new]: Got PDU: > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: SMPP PDU 0x813d900 dump: > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: type_name: submit_sm_resp > > > > > > > > > 2003-08-25 20:18:31 [6] DEBUG: command_id: 2147483652 = > > > > > > > > > 0x80000004 2003-08-25 20:18:31 [6] DEBUG: command_status: > > > > > > > > > 0 = 0x00000000 2003-08-25 20:18:31 [6] DEBUG: > > > > > > > > > sequence_number: 6 = 0x00000006 2003-08-25 20:18:31 [6] > > > > > > > > > DEBUG: message_id: "0005f7d1f" 2003-08-25 20:18:31 [6] > > > > > > > > > DEBUG: SMPP PDU dump ends. 2003-08-25 20:18:31 [6] DEBUG: > > > > > > > > > DLR[internal]: Adding DLR smsc=t2new, ts=6257951, > > > > > > > > > src=71118, dst=46708443600, mask=1, boxc= 2003-08-25 > > > > > > > > > 20:18:31 [1] DEBUG: Dumping 0 messages and 0 acks to store > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: SMPP[t2new]: Got PDU: > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: SMPP PDU 0x813d900 dump: > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: type_name: deliver_sm > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: command_id: 5 = 0x00000005 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: command_status: 0 = > > > > > > > > > 0x00000000 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > sequence_number: 3 = 0x00000003 2003-08-25 20:18:32 [7] > > > > > > > > > DEBUG: service_type: NULL 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > source_addr_ton: 0 = 0x00000000 2003-08-25 20:18:32 [7] > > > > > > > > > DEBUG: source_addr_npi: 0 = 0x00000000 2003-08-25 > > > > > > > > > 20:18:32 [7] DEBUG: source_addr: "46708443600" 2003-08-25 > > > > > > > > > 20:18:32 [7] DEBUG: dest_addr_ton: 0 = 0x00000000 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: dest_addr_npi: 0 = > > > > > > > > > 0x00000000 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > destination_addr: NULL 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > esm_class: 4 = 0x00000004 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > protocol_id: 0 = 0x00000000 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > priority_flag: 0 = 0x00000000 2003-08-25 20:18:32 [7] > > > > > > > > > DEBUG: schedule_delivery_time: NULL 2003-08-25 20:18:32 > > > > > > > > > [7] DEBUG: validity_period: NULL 2003-08-25 20:18:32 [7] > > > > > > > > > DEBUG: registered_delivery: 0 = 0x00000000 2003-08-25 > > > > > > > > > 20:18:32 [7] DEBUG: > > > > > > > > > replace_if_present_flag: 0 = 0x00000000 2003-08-25 20:18:32 > > > > > > > > > [7] DEBUG: data_coding: 0 = 0x00000000 2003-08-25 > > > > > > > > > 20:18:32 [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: sm_length: 101 = 0x00000065 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: short_message: > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: Octet string at > > > > > > > > > 0x8137640: 2003-08-25 20:18:32 [7] DEBUG: len: 101 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: size: 102 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: immutable: 0 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: data: 69 64 3a 36 32 35 > > > > > > > > > 37 39 35 31 20 73 75 62 3a 30 id:6257951 sub:0 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: data: 30 31 20 64 6c 76 > > > > > > > > > 72 64 3a 30 30 31 20 73 75 62 01 dlvrd:001 sub > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: data: 6d 69 74 20 64 61 > > > > > > > > > 74 65 3a 30 33 30 38 32 35 31 mit date:0308251 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: data: 38 31 38 20 64 6f > > > > > > > > > 6e 65 20 64 61 74 65 3a 30 33 818 done date:03 > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: data: 30 38 32 35 31 38 > > > > > > > > > 31 38 20 73 74 61 74 3a 41 43 08251818 stat:AC > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: data: 4b 45 44 20 20 20 > > > > > > > > > 65 72 72 3a 30 30 33 20 74 65 KED err:003 te > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: data: 78 74 3a 20 00 > > > > > > > > > xt: . > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: Octet string dump ends. > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: SMPP PDU dump ends. > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: SMPP[t2new] handle_pdu, got > > > > > > > > > DLR 2003-08-25 20:18:32 [7] DEBUG: DLR[internal]: Looking > > > > > > > > > for DLR smsc=t2new, ts=103119185, dst=(null), type=2 > > > > > > > > > 2003-08-25 20:18:32 [7] WARNING: DLR[internal]: DLR for > > > > > > > > > DST<(null)> not found. > > > > > > > > > 2003-08-25 20:18:32 [7] ERROR: SMPP[t2new]: got DLR but > > > > > > > > > could not find message or was not interested in it > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: SMPP[t2new]: Sending PDU: > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: SMPP PDU 0x813da00 dump: > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: type_name: deliver_sm_resp > > > > > > > > > 2003-08-25 20:18:32 [7] DEBUG: command_id: 2147483653 = > > > > > > > > > 0x80000005 2003-08-25 20:18:32 [7] DEBUG: command_status: > > > > > > > > > 0 = 0x00000000 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > sequence_number: 3 = 0x00000003 2003-08-25 20:18:32 [7] > > > > > > > > > DEBUG: message_id: NULL 2003-08-25 20:18:32 [7] DEBUG: > > > > > > > > > SMPP PDU dump ends. 2003-08-25 20:18:38 [7] DEBUG: > > > > > > > > > SMPP[t2new]: Got PDU: 2003-08-25 20:18:38 [7] DEBUG: SMPP > > > > > > > > > PDU 0x813d900 dump: 2003-08-25 20:18:38 [7] DEBUG: > > > > > > > > > type_name: deliver_sm 2003-08-25 20:18:38 [7] DEBUG: > > > > > > > > > command_id: 5 = 0x00000005 2003-08-25 20:18:38 [7] DEBUG: > > > > > > > > > command_status: 0 = 0x00000000 2003-08-25 20:18:38 [7] > > > > > > > > > DEBUG: sequence_number: 4 = 0x00000004 2003-08-25 > > > > > > > > > 20:18:38 [7] DEBUG: service_type: NULL 2003-08-25 > > > > > > > > > 20:18:38 [7] DEBUG: source_addr_ton: 0 = 0x00000000 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: source_addr_npi: 0 = > > > > > > > > > 0x00000000 2003-08-25 20:18:38 [7] DEBUG: source_addr: > > > > > > > > > "46708443600" 2003-08-25 20:18:38 [7] DEBUG: > > > > > > > > > dest_addr_ton: 0 = 0x00000000 2003-08-25 20:18:38 [7] > > > > > > > > > DEBUG: dest_addr_npi: 0 = 0x00000000 2003-08-25 20:18:38 > > > > > > > > > [7] DEBUG: destination_addr: NULL 2003-08-25 20:18:38 [7] > > > > > > > > > DEBUG: esm_class: 4 = 0x00000004 2003-08-25 20:18:38 [7] > > > > > > > > > DEBUG: protocol_id: 0 = 0x00000000 2003-08-25 20:18:38 > > > > > > > > > [7] DEBUG: priority_flag: 0 = 0x00000000 2003-08-25 > > > > > > > > > 20:18:38 [7] DEBUG: schedule_delivery_time: NULL > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: validity_period: NULL > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: registered_delivery: 0 = > > > > > > > > > 0x00000000 2003-08-25 20:18:38 [7] DEBUG: > > > > > > > > > replace_if_present_flag: 0 = 0x00000000 2003-08-25 20:18:38 > > > > > > > > > [7] DEBUG: data_coding: 0 = 0x00000000 2003-08-25 > > > > > > > > > 20:18:38 [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: sm_length: 101 = 0x00000065 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: short_message: > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: Octet string at > > > > > > > > > 0x8137640: 2003-08-25 20:18:38 [7] DEBUG: len: 101 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: size: 102 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: immutable: 0 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: data: 69 64 3a 36 32 35 > > > > > > > > > 37 39 35 31 20 73 75 62 3a 30 id:6257951 sub:0 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: data: 30 31 20 64 6c 76 > > > > > > > > > 72 64 3a 30 30 31 20 73 75 62 01 dlvrd:001 sub > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: data: 6d 69 74 20 64 61 > > > > > > > > > 74 65 3a 32 35 30 39 30 33 32 mit date:2509032 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: data: 30 31 38 20 64 6f > > > > > > > > > 6e 65 20 64 61 74 65 3a 30 33 018 done date:03 > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: data: 30 38 32 35 31 38 > > > > > > > > > 31 38 20 73 74 61 74 3a 44 45 08251818 stat:DE > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: data: 4c 49 56 52 44 20 > > > > > > > > > 65 72 72 3a 30 30 30 20 74 65 LIVRD err:000 te > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: data: 78 74 3a 20 00 > > > > > > > > > xt: . > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: Octet string dump ends. > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: SMPP PDU dump ends. > > > > > > > > > 2003-08-25 20:18:38 [7] DEBUG: SMPP[t2new] handle_pdu, got > > > > > > > > > DLR 2003-08-25 20:18:38 [7] DEBUG: DLR[internal]: Looking > > > > > > > > > for DLR smsc=t2new, ts=103119185, dst=(null), type=1 > > > > > > > > > 2003-08-25 20:18:38 [7] WARNING: DLR[internal]: DLR for > > > > > > > > > DST<(null)> not found. > > > > > > > > > 2003-08-25 20:18:38 [7] ERROR: SMPP[t2new]: got DLR but > > > > > > > > > could not find message or was not interested in it > > > > > > > > > > > > > > > > -- > > > > > > > > Best regards / Mit besten Grüßen aus Düsseldorf > > > > > > > > > > > > > > > > Dipl.-Ing. > > > > > > > > Alexander Malysh > > > > > > > > ___________________________________________ > > > > > > > > > > > > > > > > Centrium GmbH > > > > > > > > Vogelsanger Weg 80 > > > > > > > > 40470 Düsseldorf > > > > > > > > > > > > > > > > Fon: +49 (0211) 74 84 51 80 > > > > > > > > Fax: +49 (0211) 277 49 109 > > > > > > > > > > > > > > > > email: a.malysh at centrium.de > > > > > > > > web: www.centrium.de > > > > > > > > msn: olek2002 at hotmail.com > > > > > > > > icq: 98063111 > > > > > > > > ___________________________________________ > > > > > > > > > > > > > > > > Please avoid sending me Word or PowerPoint attachments. > > > > > > > > See http://www.fsf.org/philosophy/no-word-attachments.html > > > > > > > > > > > > -- > > > > > > Best regards / Mit besten Grüßen aus Düsseldorf > > > > > > > > > > > > Dipl.-Ing. > > > > > > Alexander Malysh > > > > > > ___________________________________________ > > > > > > > > > > > > Centrium GmbH > > > > > > Vogelsanger Weg 80 > > > > > > 40470 Düsseldorf > > > > > > > > > > > > Fon: +49 (0211) 74 84 51 80 > > > > > > Fax: +49 (0211) 277 49 109 > > > > > > > > > > > > email: a.malysh at centrium.de > > > > > > web: www.centrium.de > > > > > > msn: olek2002 at hotmail.com > > > > > > icq: 98063111 > > > > > > ___________________________________________ > > > > > > > > > > > > Please avoid sending me Word or PowerPoint attachments. > > > > > > See http://www.fsf.org/philosophy/no-word-attachments.html > > > > > > > > -- > > > > Best regards / Mit besten Grüßen aus Düsseldorf > > > > > > > > Dipl.-Ing. > > > > Alexander Malysh > > > > ___________________________________________ > > > > > > > > Centrium GmbH > > > > Vogelsanger Weg 80 > > > > 40470 Düsseldorf > > > > > > > > Fon: +49 (0211) 74 84 51 80 > > > > Fax: +49 (0211) 277 49 109 > > > > > > > > email: a.malysh at centrium.de > > > > web: www.centrium.de > > > > msn: olek2002 at hotmail.com > > > > icq: 98063111 > > > > ___________________________________________ > > > > > > > > Please avoid sending me Word or PowerPoint attachments. > > > > See http://www.fsf.org/philosophy/no-word-attachments.html > > > > -- > > Best regards / Mit besten Grüßen aus Düsseldorf > > > > Dipl.-Ing. > > Alexander Malysh > > ___________________________________________ > > > > Centrium GmbH > > Vogelsanger Weg 80 > > 40470 Düsseldorf > > > > Fon: +49 (0211) 74 84 51 80 > > Fax: +49 (0211) 277 49 109 > > > > email: a.malysh at centrium.de > > web: www.centrium.de > > msn: olek2002 at hotmail.com > > icq: 98063111 > > ___________________________________________ > > > > Please avoid sending me Word or PowerPoint attachments. > > See http://www.fsf.org/philosophy/no-word-attachments.html -- Best regards / Mit besten Grüßen aus Düsseldorf Dipl.-Ing. Alexander Malysh ___________________________________________ Centrium GmbH Vogelsanger Weg 80 40470 Düsseldorf Fon: +49 (0211) 74 84 51 80 Fax: +49 (0211) 277 49 109 email: a.malysh at centrium.de web: www.centrium.de msn: olek2002 at hotmail.com icq: 98063111 ___________________________________________ Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html
smpp_buffered.patch
(text/x-diff, 1.5 KB)
Index: gw/smsc/smsc_smpp.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_smpp.c,v
retrieving revision 1.47
diff -a -u -r1.47 smsc_smpp.c
--- gw/smsc/smsc_smpp.c 23 Aug 2003 22:03:53 -0000 1.47
+++ gw/smsc/smsc_smpp.c 26 Aug 2003 15:02:45 -0000
@@ -813,11 +813,20 @@
/*
* we get the following status:
* DELIVRD, ACCEPTD, EXPIRED, DELETED, UNDELIV, UNKNOWN, REJECTD
+ *
+ * Note: some buggy SMSC's send us immediately delivery notifications although
+ * we doesn't requested these and additional with wrong stat: field set.
+ *
+ * Examples of above note:
+ * MBLOX (UK) : ACKED
*/
- if ((stat != NULL) && ((octstr_compare(stat, octstr_imm("DELIVRD")) == 0) ||
- (octstr_compare(stat, octstr_imm("ACCEPTD")) == 0)))
+ if ((stat != NULL) && (octstr_compare(stat, octstr_imm("DELIVRD")) == 0 ||
+ octstr_compare(stat, octstr_imm("ACCEPTD")) == 0))
dlrstat = DLR_SUCCESS;
+ else if (stat != NULL && (octstr_compare(stat, octstr_imm("ACKED")) == 0 ||
+ octstr_compare(stat, octstr_imm("ENROUTE")) == 0))
+ dlrstat = DLR_BUFFERED;
else
dlrstat = DLR_FAIL;