I setup 2 smsboxes connected to the 1 bearerbox on Centos 5. I have no problem send out messages throught both smsbox but the sms-service does not response whenever I send a 'test' message. Why did I have the wrong config?
The configuration files k1.conf ------- # # CORE # group = core admin-port = 13000 smsbox-port = 13001 admin-password = admin status-password = pass box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" store-location = /tmp/kannel.store log-file = /tmp/kannel.log log-level = 4 # # SMSC CONNECTIONS # group = smsc smsc = at smsc-id = itegno modemtype = itegno device = /dev/ttyUSB0 speed = 115200 my-number = "+615" # # MODEMS # group = modems id = itegno name = itegno init-string = "AT+CNMI=2,2,0,1,0;+CMEE=1" # # SMSBOX SETUP # group = smsbox bearerbox-host = localhost smsbox-id = mysmsbox1 sendsms-port = 13010 global-sender = "+615" log-file = /tmp/smsbox1.log log-level = 4 access-log = /tmp/access1.log mo-recode = 1 # # SEND-SMS USERS # group = sendsms-user username = user password = pass max-messages = 3 concatenation = true # # SERVICES # # Test group = sms-service keyword = test text = "Thanks - this is reply to test message" max-messages = 1 # URL group = sms-service keyword = default post-url = "http://localhost/store.php?msisdn=%p&msg=%a accept-x-kannel-headers = true send-sender = true max-messages = 0 group = smsbox-route smsbox-id = mysmsbox1;mysmsbox2 smsc-id = itegno k2.conf ------- # # CORE # group = core admin-port = 13000 smsbox-port = 13001 admin-password = admin status-password = pass box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" store-location = /tmp/kannel.store log-file = /tmp/kannel.log log-level = 4 # # SMSC CONNECTIONS # group = smsc smsc = at smsc-id = itegno modemtype = itegno device = /dev/ttyUSB0 speed = 115200 my-number = "+615" # # MODEMS # group = modems id = itegno name = itegno init-string = "AT+CNMI=2,2,0,1,0;+CMEE=1" # # SMSBOX SETUP # group = smsbox bearerbox-host = localhost smsbox-id = mysmsbox1 sendsms-port = 13011 global-sender = "+615" log-file = /tmp/smsbox2.log log-level = 4 access-log = /tmp/access2.log mo-recode = 1 # # SEND-SMS USERS # group = sendsms-user username = user password = pass max-messages = 3 concatenation = true # # SERVICES # # Test group = sms-service keyword = test text = "Thanks - this is reply to test message" max-messages = 1 # URL group = sms-service keyword = default post-url = "http://localhost/store.php?msisdn=%p&msg=%a accept-x-kannel-headers = true send-sender = true max-messages = 0 group = smsbox-route smsbox-id = mysmsbox1;mysmsbox2 smsc-id = itegno bearerbox log ------------- 2010-10-14 11:36:44 [24538] [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl = 0 2010-10-14 11:36:44 [24538] [0] WARNING: DLR: using default 'internal' for storage type. 2010-10-14 11:36:44 [24538] [0] INFO: DLR using storage type: internal 2010-10-14 11:36:44 [24538] [0] DEBUG: Kannel bearerbox version `1.4.3'. Build `Aug 27 2010 16:29:52', compiler `4.1.2 20080704 (Red Hat 4.1.2-48)'. System Linux, release 2.6.18-194.11.3.el5, version #1 SMP Mon Aug 30 16:19:16 EDT 2010, machine x86_64. Hostname karma, IP 127.0.0.1. Libxml version 2.6.26. Using native malloc. 2010-10-14 11:36:44 [24538] [0] INFO: Added logfile `/tmp/kannel-itegno.log' with level `4'. 2010-10-14 11:36:44 [24538] [0] INFO: SSL not supported, no SSL initialization done. 2010-10-14 11:36:44 [24538] [0] INFO: HTTP: Opening server at port 13000. 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2010-10-14 11:36:44 [24538] [0] DEBUG: starting smsbox connection module 2010-10-14 11:36:44 [24538] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-10-14 11:36:44 [24538] [0] DEBUG: Adding smsbox routing to id <mysmsbox1;mysmsbox2> for smsc id <itegno> 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2010-10-14 11:36:44 [24538] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-10-14 11:36:44 [24538] [0] INFO: SMS resend retry set to unlimited. 2010-10-14 11:36:44 [24538] [0] DEBUG: smsbox MO concatenated message handling enabled 2010-10-14 11:36:44 [24538] [0] INFO: DLR rerouting for smsc id <itegno> disabled. 2010-10-14 11:36:44 [24538] [0] INFO: AT2[itegno]: configuration shows modemtype <itegno> 2010-10-14 11:36:44 [24538] [0] DEBUG: AT2[itegno]: Reading modem definitions from </usr/local/kannel/sbin/k1.conf> 2010-10-14 11:36:44 [24538] [0] DEBUG: AT2[itegno]: Found <1> modems in config 2010-10-14 11:36:44 [24538] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 24538. 2010-10-14 11:36:44 [24538] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 24538. 2010-10-14 11:36:44 [24538] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 24538. 2010-10-14 11:36:44 [24538] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 24538. 2010-10-14 11:36:44 [24538] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 24538. 2010-10-14 11:36:44 [24538] [0] INFO: AT2[itegno]: read modem definition for <itegno> 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2010-10-14 11:36:44 [24538] [0] INFO: ---------------------------------------- 2010-10-14 11:36:44 [24538] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2010-10-14 11:36:44 [24538] [0] INFO: Loading store file `/tmp/kannel-itegno.store' 2010-10-14 11:36:44 [24538] [0] INFO: Store-file size 1196, starting to unpack 2010-10-14 11:36:44 [24538] [0] INFO: Retrieved 5 messages, non-acknowledged messages: 5 2010-10-14 11:36:44 [24538] [0] DEBUG: Started thread 8 (gw/bb_store_file.c:store_dumper) 2010-10-14 11:36:44 [24538] [0] INFO: MAIN: Start-up done, entering mainloop 2010-10-14 11:36:44 [24538] [0] DEBUG: AT2[itegno]: start called 2010-10-14 11:36:44 [24538] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 24538. 2010-10-14 11:36:44 [24538] [6] INFO: AT2[itegno]: opening device 2010-10-14 11:36:44 [24538] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 24538. 2010-10-14 11:36:44 [24538] [8] DEBUG: Thread 8 (gw/bb_store_file.c:store_dumper) maps to pid 24538. 2010-10-14 11:36:44 [24538] [6] DEBUG: AT2[itegno]: device opened. Telnet mode = 0 2010-10-14 11:36:44 [24538] [6] DEBUG: AT2[itegno]: device opened 2010-10-14 11:36:44 [24538] [6] INFO: AT2[itegno]: Logging in 2010-10-14 11:36:44 [24538] [6] INFO: AT2[itegno]: init device 2010-10-14 11:36:44 [24538] [6] INFO: AT2[itegno]: speed set to 115200 2010-10-14 11:36:44 [24538] [6] DEBUG: AT2[itegno]: --> ATZ^M 2010-10-14 11:36:44 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:44 [24538] [6] DEBUG: AT2[itegno]: --> AT^M 2010-10-14 11:36:44 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:44 [24538] [6] DEBUG: AT2[itegno]: --> AT&F^M 2010-10-14 11:36:45 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:45 [24538] [6] DEBUG: AT2[itegno]: --> ATE0^M 2010-10-14 11:36:45 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:45 [24538] [6] DEBUG: AT2[itegno]: --> AT+IFC=2,2^M 2010-10-14 11:36:45 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:45 [24538] [6] DEBUG: AT2[itegno]: --> AT+CPIN?^M 2010-10-14 11:36:45 [24538] [6] DEBUG: AT2[itegno]: <-- +CPIN: READY 2010-10-14 11:36:47 [24538] [5] INFO: Client connected from <127.0.0.1> 2010-10-14 11:36:47 [24538] [5] DEBUG: Started thread 9 (gw/bb_boxc.c:function) 2010-10-14 11:36:47 [24538] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps to pid 24538. 2010-10-14 11:36:47 [24538] [9] DEBUG: Started thread 10 (gw/bb_boxc.c:boxc_sender) 2010-10-14 11:36:47 [24538] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender) maps to pid 24538. 2010-10-14 11:36:47 [24538] [9] DEBUG: boxc_receiver: got boxc_id <mysmsbox1> from <127.0.0.1> 2010-10-14 11:36:50 [24538] [5] INFO: Client connected from <127.0.0.1> 2010-10-14 11:36:50 [24538] [5] DEBUG: Started thread 11 (gw/bb_boxc.c:function) 2010-10-14 11:36:50 [24538] [11] DEBUG: Thread 11 (gw/bb_boxc.c:function) maps to pid 24538. 2010-10-14 11:36:50 [24538] [11] DEBUG: Started thread 12 (gw/bb_boxc.c:boxc_sender) 2010-10-14 11:36:50 [24538] [12] DEBUG: Thread 12 (gw/bb_boxc.c:boxc_sender) maps to pid 24538. 2010-10-14 11:36:50 [24538] [11] DEBUG: boxc_receiver: got boxc_id <mysmsbox1> from <127.0.0.1> 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: --> AT+CMGF=0^M 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: --> AT+CSMS=?^M 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: <-- +CSMS: (0,1) 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:56 [24538] [6] INFO: AT2[itegno]: Phase 2+ is supported 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: --> AT+CSMS=1^M 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: <-- +CSMS: 1,1,1 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: --> AT+CNMI=2,2,0,1,0;+CMEE=1^M 2010-10-14 11:36:56 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:36:56 [24538] [6] INFO: AT2[itegno]: AT SMSC successfully opened. 2010-10-14 11:37:04 [24538] [8] DEBUG: Dumping 5 messages to store 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: <-- +CMT: ,23 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: <-- 07910621000010F5240B910621582810F400000101411103722304D4F29C0E 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: received message from SMSC: +615 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: Numeric sender (international) <+614> 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: User data length read as (4) 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: Udh decoding done len=4 udhi=0 udhlen=0 udh='' 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: --> AT+CNMA^M 2010-10-14 11:37:11 [24538] [6] DEBUG: AT2[itegno]: <-- OK 2010-10-14 11:37:24 [24538] [8] DEBUG: Dumping 6 messages to store -- View this message in context: http://old.nabble.com/Problem-with-multiple-smsbox-tp29958927p29958927.html Sent from the Kannel - User mailing list archive at Nabble.com.
