Hi all, I installed the gateway version 1.2.1 on RedHat 9 and configured it to use the Nokia Card Phone 2.0. As I'm new to kannel, I wanna start with sending a sms via the web interface. However this doesn't work. I got a CMS ERROR: 50. The card phone manual states this as an "rp layer cause value from network". To be honest I don't know what this means. There are alreday some users on this mailing list with the same problem. Unfortunately, I couldn't take advantage of the comments being posted. Did anyone of you configure kannel with the nokia card phone and got it working? I tested the status of the modem itself with AT+CPAS and this appears to be in a ready state. As well, there seem to be no problems with kannel recognizing the card phone.
Any help is greatly appreciated. Thx in advance, Dominik Attached. kannel.log -> bearerbox log smsbox.log -> smsbox log smskannel.conf -> configuration with the standard modem definitions.
2003-08-17 17:19:34 [0] INFO: Added logfile `/tmp/kannel/kannel.log' with level `0'. 2003-08-17 17:19:34 [0] INFO: Started access logfile `/tmp/kannel/access.log'. 2003-08-17 17:19:34 [0] INFO: SSL not supported, no SSL initialization done. 2003-08-17 17:19:34 [0] DEBUG: HTTP: Opening server at port 32000. 2003-08-17 17:19:34 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2003-08-17 17:19:34 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2003-08-17 17:19:34 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2003-08-17 17:19:34 [0] DEBUG: starting smsbox connection module 2003-08-17 17:19:34 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run) 2003-08-17 17:19:34 [0] INFO: AT2[/dev/ttyS17]: configuration doesn't show modemtype. will autodetect 2003-08-17 17:19:34 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_device_thread) 2003-08-17 17:19:34 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_router) 2003-08-17 17:19:34 [0] INFO: ---------------------------------------- 2003-08-17 17:19:34 [0] INFO: Kannel bearerbox II version 1.2.1 starting 2003-08-17 17:19:34 [5] DEBUG: AT2[/dev/ttyS17]: detecting modem type 2003-08-17 17:19:34 [5] INFO: AT2[/dev/ttyS17]: opening device 2003-08-17 17:19:34 [6] DEBUG: sms_router: time to sleep 2003-08-17 17:19:34 [0] INFO: MAIN: Start-up done, entering mainloop 2003-08-17 17:19:34 [0] DEBUG: AT2[/dev/ttyS17]: start called 2003-08-17 17:19:34 [6] DEBUG: sms_router: list_len = 0 2003-08-17 17:19:34 [5] DEBUG: AT2[/dev/ttyS17]: device opened 2003-08-17 17:19:34 [5] INFO: AT2[/dev/ttyS17]: speed set to 115200 2003-08-17 17:19:34 [5] DEBUG: AT2[/dev/ttyS17]: --> ^M 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: --> AT^M 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: --> AT&F^M 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: --> ATE0^M 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- ATE0 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: --> ATI^M 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- Nokia Mobile Phones 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: found string <Nokia Mobile Phone>, using modem definition <Nokia Phone> 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CSMS=?^M 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- +CSMS: (0,1) 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:36 [5] INFO: AT2[/dev/ttyS17]: Phase 2+ is supported 2003-08-17 17:19:36 [5] INFO: AT2[/dev/ttyS17]: closing device 2003-08-17 17:19:36 [5] INFO: AT2[/dev/ttyS17]: opening device 2003-08-17 17:19:36 [5] DEBUG: AT2[/dev/ttyS17]: device opened 2003-08-17 17:19:37 [5] DEBUG: AT2[/dev/ttyS17]: device opened 2003-08-17 17:19:37 [5] INFO: AT2[/dev/ttyS17]: init device 2003-08-17 17:19:37 [5] INFO: AT2[/dev/ttyS17]: speed set to 115200 2003-08-17 17:19:37 [5] DEBUG: AT2[/dev/ttyS17]: --> AT^M 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: --> AT&F^M 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: --> ATE0^M 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: <-- ATE0 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+IFC=2,2^M 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CPIN?^M 2003-08-17 17:19:38 [5] DEBUG: AT2[/dev/ttyS17]: <-- +CPIN: READY 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CSCA="0876235541"^M 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CMGF=0^M 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CSMS=?^M 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- +CSMS: (0,1) 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:39 [5] INFO: AT2[/dev/ttyS17]: Phase 2+ is supported 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CSMS=1^M 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- +CSMS: 1,1,1 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CNMI=1,2,0,1,0^M 2003-08-17 17:19:39 [5] DEBUG: AT2[/dev/ttyS17]: <-- OK 2003-08-17 17:19:39 [5] INFO: AT2[/dev/ttyS17]: AT SMSC successfully opened. 2003-08-17 17:19:47 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function) 2003-08-17 17:19:47 [7] INFO: Client connected from <134.226.36.142> 2003-08-17 17:19:47 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender) 2003-08-17 17:24:35 [7] DEBUG: boxc_receiver: sms received 2003-08-17 17:24:37 [5] DEBUG: AT2[/dev/ttyS17]: TP-Validity-Period: 24.0 hours 2003-08-17 17:24:37 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CMGS=45^M 2003-08-17 17:24:37 [5] DEBUG: AT2[/dev/ttyS17]: <-- > 2003-08-17 17:24:37 [5] DEBUG: AT2[/dev/ttyS17]: send command status: 1 2003-08-17 17:24:37 [5] DEBUG: AT2[/dev/ttyS17]: --> 0011000C815383360472030000A723BC621B4ECF83E465383B0F32CBDF6DD0BC2CB7A7C765105CFEB6A7C965B90F 2003-08-17 17:24:37 [5] DEBUG: AT2[/dev/ttyS17]: --> ^Z 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: <-- > 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: <-- +CMS ERROR: 50 2003-08-17 17:24:40 [5] ERROR: AT2[/dev/ttyS17]: CMS ERROR: +CMS ERROR: 50 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: send command status: 1 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CMGS=45^M 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: <-- > 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: send command status: 1 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: --> 0011000C815383360472030000A723BC621B4ECF83E465383B0F32CBDF6DD0BC2CB7A7C765105CFEB6A7C965B90F 2003-08-17 17:24:40 [5] DEBUG: AT2[/dev/ttyS17]: --> ^Z 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: <-- > 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: <-- +CMS ERROR: 50 2003-08-17 17:24:46 [5] ERROR: AT2[/dev/ttyS17]: CMS ERROR: +CMS ERROR: 50 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: send command status: 1 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: --> AT+CMGS=45^M 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: <-- > 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: send command status: 1 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: --> 0011000C815383360472030000A723BC621B4ECF83E465383B0F32CBDF6DD0BC2CB7A7C765105CFEB6A7C965B90F 2003-08-17 17:24:46 [5] DEBUG: AT2[/dev/ttyS17]: --> ^Z 2003-08-17 17:24:52 [5] DEBUG: AT2[/dev/ttyS17]: <-- > 2003-08-17 17:24:52 [5] DEBUG: AT2[/dev/ttyS17]: <-- +CMS ERROR: 50 2003-08-17 17:24:52 [5] ERROR: AT2[/dev/ttyS17]: CMS ERROR: +CMS ERROR: 50 2003-08-17 17:24:52 [5] DEBUG: AT2[/dev/ttyS17]: send command status: 1
2003-08-17 17:19:47 [0] DEBUG: Kannel smsbox version 1.2.1 starting 2003-08-17 17:19:47 [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2003-08-17 17:19:47 [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2003-08-17 17:19:47 [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2003-08-17 17:19:47 [0] INFO: Connected to bearerbox at localhost port 32001. 2003-08-17 17:19:47 [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2003-08-17 17:24:35 [2] DEBUG: HTTP: Creating HTTPClient for `134.226.36.142'. 2003-08-17 17:24:35 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <134.226.36.142> 2003-08-17 17:24:35 [3] INFO: sendsms used by <kannel> 2003-08-17 17:24:35 [3] INFO: sendsms sender:<kannel:00353876235541> (134.226.36.142) to:< 353863402730> msg:<> 2003-08-17 17:24:35 [3] DEBUG: message length 35, sending 1 messages 2003-08-17 17:24:35 [3] DEBUG: Status: 202 Answer: <Sent.> 2003-08-17 17:24:35 [3] DEBUG: HTTP: Resetting HTTPClient for `134.226.36.142'. 2003-08-17 17:29:38 [1] DEBUG: HTTP: Destroying HTTPClient area 0x80a1d70. 2003-08-17 17:29:38 [1] DEBUG: HTTP: Destroying HTTPClient for `134.226.36.142'.
# # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop" # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to [EMAIL PROTECTED] # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # group = core admin-port = 32000 smsbox-port = 32001 admin-password = smsgateway #status-password = smsgateway #admin-deny-ip = "" #admin-allow-ip = "" log-file = "/tmp/kannel/kannel.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" http-proxy-host = proxy.host http-proxy-port = proxy.port http-proxy-exceptions = 127.0.0.1 unified-prefix = "+353,00353,0;+,00" access-log = "/tmp/kannel/access.log" #store-file = "kannel.store" #ssl-certkey-file = "mycertandprivkeyfile.pem" # SMSC CONNECTIONS # gsm modem configuration group = smsc smsc = at2 modemtype = auto device = /dev/ttyS17 speed = 115200 sms-center = number of the SIM card in the GSM modem pin = 0000 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 32013 global-sender = 32013 sendsms-chars = "0123456789 +-" log-file = "/tmp/kannel/smsbox/smsbox.log" log-level = 0 access-log = "/tmp/kannel/smsbox/access.log" # SEND-SMS USERS # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = sms user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" default-sender = number of the SIM card in the GSM modem max-messages = 1 concatenation = false # SERVICES group = sms-service keyword = nop text = "You asked nothing and I did it!" # there should be default always group = sms-service keyword = default text = "No service specified" # modem definitions # Modems configuration # # Example and default values # # group = modems # id = "my-id" # name = "my-name" # detect-string = "MODEM" # detect-string2 = "" [Default] # init-string = "AT+CNMI=1,2,0,0,0" [Default] # speed = 9600 [Default] # enable-hwhs = "AT+IFC=2,2" [Default] # need-sleep = false [Default] # no-pin = false [Default] # no-smsc = false [Default] # sendline-sleep = 100 [Default, miliseconds] # keepalive-cmd = "AT" [Default] # broken = false [Default] # message-storage = "SM" # enable-mms = false [Default] # If modemtype=auto, try everyone and defaults to this one group = modems id = generic name = "Generic Modem" group = modems id = wavecom name = Wavecom detect-string = "WAVECOM" group = modems id = premicell name = Premicell detect-string = "PREMICEL" no-pin = true no-smsc = true group = modems id = siemens_tc35 name = "Siemens TC35" detect-string = "SIEMENS" detect-string2 = "TC35" init-string = "AT+CNMI=1,2,0,0,1" speed = 19200 enable-hwhs = "AT\\Q3" need-sleep = true group = modems id = siemens_m20 name = "Siemens M20" detect-string = "SIEMENS" detect-string2 = "M20" speed = 19200 enable-hwhs = "AT\\Q3" keepalive-cmd = "AT+CBC;+CSQ" need-sleep = true group = modems id = nokiaphone name = "Nokia Phone" detect-string = "Nokia Mobile Phone" need-sleep = true keepalive-cmd = "AT+CBC;+CSQ" enable-mms = true group = modems id = falcom name = "Falcom" detect-string = "Falcom" no-smsc = true group = modems id = ericsson_r520m name = "Ericsson R520m" detect-string = "R520m" init-string = "AT+CNMI=3,2,0,0" group = modems id = ericsson_t68 name = "Ericsson T68" detect-string = "T68" init-string = "AT+CNMI=3,3" keepalive-cmd = "AT+CBC;+CSQ" broken = true group = modems id = alcatel name = "Alcatel" detect-string = "Alcatel" init-string = "AT+CNMI=3,2,0,0"
