Hello everybody, I'm using kannel as an SMS gateway, but I noticed something.
This is my architecture: SMPP Client >> openSMPPBox >> Kannel >> SMPP Server When I submit one SMS from my SMPP Client to the SMPPBox it connects to the bearerbox: Box connections: smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 2d 14h 17m 48s) smsbox:adrmzL19, IP 127.0.0.1 (0 queued), (on-line 0d 0h 3m 32s) The thing is that when I'm waiting for the DLR, sometimes it has a delay for more than 1 min and the user disconnects, so, when the dlr is coming back it gives me one error that the box is gone: -------- 2014-07-15 17:57:19 [20434] [6] DEBUG: SMPP PDU dump ends. 2014-07-15 17:57:19 [20434] [6] DEBUG: SMPP[provider]: throughput (0.00,0.00) 2014-07-15 17:57:19 [20434] [6] DEBUG: SMPP[provider]: throughput (0.00,0.00) 2014-07-15 17:57:19 [20434] [6] DEBUG: SMPP[provider]: Got PDU: 2014-07-15 17:57:19 [20434] [6] DEBUG: SMPP PDU 0x7fd79000f630 dump: 2014-07-15 17:57:19 [20434] [6] DEBUG: type_name: enquire_link_resp 2014-07-15 17:57:19 [20434] [6] DEBUG: command_id: 2147483669 = 0x80000015 2014-07-15 17:57:19 [20434] [6] DEBUG: command_status: 0 = 0x00000000 2014-07-15 17:57:19 [20434] [6] DEBUG: sequence_number: 7488 = 0x00001d40 2014-07-15 17:57:19 [20434] [6] DEBUG: SMPP PDU dump ends. 2014-07-15 17:57:19 [20434] [6] DEBUG: SMPP[provider]: throughput (0.00,0.00) 2014-07-15 17:57:49 [20434] [6] DEBUG: SMPP[provider]: Sending enquire link: 2014-07-15 17:57:49 [20434] [6] DEBUG: SMPP PDU 0x7fd79000f630 dump: 2014-07-15 17:57:49 [20434] [6] DEBUG: type_name: enquire_link 2014-07-15 17:57:49 [20434] [6] DEBUG: command_id: 21 = 0x00000015 2014-07-15 17:57:49 [20434] [6] DEBUG: command_status: 0 = 0x00000000 2014-07-15 17:57:49 [20434] [6] DEBUG: sequence_number: 7489 = 0x00001d41 2014-07-15 17:57:49 [20434] [6] DEBUG: SMPP PDU dump ends. 2014-07-15 17:57:49 [20434] [6] DEBUG: SMPP[provider]: throughput (0.00,0.00) 2014-07-15 17:57:50 [20434] [6] DEBUG: SMPP[provider]: throughput (0.00,0.00) 2014-07-15 17:57:50 [20434] [6] DEBUG: SMPP[provider]: Got PDU: 2014-07-15 17:57:50 [20434] [6] DEBUG: SMPP PDU 0x7fd79000f630 dump: 2014-07-15 17:57:50 [20434] [6] DEBUG: type_name: enquire_link_resp 2014-07-15 17:57:50 [20434] [6] DEBUG: command_id: 2147483669 = 0x80000015 2014-07-15 17:57:50 [20434] [6] DEBUG: command_status: 0 = 0x00000000 2014-07-15 17:57:50 [20434] [6] DEBUG: sequence_number: 7489 = 0x00001d41 2014-07-15 17:57:50 [20434] [6] DEBUG: SMPP PDU dump ends. 2014-07-15 17:57:50 [20434] [6] DEBUG: SMPP[provider]: throughput (0.00,0.00) 2014-07-15 17:58:04 [20434] [4] WARNING: Could not route message to smsbox id <adrmzL19>, smsbox is gone! 2014-07-15 17:58:04 [20434] [4] WARNING: Could not route message to smsbox id <adrmzL19>, smsbox is gone! ------- When I rebind manually: ------ 2014-07-15 17:59:02 [20434] [65] DEBUG: boxc_receiver: got boxc_id <adrmzL19> from <127.0.0.1> 2014-07-15 17:59:02 [20434] [65] DEBUG: boxc_receiver: got boxc_id <adrmzL19> from <127.0.0.1> 2014-07-15 17:59:02 [20456] [54] DEBUG: SMPP[adrmzL19]: Sending PDU: 2014-07-15 17:59:02 [20456] [54] DEBUG: SMPP PDU 0x7f8c9c0013a0 dump: 2014-07-15 17:59:02 [20456] [54] DEBUG: type_name: bind_transceiver_resp 2014-07-15 17:59:02 [20456] [54] DEBUG: command_id: 2147483657 = 0x80000009 2014-07-15 17:59:02 [20456] [54] DEBUG: command_status: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [54] DEBUG: sequence_number: 1 = 0x00000001 2014-07-15 17:59:02 [20456] [54] DEBUG: system_id: "SMPP" 2014-07-15 17:59:02 [20456] [54] DEBUG: SMPP PDU dump ends. 2014-07-15 17:59:02 [20434] [66] DEBUG: Thread 66 (gw/bb_boxc.c:boxc_sender) maps to pid 20434. 2014-07-15 17:59:02 [20434] [66] DEBUG: Thread 66 (gw/bb_boxc.c:boxc_sender) maps to pid 20434. 2014-07-15 17:59:02 [20434] [66] DEBUG: send_msg: sending msg to boxc: <adrmzL19> 2014-07-15 17:59:02 [20434] [66] DEBUG: send_msg: sending msg to boxc: <adrmzL19> 2014-07-15 17:59:02 [20456] [53] INFO: We received an SMS message. 2014-07-15 17:59:02 [20456] [53] DEBUG: DLR[mysql]: Looking for DLR smsc=adrmzL19, ts=3492b493-2f8a-4a35-87d9-598bb9ec332e, dst=XXXXXXXXXX, type=1 2014-07-15 17:59:02 [20456] [53] DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`, `boxcid` FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 2014-07-15 17:59:02 [20456] [53] DEBUG: column=mask buffer_type=3 max_length=0 length=10 2014-07-15 17:59:02 [20456] [53] DEBUG: column=service buffer_type=253 max_length=0 length=40 2014-07-15 17:59:02 [20456] [53] DEBUG: column=url buffer_type=253 max_length=0 length=255 2014-07-15 17:59:02 [20456] [53] DEBUG: column=source buffer_type=253 max_length=0 length=40 2014-07-15 17:59:02 [20456] [53] DEBUG: column=destination buffer_type=253 max_length=0 length=40 2014-07-15 17:59:02 [20456] [53] DEBUG: column=boxcid buffer_type=253 max_length=0 length=40 2014-07-15 17:59:02 [20456] [53] DEBUG: DLR[mysql]: created DLR message for URL <3492b493-2f8a-4a35-87d9-598bb9ec332e> 2014-07-15 17:59:02 [20456] [53] DEBUG: removing DLR from database 2014-07-15 17:59:02 [20456] [53] DEBUG: sql: DELETE FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 2014-07-15 17:59:02 [20456] [53] DEBUG: new group created `smpp' 2014-07-15 17:59:02 [20456] [53] DEBUG: group=`smpp' key=`dlr_err' value=`' 2014-07-15 17:59:02 [20456] [53] DEBUG: SMPP[adrmzL19]: Sending PDU: 2014-07-15 17:59:02 [20456] [53] DEBUG: SMPP PDU 0x7f8ca0011040 dump: 2014-07-15 17:59:02 [20456] [53] DEBUG: type_name: deliver_sm 2014-07-15 17:59:02 [20456] [53] DEBUG: command_id: 5 = 0x00000005 2014-07-15 17:59:02 [20456] [53] DEBUG: command_status: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: sequence_number: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: service_type: NULL 2014-07-15 17:59:02 [20456] [53] DEBUG: source_addr_ton: 2 = 0x00000002 2014-07-15 17:59:02 [20456] [53] DEBUG: source_addr_npi: 1 = 0x00000001 2014-07-15 17:59:02 [20456] [53] DEBUG: source_addr: "441234567" 2014-07-15 17:59:02 [20456] [53] DEBUG: dest_addr_ton: 2 = 0x00000002 2014-07-15 17:59:02 [20456] [53] DEBUG: dest_addr_npi: 1 = 0x00000001 2014-07-15 17:59:02 [20456] [53] DEBUG: destination_addr: "XXXXXXXXXX" 2014-07-15 17:59:02 [20456] [53] DEBUG: esm_class: 4 = 0x00000004 2014-07-15 17:59:02 [20456] [53] DEBUG: protocol_id: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: priority_flag: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: schedule_delivery_time: NULL 2014-07-15 17:59:02 [20456] [53] DEBUG: validity_period: NULL 2014-07-15 17:59:02 [20456] [53] DEBUG: registered_delivery: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: replace_if_present_flag: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: data_coding: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: sm_default_msg_id: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: sm_length: 0 = 0x00000000 2014-07-15 17:59:02 [20456] [53] DEBUG: short_message: 2014-07-15 17:59:02 [20456] [53] DEBUG: Octet string at 0x7f8ca0001000: 2014-07-15 17:59:02 [20456] [53] DEBUG: len: 148 2014-07-15 17:59:02 [20456] [53] DEBUG: size: 1024 2014-07-15 17:59:02 [20456] [53] DEBUG: immutable: 0 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 69 64 3a 33 34 39 32 62 34 39 33 2d 32 66 38 61 id:3492b493-2f8a 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 2d 34 61 33 35 2d 38 37 64 39 2d 35 39 38 62 62 -4a35-87d9-598bb 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 39 65 63 33 33 32 65 20 73 75 62 3a 30 30 31 20 9ec332e sub:001 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 64 6c 76 72 64 3a 30 30 31 20 73 75 62 6d 69 74 dlvrd:001 submit 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 20 64 61 74 65 3a 31 34 30 37 31 35 31 37 34 32 date:1407151742 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 20 64 6f 6e 65 20 64 61 74 65 3a 31 34 30 37 31 done date:14071 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 35 31 37 35 39 20 73 74 61 74 3a 44 45 4c 49 56 51759 stat:DELIV 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 52 44 20 65 72 72 3a 30 30 30 20 74 65 78 74 3a RD err:000 text: 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 53 6d 73 20 64 65 6c 69 76 65 72 65 64 20 73 75 Sms delivered su 2014-07-15 17:59:02 [20456] [53] DEBUG: data: 63 63 65 73 cces 2014-07-15 17:59:02 [20456] [53] DEBUG: Octet string dump ends. ------- How could I fix this problem and maintain the user (the smsbox from opensmppbox) online? Thanks Jose Figueroa Geek friend and caffeine dealer josen.figue...@unixmexico.org
signature.asc
Description: Message signed with OpenPGP using GPGMail