could not receive the sms..

2013-06-03 Thread Sagar Deshpande
Whenever message is received to my mobile i.e Nokia 5233 it is not showing in 
Log and also it is not calling get-url but i can send sms from the same device. 
When i set sim-buffering = true bearerbox is not at all connecting to device, 
if i set it false then the log is

2013-06-04 11:06:22 [4560] [10] DEBUG: boxc_receiver: got boxc_id  
from <127.0.0.1>
2013-06-04 11:06:32 [4560] [10] DEBUG: boxc_receiver: sms received
2013-06-04 11:06:32 [4560] [10] DEBUG: send_msg: sending msg to boxc: 
2013-06-04 11:06:33 [4560] [6] DEBUG: AT2[Nokia]: TP-Validity-Period: 24.0 hours
2013-06-04 11:06:33 [4560] [6] DEBUG: AT2[Nokia]: --> AT+CMGS=27^M
2013-06-04 11:06:33 [4560] [6] DEBUG: AT2[Nokia]: <-- AT+CMGS=27>
2013-06-04 11:06:33 [4560] [6] DEBUG: AT2[Nokia]: send command status: 1
2013-06-04 11:06:33 [4560] [6] DEBUG: AT2[Nokia]: --> 
0011000A817983610146A70FCBB0DB5D6683A8E5391DD49C9F01
2013-06-04 11:06:33 [4560] [6] DEBUG: AT2[Nokia]: --> ^Z
2013-06-04 11:06:35 [4560] [6] DEBUG: AT2[Nokia]: <-- > 
0011000A817983610146A70FCBB0DB5D6683A8E5391DD49C9F01
2013-06-04 11:06:35 [4560] [6] DEBUG: AT2[Nokia]: <-- +CMGS: 253
2013-06-04 11:06:35 [4560] [6] DEBUG: AT2[Nokia]: <-- OK
2013-06-04 11:06:35 [4560] [6] DEBUG: AT2[Nokia]: send command status: 0

If you find it could you please reply me as soon as possible. My configuration 
file is as below.

group = core
 admin-port = 13003
 admin-password =
 admin-allow-ip = "127.0.0.1"
 dlr-storage = mysql
 smsbox-port = 13016
 log-file = "/var/log/kannel/bearerbox.log"
 access-log = "/var/log/kannel/access.log"
 box-allow-ip = "127.0.0.1"
 log-level = 0

group = smsc
 smsc-id = Nokia
 smsc = at
 modemtype = USB Modem
 device= /dev/ttyACM0
 my-number = xx
 connect-allow-ip = 127.0.0.1
 sim-buffering = false
 log-level = 0

group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = 
 database = kannel

group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc

group = modems
 id = Nokia
 name = Nokia
 detect-string = "Nokia"
 init-string = "ATZ"
 init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
 message-storage = SM

group = smsbox
 smsbox-id = mysmsbox
 bearerbox-host = localhost
 bearerbox-port = 13020
 sendsms-port = 13013
 global-sender = x
 access-log = "/var/log/kannel/smsbox-access.log"
 log-file = "/var/log/kannel/smsbox.log"
 log-level = 0
 mo-recode = true

group = smsbox-route
 smsbox-id = mysmsbox
 smsc-id = Nokia

group = sendsms-user
 username = kannel
 password = kannelPass
 concatenation= true
 max-messages = 1

group = sms-service
 keyword = default
 catch-all = yes
 max-messages = 10
 get-url = 
"http://localhost/sms.php?phone=%p&text=%a"

Thank you in advance.



Re: could not receive the sms..

2013-06-04 Thread Sagar Deshpande
Could not receive the sms with configuration:

group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = hello
 log-file = "/var/log/kannel/bearerbox.log"
 access-log = "/var/log/kannel/access.log"
 box-allow-ip = "127.0.0.1"
 box-deny-ip = "*.*.*.*"
 #log-level = 0

group = smsc
 smsc = at
 modemtype = auto
 device= /dev/ttyACM0
 my-number = 
 connect-allow-ip = 127.0.0.1
 log-level = 0
sim-buffering = true

group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 
 log-level = 0

group = sendsms-user
 username = username
 password = password
 concatenation= true
 max-messages = 10

group = modems
 id = Nokia
 name = Nokia
 detect-string = "Nokia"
 init-string = "AT+CSMS=?"
 message-storage = EM


group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel

group = sms-service
 keyword-regex = .*
 catch-all = yes
 max-messages = 0
 get-url = "http://localhost/sms.php?phone=%p&text=%a";

And i am getting an error in bearerbox log like:

2013-06-04 12:58:12 [8238] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2013-06-04 12:58:12 [8238] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps 
to pid 8238.
2013-06-04 12:58:12 [8238] [0] INFO: MAIN: Start-up done, entering mainloop
2013-06-04 12:58:12 [8238] [0] DEBUG: AT2[/dev/ttyACM0]: start called
2013-06-04 12:58:12 [8238] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 
maps to pid 8238.
2013-06-04 12:58:12 [8238] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) 
maps to pid 8238.
2013-06-04 12:58:12 [8238] [6] DEBUG: Thread 6 
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 8238.
2013-06-04 12:58:12 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem speed. 
2013-06-04 12:58:12 [8238] [6] INFO: AT2[/dev/ttyACM0]: opening device
2013-06-04 12:58:12 [8238] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) 
maps to pid 8238.
2013-06-04 12:58:12 [8238] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 8238.
2013-06-04 12:58:12 [8238] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to 
pid 8238.
2013-06-04 12:58:12 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened. Telnet 
mode = 0
2013-06-04 12:58:13 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2013-06-04 12:58:13 [8238] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
2013-06-04 12:58:13 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M
2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2013-06-04 12:58:15 [8238] [6] INFO: AT2[/dev/ttyACM0]: Closing device
2013-06-04 12:58:15 [8238] [6] INFO: AT2[/dev/ttyACM0]: detect speed is 115200
2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem type
2013-06-04 12:58:15 [8238] [6] INFO: AT2[/dev/ttyACM0]: opening device
2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened. Telnet 
mode = 0
2013-06-04 12:58:16 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2013-06-04 12:58:16 [8238] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
2013-06-04 12:58:16 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATI^M
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- Nokia
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: found string , 
using modem definition 
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0)
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2013-06-04 12:58:18 [8238] [6] INFO: AT2[/dev/ttyACM0]: Closing device
2013-06-04 12:58:18 [8238] [6] INFO: AT2[/dev/ttyACM0]: opening device
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened. Telnet 
mode = 0
2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2013-06-04 12:58:18 [8238] [6] INFO: AT2[/dev/ttyACM0]: Logging in
2013-06-04 12:58:19 [8238] [6] INFO: AT2[/dev/ttyACM0]: init device
2013-06-04 12:58:19 [8238] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATZ^M
2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT
2013

Re: could not receive the sms..

2013-06-04 Thread Alvaro Cornejo
Hi

Some nokia phones does not support CNMI command nor EM message
storage. You should use SM.

For this app, better use a non Nokia phone.

Regards

Alvaro

On 6/4/13, Sagar Deshpande  wrote:
> Could not receive the sms with configuration:
>
> group = core
>  admin-port = 13000
>  smsbox-port = 13001
>  admin-password = hello
>  log-file = "/var/log/kannel/bearerbox.log"
>  access-log = "/var/log/kannel/access.log"
>  box-allow-ip = "127.0.0.1"
>  box-deny-ip = "*.*.*.*"
>  #log-level = 0
>
> group = smsc
>  smsc = at
>  modemtype = auto
>  device= /dev/ttyACM0
>  my-number = 
>  connect-allow-ip = 127.0.0.1
>  log-level = 0
> sim-buffering = true
>
> group = smsbox
>  bearerbox-host = 127.0.0.1
>  sendsms-port = 13013
>  global-sender = 
>  log-level = 0
>
> group = sendsms-user
>  username = username
>  password = password
>  concatenation= true
>  max-messages = 10
>
> group = modems
>  id = Nokia
>  name = Nokia
>  detect-string = "Nokia"
>  init-string = "AT+CSMS=?"
>  message-storage = EM
>
>
> group = mysql-connection
>  id = mydlr
>  host = localhost
>  username = root
>  password = root
>  database = kannel
>
> group = sms-service
>  keyword-regex = .*
>  catch-all = yes
>  max-messages = 0
>  get-url = "http://localhost/sms.php?phone=%p&text=%a";
>
> And i am getting an error in bearerbox log like:
>
> 2013-06-04 12:58:12 [8238] [0] INFO: Kannel bearerbox II version 1.4.3
> starting
> 2013-06-04 12:58:12 [8238] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
> maps to pid 8238.
> 2013-06-04 12:58:12 [8238] [0] INFO: MAIN: Start-up done, entering mainloop
> 2013-06-04 12:58:12 [8238] [0] DEBUG: AT2[/dev/ttyACM0]: start called
> 2013-06-04 12:58:12 [8238] [4] DEBUG: Thread 4
> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 8238.
> 2013-06-04 12:58:12 [8238] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router)
> maps to pid 8238.
> 2013-06-04 12:58:12 [8238] [6] DEBUG: Thread 6
> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 8238.
> 2013-06-04 12:58:12 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem
> speed.
> 2013-06-04 12:58:12 [8238] [6] INFO: AT2[/dev/ttyACM0]: opening device
> 2013-06-04 12:58:12 [8238] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
> maps to pid 8238.
> 2013-06-04 12:58:12 [8238] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
> maps to pid 8238.
> 2013-06-04 12:58:12 [8238] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 8238.
> 2013-06-04 12:58:12 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened.
> Telnet mode = 0
> 2013-06-04 12:58:13 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
> 2013-06-04 12:58:13 [8238] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
> 2013-06-04 12:58:13 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M
> 2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
> 2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
> 2013-06-04 12:58:15 [8238] [6] INFO: AT2[/dev/ttyACM0]: Closing device
> 2013-06-04 12:58:15 [8238] [6] INFO: AT2[/dev/ttyACM0]: detect speed is
> 115200
> 2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: detecting modem
> type
> 2013-06-04 12:58:15 [8238] [6] INFO: AT2[/dev/ttyACM0]: opening device
> 2013-06-04 12:58:15 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened.
> Telnet mode = 0
> 2013-06-04 12:58:16 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
> 2013-06-04 12:58:16 [8238] [6] INFO: AT2[/dev/ttyACM0]: speed set to 115200
> 2013-06-04 12:58:16 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATI^M
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- Nokia
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: found string
> , using modem definition 
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0)
> 2013-06-04 12:58:18 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
> 2013-06-04 12:58:18 [8238] [6] INFO: AT2[/dev/ttyACM0]: Closing