Hello,
I have recently setup KANNEL 1.4.1. I have been trying to use phone-as-smsc feature of kannel connecting GSM phones Nokia N73 and Sony Ericcson w810i but no success so far. Nokia N73 could not even be opened. Sony Ericcson w810i was opened successfully and SMS was accepted by smsbox (even by bearer box also) but could not be sent. I connected phone to PC (using data cable supplied by the vendor) on USB port as usbserial. following are the modem settings used. ......... 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 = sonyericsson_p1i name = "Sony Ericsson P1i" detect-string = "Sony Ericsson P1i" init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" message-storage = "SM" reset-string = "ATZ" broken = true ......... In case of Nokia N73: device (/dev/ttyACM0) could not even be opened. following was the SMSC AT config done in smskannel.conf ......... include = "/root/gateway-1.4.3/doc/examples/modems.conf" group = smsc smsc = at modemtype = nokiaphone device = /dev/ttyACM0 speed = 9600 log-file = "/tmp/kannelmodem.log" log-level = 0 ......... The logs says: 2009-07-02 15:52:00 [3910] [6] INFO: AT2[/dev/ttyACM0]: opening device 2009-07-02 15:52:00 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: device opened. Telnet mode = 0 2009-07-02 15:52:01 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-02 15:52:01 [3910] [6] INFO: AT2[/dev/ttyACM0]: Logging in 2009-07-02 15:52:02 [3910] [6] INFO: AT2[/dev/ttyACM0]: init device 2009-07-02 15:52:02 [3910] [6] INFO: AT2[/dev/ttyACM0]: speed set to 9600 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATZ^M 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+IFC=2,2^M 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPIN?^M 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPIN: READY 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:02 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CMGF=0^M 2009-07-02 15:52:03 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:03 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M 2009-07-02 15:52:03 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0) 2009-07-02 15:52:03 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 15:52:03 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CNMI=1,2,0,1,0^M 2009-07-02 15:52:03 [3910] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ERROR 2009-07-02 15:52:03 [3910] [6] ERROR: AT2[/dev/ttyACM0]: Generic error: ERROR 2009-07-02 15:52:03 [3910] [6] ERROR: AT2[/dev/ttyACM0]: Initialization of device failed. 2009-07-02 15:52:03 [3910] [6] INFO: AT2[/dev/ttyACM0]: Closing device 2009-07-02 15:52:03 [3910] [6] INFO: AT2[/dev/ttyACM0]: Closing device In case of Sony Ericcson w810i : device (/dev/ttyACM0) was successfully opened. Bearerbox and Smsbox was successfully started. but sms could not be sent using http url. Following was the SMSC AT config done in smskannel.conf ......... include = "/root/gateway-1.4.3/doc/examples/modems.conf" group = smsc smsc = at modemtype = sonyericsson_p1i device = /dev/ttyACM0 speed = 9600 log-file = "/tmp/kannelmodem.log" log-level = 0 ......... BEARERBOX log says: 2009-07-02 16:15:21 [3222] [6] INFO: AT2[/dev/ttyACM0]: opening device 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: device opened. Telnet mode = 0 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2009-07-02 16:15:21 [3222] [6] INFO: AT2[/dev/ttyACM0]: Logging in 2009-07-02 16:15:21 [3222] [6] INFO: AT2[/dev/ttyACM0]: init device 2009-07-02 16:15:21 [3222] [6] INFO: AT2[/dev/ttyACM0]: speed set to 9600 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATZ^M 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:21 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+IFC=2,2^M 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPIN?^M 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPIN: READY 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CMGF=0^M 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0) 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0^M 2009-07-02 16:15:22 [3222] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2009-07-02 16:15:22 [3222] [6] INFO: AT2[/dev/ttyACM0]: AT SMSC successfully opened. ....... 2009-07-02 16:23:37 [3222] [8] DEBUG: boxc_receiver: sms received 2009-07-02 16:23:37 [3222] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2009-07-02 16:23:38 [3222] [7] DEBUG: sms_router: handling message (0x142810e0 vs 0x142810e0) 2009-07-02 16:23:38 [3222] [7] DEBUG: re-queing SMS not-yet-to-be resent 2009-07-02 16:23:38 [3222] [7] DEBUG: sms_router: handling message (0x142810e0 vs 0x142810e0) 2009-07-02 16:23:38 [3222] [7] DEBUG: re-queing SMS not-yet-to-be resent 2009-07-02 16:23:38 [3222] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2009-07-02 16:23:38 [3222] [7] DEBUG: sms_router: gwlist_len = 1 2009-07-02 16:26:12 [3222] [7] DEBUG: sms_router: handling message (0x14280a00 vs 0x14280a00) 2009-07-02 16:26:12 [3222] [7] DEBUG: re-queing SMS not-yet-to-be resent 2009-07-02 16:26:12 [3222] [7] DEBUG: sms_router: handling message (0x14280a00 vs 0x14280a00) 2009-07-02 16:26:12 [3222] [7] DEBUG: re-queing SMS not-yet-to-be resent 2009-07-02 16:26:12 [3222] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2009-07-02 16:26:42 [3222] [7] DEBUG: sms_router: gwlist_len = 1 ....... SMSBOX log says: 2009-07-02 16:16:05 [3234] [0] INFO: Connected to bearerbox at 127.0.0.1 port 13001. .............. 2009-07-02 16:23:37 [3234] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2009-07-02 16:23:37 [3234] [2] DEBUG: HTTP: Created HTTPClient area 0x170929f0. 2009-07-02 16:23:37 [3234] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2009-07-02 16:23:37 [3234] [3] INFO: sendsms used by <tester> 2009-07-02 16:23:37 [3234] [3] INFO: sendsms sender:<tester:13013> (127.0.0.1) to:<9987702344> msg:<Hello SMS> 2009-07-02 16:23:37 [3234] [3] DEBUG: Stored UUID 4aa08500-6970-439e-9812-8299b23e0b13 2009-07-02 16:23:37 [3234] [3] DEBUG: message length 9, sending 1 messages 2009-07-02 16:23:37 [3234] [3] DEBUG: Status: 202 Answer: <Sent.> 2009-07-02 16:23:37 [3234] [3] DEBUG: Delayed reply - wait for bearerbox 2009-07-02 16:23:37 [3234] [0] DEBUG: Got ACK (0) of 4aa08500-6970-439e-9812-8299b23e0b13 2009-07-02 16:23:37 [3234] [0] DEBUG: HTTP: Destroying HTTPClient area 0x170929f0. 2009-07-02 16:23:37 [3234] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. With Regds, NAGESH ANCHAN Zenmedia Solutions Pvt. Ltd, Reliance Corporate Park Tel : 022- 29776662 / Cel : 9967067471 "Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s). are confidential. and may be privileged. If you are not the intended recipient. you are hereby notified that any review. re-transmission. conversion to hard copy. copying. circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient. please notify the sender immediately by return email. and delete this message and any attachments from your system. Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."
