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 = 0x8015
2014-07-15 17:57:19 [20434] [6] DEBUG: command_status: 0 = 0x
2014-07-15 17:57:19 [20434] [6] DEBUG: sequence_number: 7488 = 0x1d40
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 = 0x0015
2014-07-15 17:57:49 [20434] [6] DEBUG: command_status: 0 = 0x
2014-07-15 17:57:49 [20434] [6] DEBUG: sequence_number: 7489 = 0x1d41
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 = 0x8015
2014-07-15 17:57:50 [20434] [6] DEBUG: command_status: 0 = 0x
2014-07-15 17:57:50 [20434] [6] DEBUG: sequence_number: 7489 = 0x1d41
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 = 0x8009
2014-07-15 17:59:02 [20456] [54] DEBUG: command_status: 0 = 0x
2014-07-15 17:59:02 [20456] [54] DEBUG: sequence_number: 1 = 0x0001
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=XX, 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