I'm using Kannel 1.5 with the Huawei E220, everything is working fine, but after about 10 000 text messages sent and received (in about 24 hours) I get the message "Initialization of device fails" and the modem would need to be unplugged and plugged back in to work properly again. I am away from the server so this is great inconvenience for me. Here is the exact messages I get when this problem occurs
2015-06-29 21:27:49 [4461] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0 2015-06-29 21:27:49 [4461] [0] WARNING: DLR: using default 'internal' for storage type. 2015-06-29 21:27:49 [4461] [0] INFO: DLR using storage type: internal 2015-06-29 21:27:49 [4461] [0] DEBUG: Kannel bearerbox version `1.5.0'. Build `May 6 2015 11:48:13', compiler `4.9.2'. System Linux, release 3.16.0-4-amd64, version #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24), machine x86_64. Hostname optiplex-780-1.home, IP 127.0.1.1. Libxml version 2.9.1. Using native malloc. 2015-06-29 21:27:49 [4461] [0] INFO: SSL not supported, no SSL initialization done. 2015-06-29 21:27:49 [4461] [0] INFO: HTTP: Opening server at port 13000. 2015-06-29 21:27:49 [4461] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2015-06-29 21:27:49 [4461] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 4461. 2015-06-29 21:27:49 [4461] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2015-06-29 21:27:49 [4461] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2015-06-29 21:27:49 [4461] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 4461. 2015-06-29 21:27:49 [4461] [0] DEBUG: starting smsbox connection module 2015-06-29 21:27:49 [4461] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2015-06-29 21:27:49 [4461] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2015-06-29 21:27:49 [4461] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 4461. 2015-06-29 21:27:49 [4461] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2015-06-29 21:27:49 [4461] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 4461. 2015-06-29 21:27:49 [4461] [0] INFO: Set SMS resend frequency to 60 seconds. 2015-06-29 21:27:49 [4461] [0] INFO: SMS resend retry set to unlimited. 2015-06-29 21:27:49 [4461] [0] DEBUG: MO concatenated message handling enabled 2015-06-29 21:27:49 [4461] [0] INFO: DLR rerouting for smsc id <(null)> disabled. 2015-06-29 21:27:49 [4461] [0] INFO: AT2[/dev/ttyUSB1]: configuration shows modemtype <huawei> 2015-06-29 21:27:49 [4461] [0] DEBUG: AT2[/dev/ttyUSB1]: Reading modem definitions from <smskannel.conf> 2015-06-29 21:27:49 [4461] [0] DEBUG: AT2[/dev/ttyUSB1]: Found <1> modems in config 2015-06-29 21:27:49 [4461] [0] INFO: AT2[/dev/ttyUSB1]: read modem definition for <huawei e220> 2015-06-29 21:27:49 [4461] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2015-06-29 21:27:49 [4461] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 4461. 2015-06-29 21:27:49 [4461] [6] INFO: AT2[/dev/ttyUSB1]: opening device 2015-06-29 21:27:49 [4461] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2015-06-29 21:27:49 [4461] [0] INFO: ---------------------------------------- 2015-06-29 21:27:49 [4461] [0] INFO: Kannel bearerbox II version 1.5.0 starting 2015-06-29 21:27:49 [4461] [0] INFO: MAIN: Start-up done, entering mainloop 2015-06-29 21:27:49 [4461] [0] DEBUG: AT2[/dev/ttyUSB1]: start called 2015-06-29 21:27:49 [4461] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 4461. 2015-06-29 21:27:49 [4461] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 4461. 2015-06-29 21:27:49 [4461] [2] DEBUG: HTTP: Including port 13000, fd 6 for polling in server thread 2015-06-29 21:27:49 [4461] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened. Telnet mode = 0 2015-06-29 21:27:49 [4461] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened 2015-06-29 21:27:49 [4461] [6] INFO: AT2[/dev/ttyUSB1]: Logging in 2015-06-29 21:27:49 [4461] [6] INFO: AT2[/dev/ttyUSB1]: init device 2015-06-29 21:27:49 [4461] [6] INFO: AT2[/dev/ttyUSB1]: speed set to 19200 2015-06-29 21:27:49 [4461] [6] DEBUG: AT2[/dev/ttyUSB1]: --> ATZ^M 2015-06-29 21:27:55 [4461] [6] ERROR: AT2[/dev/ttyUSB1]: Wrong or no answer to ATZ, ignoring 2015-06-29 21:27:55 [4461] [6] ERROR: AT2[/dev/ttyUSB1]: Initialization of device failed. Attempt #0 on -1 max. 2015-06-29 21:27:55 [4461] [6] INFO: AT2[/dev/ttyUSB1]: Closing device 2015-06-29 21:27:55 [4461] [6] ERROR: AT2[/dev/ttyUSB1]: Couldn't connect (retrying in 10 seconds). ^C2015-06-29 21:27:59 [4461] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2015-06-29 21:27:59 [4461] [0] DEBUG: Shutting down Kannel... 2015-06-29 21:27:59 [4461] [0] DEBUG: shutting down smsc 2015-06-29 21:27:59 [4461] [0] DEBUG: AT2[/dev/ttyUSB1]: Shutting down SMSCConn, slow 2015-06-29 21:27:59 [4461] [0] DEBUG: shutting down udp 2015-06-29 21:27:59 [4461] [6] INFO: AT2[/dev/ttyUSB1]: opening device 2015-06-29 21:27:59 [4461] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened. Telnet mode = 0 2015-06-29 21:27:59 [4461] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened 2015-06-29 21:27:59 [4461] [6] INFO: AT2[/dev/ttyUSB1]: Logging in 2015-06-29 21:28:00 [4461] [6] INFO: AT2[/dev/ttyUSB1]: init device 2015-06-29 21:28:00 [4461] [6] INFO: AT2[/dev/ttyUSB1]: speed set to 19200 2015-06-29 21:28:00 [4461] [6] DEBUG: AT2[/dev/ttyUSB1]: --> ATZ^M ^C^C2015-06-29 21:28:04 [4461] [0] PANIC: Cannot die by its own will 2015-06-29 21:28:04 [4461] [0] PANIC: ./bearerbox(gw_panic+0x145) [0x477825] 2015-06-29 21:28:04 [4461] [0] PANIC: /lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0) [0x7feadae948d0] 2015-06-29 21:28:04 [4461] [0] PANIC: /lib/x86_64-linux-gnu/libpthread.so.0(pthread_cond_wait+0xbf) [0x7feadae9108f] 2015-06-29 21:28:04 [4461] [0] PANIC: ./bearerbox(gwlist_consume+0x57) [0x479ce7] 2015-06-29 21:28:04 [4461] [0] PANIC: ./bearerbox(main+0x8ec) [0x40c60c] 2015-06-29 21:28:04 [4461] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7feada796b45] 2015-06-29 21:28:04 [4461] [0] PANIC: ./bearerbox() [0x40cbe3] *Here is the relevant parts of my smskannel.conf* #-------------------------------------------- # MODEMS group = modems id = huawei name = "huawei e220" detect-string = "e220" init-string = "AT+CNMI=2,1,2,2,0"; #"AT+CNMI=1,2,0,1,0" #init-string = "AT+CMGD=4" speed = 115200 message-start = 0 #--------------------------------------------- # SMSC CONNECTIONS # # SMSC connections are created in bearerbox and they handle SMSC specific # protocol and message relying. You need these to actually receive and send # messages to handset, but can use GSM modems as virtual SMSCs group = smsc smsc = at modemtype = huawei device = /dev/ttyUSB1 speed = 19200 my-number = 14126560677 validityperiod = 167 sim-buffering=true I don't know if I have something configured incorrectly or this type of modem is not good for this much volume. Please advise as if there is anything I can do to fix the issue. If not please recommend a modem which would be stable.