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 <[email protected]> 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 = <my_no>
>  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 = <my_no>
>  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
> <Nokia>, using modem definition <Nokia>
> 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-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&F^M
> 2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F
> 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]: --> ATE0^M
> 2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0
> 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+IFC=2,2^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+CPIN?^M
> 2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPIN: READY
> 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+CMGF=0^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+CSMS=?^M
> 2013-06-04 12:58:19 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0)
> 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+CSMS=?^M
> 2013-06-04 12:58:20 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0)
> 2013-06-04 12:58:20 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
> 2013-06-04 12:58:20 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPMS="EM"^M
> 2013-06-04 12:58:20 [8238] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ERROR
> 2013-06-04 12:58:20 [8238] [6] ERROR: AT2[/dev/ttyACM0]: Generic error:
> ERROR
> 2013-06-04 12:58:20 [8238] [6] ERROR: AT2[/dev/ttyACM0]: Initialization of
> device failed.
> 2013-06-04 12:58:20 [8238] [6] INFO: AT2[/dev/ttyACM0]: Closing device
> 2013-06-04 12:58:20 [8238] [6] ERROR: AT2[/dev/ttyACM0]: Couldn't connect
> (retrying in 10 seconds).
> Thank You.
>


-- 
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
              Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com

Reply via email to