Hello. I have 2 smsboxes - one with smsbox-route set for the outgoing messages and another - without smsbox-id to avoid warning: smsbox_list empty! But even this configuration doesn't work. Works fine, but after one of reconnects i have routing failed debug message and all next messages are not sent. If I set one smsbox without routing it works the same way (fine before one of smsc reconnects). If I set one smsbox with routing it sends fine, but service doesn't work because warning: smsbox_list empty! Both should work fine, but they dont! I send http sms request through smsbox with routing.
Routing failed error is for outgoing messages (where route is set). http://3gin.ru:13000/status (I've restarted it and it works fine) It can work for several hours with 2-3 smsc reconnects fine and on some reconnect it stops and store size grows, but doesn't send messages. the status can be SMS: received 47 (0 queued), sent 49 (10 queued), store size 10 smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 57m 48s) smsbox:qwerty, IP 127.0.0.1 (0 queued), (on-line 0d 0h 57m 47s) MEGAFON SMPP:83.149.22.53:3333/3333:1110100:0 (online 3213s, rcvd 47, sent 49 Please, help to solve the problem. I've spent a week trying... group = core admin-port = 13000 admin-password = tyutyu log-file = "/var/log/kannel/bearerbox.log" #log-level = 1 access-log = "/var/log/kannel/access_kannel.log" store-file = "/var/log/kannel/store_sms" smsbox-port = 13001 dlr-storage = internal group = smsc smsc-id = MEGAFON smsc = smpp host = xxx port = 3333 receive-port = 3333 smsc-username = "xxx" smsc-password = "xxx" source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 1 dest-addr-npi = 1 system-type = 0 #VMA? throughput = 1000 reconnect-delay = 5 connection-timeout = 120 group = smsbox smsbox-id = qwerty bearerbox-host = localhost sendsms-port = 13003 global-sender = 000037 log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access_smsbox.log group = smsbox-route smsbox-id = qwerty shortcode = 000037 smsc-id = MEGAFON group = sendsms-user username = "user" password = "xxx" concatenation = true max-messages = 20 forced-smsc = MEGAFON #ENGINE group = sms-service keyword = default post-url = "http://xxxxxx/xxxx/index/tel/%p/time/%t/coding/%c" concatenation = true max-messages = 0 SECOND SMSBOX - THE SAME BUT group = smsbox bearerbox-host = localhost sendsms-port = 13004 global-sender = 000037 log-file = /var/log/kannel/smsbox1.log log-level = 0 access-log = /var/log/kannel/access_smsbox1.log without routing AFTER ONE OF SMSC RECONNECTS: 2011-03-02 16:22:29 [7749] [7] DEBUG: SMPP PDU 0x801c83ac0 dump: 2011-03-02 16:22:29 [7749] [7] DEBUG: type_name: deliver_sm 2011-03-02 16:22:29 [7749] [7] DEBUG: command_id: 5 = 0x00000005 2011-03-02 16:22:29 [7749] [7] DEBUG: command_status: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: sequence_number: 19837486 = 0x012eb22e 2011-03-02 16:22:29 [7749] [7] DEBUG: service_type: NULL 2011-03-02 16:22:29 [7749] [7] DEBUG: source_addr_ton: 1 = 0x00000001 2011-03-02 16:22:29 [7749] [7] DEBUG: source_addr_npi: 1 = 0x00000001 2011-03-02 16:22:29 [7749] [7] DEBUG: source_addr: "79278675566" 2011-03-02 16:22:29 [7749] [7] DEBUG: dest_addr_ton: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: dest_addr_npi: 1 = 0x00000001 2011-03-02 16:22:29 [7749] [7] DEBUG: destination_addr: "000037#5543363" 2011-03-02 16:22:29 [7749] [7] DEBUG: esm_class: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: protocol_id: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: priority_flag: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: schedule_delivery_time: NULL 2011-03-02 16:22:29 [7749] [7] DEBUG: validity_period: NULL 2011-03-02 16:22:29 [7749] [7] DEBUG: registered_delivery: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: replace_if_present_flag: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: data_coding: 8 = 0x00000008 2011-03-02 16:22:29 [7749] [7] DEBUG: sm_default_msg_id: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: sm_length: 32 = 0x00000020 2011-03-02 16:22:29 [7749] [7] DEBUG: short_message: 2011-03-02 16:22:29 [7749] [7] DEBUG: Octet string at 0x801d37820: 2011-03-02 16:22:29 [7749] [7] DEBUG: len: 32 2011-03-02 16:22:29 [7749] [7] DEBUG: size: 33 2011-03-02 16:22:29 [7749] [7] DEBUG: immutable: 0 2011-03-02 16:22:29 [7749] [7] DEBUG: data: 04 18 04 3d 04 42 04 35 04 40 04 3d 04 35 04 42 ...=.B.5.@.=.5.B 2011-03-02 16:22:29 [7749] [7] DEBUG: data: 00 20 04 34 04 38 04 41 04 3a 04 3e 04 3d 04 42 . .4.8.A.:.>.=.B 2011-03-02 16:22:29 [7749] [7] DEBUG: Octet string dump ends. 2011-03-02 16:22:29 [7749] [7] DEBUG: SMPP PDU dump ends. 2011-03-02 16:22:29 [7749] [7] DEBUG: SMPP[MEGAFON]: Sending PDU: 2011-03-02 16:22:29 [7749] [7] DEBUG: SMPP PDU 0x801c83900 dump: 2011-03-02 16:22:29 [7749] [7] DEBUG: type_name: deliver_sm_resp 2011-03-02 16:22:29 [7749] [13] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2011-03-02 16:22:29 [7749] [7] DEBUG: command_id: 2147483653 = 0x80000005 2011-03-02 16:22:29 [7749] [7] DEBUG: command_status: 0 = 0x00000000 2011-03-02 16:22:29 [7749] [7] DEBUG: sequence_number: 19837486 = 0x012eb22e 2011-03-02 16:22:29 [7749] [13] DEBUG: boxc_sender: sent message to <127.0.0.1> 2011-03-02 16:22:29 [7749] [7] DEBUG: message_id: NULL 2011-03-02 16:22:29 [7749] [7] DEBUG: SMPP PDU dump ends. 2011-03-02 16:22:29 [7749] [12] DEBUG: boxc_receiver: got ack 2011-03-02 16:22:30 [7749] [10] DEBUG: boxc_receiver: sms received 2011-03-02 16:22:30 [7749] [8] DEBUG: sms_router: handling message (0x8018e3380 vs 0x8018e3380) 2011-03-02 16:22:30 [7749] [10] DEBUG: send_msg: sending msg to boxc: <qwerty> 2011-03-02 16:22:30 [7749] [8] DEBUG: Routing failed, re-queued. 2011-03-02 16:22:30 [7749] [8] DEBUG: sms_router: handling message (0x8018e3380 vs 0x8018e3380) 2011-03-02 16:22:30 [7749] [8] DEBUG: Routing failed, re-queued. 2011-03-02 16:22:30 [7749] [8] DEBUG: sms_router: time to sleep 30.00 secs. 2011-03-02 16:22:30 [7749] [8] DEBUG: sms_router: gwlist_len = 1 2011-03-02 16:22:30 [7749] [8] DEBUG: sms_router: handling message (0x8018e3380 vs 0x8018e3380) 2011-03-02 16:22:30 [7749] [8] DEBUG: Routing failed, re-queued. 2011-03-02 16:22:30 [7749] [8] DEBUG: sms_router: handling message (0x8018e3380 vs 0x8018e3380) 2011-03-02 16:22:30 [7749] [8] DEBUG: Routing failed, re-queued. 2011-03-02 16:22:30 [7749] [8] DEBUG: sms_router: time to sleep 30.00 secs. 2011-03-02 16:22:45 [7749] [9] DEBUG: Dumping 1 messages to store 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP[MEGAFON]: Sending enquire link: 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU 0x801c77c80 dump: 2011-03-02 16:22:50 [7749] [6] DEBUG: type_name: enquire_link 2011-03-02 16:22:50 [7749] [6] DEBUG: command_id: 21 = 0x00000015 2011-03-02 16:22:50 [7749] [6] DEBUG: command_status: 0 = 0x00000000 2011-03-02 16:22:50 [7749] [6] DEBUG: sequence_number: 4833 = 0x000012e1 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU dump ends. 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP[MEGAFON]: Got PDU: 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU 0x801c77c80 dump: 2011-03-02 16:22:50 [7749] [6] DEBUG: type_name: enquire_link 2011-03-02 16:22:50 [7749] [6] DEBUG: command_id: 21 = 0x00000015 2011-03-02 16:22:50 [7749] [6] DEBUG: command_status: 0 = 0x00000000 2011-03-02 16:22:50 [7749] [6] DEBUG: sequence_number: 19838789 = 0x012eb745 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU dump ends. 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP[MEGAFON]: Sending PDU: 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU 0x80197e480 dump: 2011-03-02 16:22:50 [7749] [6] DEBUG: type_name: enquire_link_resp 2011-03-02 16:22:50 [7749] [6] DEBUG: command_id: 2147483669 = 0x80000015 2011-03-02 16:22:50 [7749] [6] DEBUG: command_status: 0 = 0x00000000 2011-03-02 16:22:50 [7749] [6] DEBUG: sequence_number: 19838789 = 0x012eb745 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU dump ends. 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP[MEGAFON]: Got PDU: 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU 0x801c77c80 dump: 2011-03-02 16:22:50 [7749] [6] DEBUG: type_name: enquire_link_resp 2011-03-02 16:22:50 [7749] [6] DEBUG: command_id: 2147483669 = 0x80000015 2011-03-02 16:22:50 [7749] [6] DEBUG: command_status: 0 = 0x00000000 2011-03-02 16:22:50 [7749] [6] DEBUG: sequence_number: 4833 = 0x000012e1 2011-03-02 16:22:50 [7749] [6] DEBUG: SMPP PDU dump ends. 2011-03-02 16:22:52 [7749] [12] DEBUG: boxc_receiver: heartbeat with load value 0 received SMSBOX LOG: 2011-03-02 16:19:20 [7751] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. 2011-03-02 16:22:30 [7751] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2011-03-02 16:22:30 [7751] [2] DEBUG: HTTP: Created HTTPClient area 0x801c9b2c0. 2011-03-02 16:22:30 [7751] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2011-03-02 16:22:30 [7751] [3] INFO: sendsms used by <user> 2011-03-02 16:22:30 [7751] [3] INFO: sendsms sender:<user:000037> (127.0.0.1) to:< 79278675566> msg:<B25B> 2011-03-02 16:22:30 [7751] [3] INFO: send-sms request smsc id ignored, as smsc id forced to MEGAFON 2011-03-02 16:22:30 [7751] [3] DEBUG: Stored UUID d741b87b-932e-4fae-a6a7-88bbccb7dc80 2011-03-02 16:22:30 [7751] [3] DEBUG: message length 28, sending 1 messages 2011-03-02 16:22:30 [7751] [3] DEBUG: Status: 202 Answer: <Sent.> 2011-03-02 16:22:30 [7751] [3] DEBUG: Delayed reply - wait for bearerbox 2011-03-02 16:22:30 [7751] [0] DEBUG: Got ACK (3) of d741b87b-932e-4fae-a6a7-88bbccb7dc80 2011-03-02 16:22:30 [7751] [0] DEBUG: HTTP: Destroying HTTPClient area 0x801c9b2c0. 2011-03-02 16:22:30 [7751] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. 2011-03-02 16:22:55 [7751] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.