Hi, >2009/7/6 Nikos Balkanas <[email protected]> > Pleese do not send me personal mail. Address the list. > > Try also setting: > > message-storage > > to "SM" or "EM" in your modems configuration. > > BR, > Nikos > > Last time i just hit reply and sent the email, it was mistakenly addressed towards you.Sorry for the inconvenience.
I tried both "SM" and "ME" in message-storage as you suggested, But got Generic error in both cases, -bash-3.2# bearerbox -v 0 /etc/kannel.conf 2009-07-06 19:41:58 [6009] [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl = 0 2009-07-06 19:41:58 [6009] [0] WARNING: DLR: using default 'internal' for storage type. 2009-07-06 19:41:58 [6009] [0] INFO: DLR using storage type: internal 2009-07-06 19:41:58 [6009] [0] DEBUG: Kannel bearerbox version `1.4.1'. Build `Feb 21 2008 11:10:28', compiler `4.3.0 20080218 (Red Hat 4.3.0-0.10)'. System Linux, release 2.6.27.25-170.2.72.fc10.i686, version #1 SMP Sun Jun 21 19:03:24 EDT 2009, machine i686. Hostname localhost, IP 127.0.0.1. Libxml version 2.6.31. Using OpenSSL 0.9.8g 19 Oct 2007. Using native malloc. 2009-07-06 19:41:58 [6009] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `1'. 2009-07-06 19:41:58 [6009] [0] INFO: HTTP: Opening server at port 13000. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2009-07-06 19:41:58 [6009] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 6009. 2009-07-06 19:41:58 [6009] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 6009. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2009-07-06 19:41:58 [6009] [0] DEBUG: starting smsbox connection module 2009-07-06 19:41:58 [6009] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 6009. 2009-07-06 19:41:58 [6009] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2009-07-06 19:41:58 [6009] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 6009. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2009-07-06 19:41:58 [6009] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 6009. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2009-07-06 19:41:58 [6009] [0] INFO: Set SMS resend frequency to 60 seconds. 2009-07-06 19:41:58 [6009] [0] INFO: SMS resend retry set to unlimited. 2009-07-06 19:41:58 [6009] [0] INFO: DLR rerouting for smsc id <(null)> disabled. 2009-07-06 19:41:58 [6009] [0] INFO: AT2[/dev/ttyACM0]: configuration doesn't show modemtype. will autodetect 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2009-07-06 19:41:58 [6009] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 6009. 2009-07-06 19:41:58 [6009] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2009-07-06 19:41:58 [6009] [0] DEBUG: starting UDP sender/receiver module 2009-07-06 19:41:58 [6009] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 6009. 2009-07-06 19:41:58 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem speed. 2009-07-06 19:41:58 [6009] [6] INFO: AT2[/dev/ttyACM0]: opening device 2009-07-06 19:41:58 [6009] [0] INFO: Adding interface * 2009-07-06 19:41:58 [6009] [0] DEBUG: udpc_create: Bound to UDP < 0.0.0.0:9200> 2009-07-06 19:41:58 [6009] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) maps to pid 6009. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 8 (gw/bb_udp.c:udp_receiver) 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 9 (gw/bb_udp.c:udp_sender) 2009-07-06 19:41:58 [6009] [0] DEBUG: udpc_create: Bound to UDP < 0.0.0.0:9201> 2009-07-06 19:41:58 [6009] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) maps to pid 6009. 2009-07-06 19:41:58 [6009] [10] DEBUG: Thread 10 (gw/bb_udp.c:udp_receiver) maps to pid 6009. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 10 (gw/bb_udp.c:udp_receiver) 2009-07-06 19:41:58 [6009] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender) maps to pid 6009. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 11 (gw/bb_udp.c:udp_sender) 2009-07-06 19:41:58 [6009] [0] DEBUG: starting wapbox connection module 2009-07-06 19:41:58 [6009] [0] ERROR: Missing wapbox-port variable, cannot start WAP 2009-07-06 19:41:58 [6009] [0] DEBUG: starting WDP router 2009-07-06 19:41:58 [6009] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) maps to pid 6009. 2009-07-06 19:41:58 [6009] [12] DEBUG: udp_die: removing producers from udp-lists 2009-07-06 19:41:58 [6009] [12] DEBUG: Thread 12 (gw/bearerbox.c:wdp_router) terminates. 2009-07-06 19:41:58 [6009] [0] DEBUG: Started thread 12 (gw/bearerbox.c:wdp_router) 2009-07-06 19:41:58 [6009] [0] INFO: ---------------------------------------- 2009-07-06 19:41:58 [6009] [0] INFO: Kannel bearerbox II version 1.4.1 starting 2009-07-06 19:41:58 [6009] [0] INFO: MAIN: Start-up done, entering mainloop 2009-07-06 19:41:58 [6009] [0] DEBUG: AT2[/dev/ttyACM0]: start called 2009-07-06 19:41:58 [6009] [7] DEBUG: sms_router: gwlist_len = 0 2009-07-06 19:41:58 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-06 19:41:59 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-06 19:41:59 [6009] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200 2009-07-06 19:41:59 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M 2009-07-06 19:42:01 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M 2009-07-06 19:42:01 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT 2009-07-06 19:42:01 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:01 [6009] [6] INFO: AT2[/dev/ttyACM0]: closing device 2009-07-06 19:42:01 [6009] [6] INFO: AT2[/dev/ttyACM0]: detect speed is 115200 2009-07-06 19:42:01 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem type 2009-07-06 19:42:01 [6009] [6] INFO: AT2[/dev/ttyACM0]: opening device 2009-07-06 19:42:01 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-06 19:42:02 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-06 19:42:02 [6009] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200 2009-07-06 19:42:02 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATI^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- Nokia 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: found string <Nokia>, using modem definition <Nokia 3110c> 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0) 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] INFO: AT2[/dev/ttyACM0]: closing device 2009-07-06 19:42:04 [6009] [6] INFO: AT2[/dev/ttyACM0]: opening device 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-06 19:42:04 [6009] [6] INFO: AT2[/dev/ttyACM0]: init device 2009-07-06 19:42:04 [6009] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATZ^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:04 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+IFC=2,2^M 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPIN?^M 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPIN: READY 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CMGF=0^M 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0) 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK *2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPMS="SM"^M 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT+CPMS="SM" 2009-07-06 19:42:05 [6009] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ERROR 2009-07-06 19:42:05 [6009] [6] ERROR: AT2[/dev/ttyACM0]: Generic error: ERROR* 2009-07-06 19:42:05 [6009] [6] ERROR: AT2[/dev/ttyACM0]: Opening failed. Terminating 2009-07-06 19:42:05 [6009] [6] INFO: AT2[/dev/ttyACM0]: closing device Modified: kannel.conf # Default kannel configuration file #core group 'mandatory' group = core #port for http administration admin-port = 13000 admin-password = hard2guess #status-password = hard2guess admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" #For SMS gateway smsbox-port = 13001 #wapbox-port = 13002 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" log-level = 1 #Access log #access-log = "/var/log/kannel/access.log" group = smsc smsc = at modemtype = auto device = /dev/ttyACM0 my-number = "+919994989890" #speed = 460800 #pin = 1234 sim-buffering = true log-level = 0 # MODEM DEFINITIONS group = modems id = nokia name = "Nokia 3110c" detect-string = "Nokia" init-string = "ATZ" init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" message-storage = "SM" group = smsbox bearerbox-host = 127.0.0.1 #we use sendsms-port for sending sms (http) sendsms-port = 13013 global-sender = "+919994989890" log-file = /var/log/kannel/smsbox.log log-level = 0 group = sendsms-user username = kannel password = hard2guess concatenation = true max-messages = 10 #group = smsservice #keyword = nop #catchall = yes #text = "NOP performed" group = sms-service keyword = keyword-regex = .* catch-all = true text = "Hello world!" #get-url = "http://localhost/sms/index.php?phone=%p&text=%a" #group = sms-service #keyword = default #text = "No action specified" Regards Arun SAG -- A computer is like air conditioning: it becomes useless when you open windows. <-Fighting 4 Freedom->
