Re: Bearerbox couldn't be start ??

2011-07-02 Thread Alvaro Cornejo
Hi

Always cc the userlist this way you can have more help.

set log level to debug (0) to get more detailed info.

error says can't open logfile not the modem. Check that logfile path
exist and have write access to kannel user.

check init string of your modem. Seems there is a command not
recognised. Debugin info should give you more detail on which command
failed. Note that some nokia phones does not support CNMI command;
thus you will not be able to receive sms with it but only send.

Regards

Alvaro


|-|
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



On Sat, Jul 2, 2011 at 1:29 AM, Amrit Pal Pathak
amritpalpath...@gmail.com wrote:


 On Fri, Jul 1, 2011 at 3:12 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 The error shown  says it Group 'modems' may not contain field
 'message-start'.

 remove/comment that line from your modem config.

     Oh yes.You was right .Thank you.
     Now bearerbox is running but in between it is showing the message
    Initialization of device failed.
    could not connect
                                                            But in
 kannel.confi file address of the device is right that is /dev/ttyACM0.I have
 found it using command dmesg.
 See the full error message below please.
  2011-07-02 02:28:13 [2293] [0] INFO: Debug_lvl = 1, log_file = none,
 log_lvl = 0
 2011-07-02 02:28:13 [2293] [0] INFO: DLR using storage type: internal
 2011-07-02 02:28:13 [2293] [0] ERROR: Couldn't open logfile
 `/var/log/kannel/bearerbox.log'.
 2011-07-02 02:28:13 [2293] [0] ERROR: System error 2: No such file or
 directory
 2011-07-02 02:28:13 [2293] [0] ERROR: Couldn't open logfile
 `/var/log/kannel/access.log'.
 2011-07-02 02:28:13 [2293] [0] ERROR: System error 2: No such file or
 directory
 2011-07-02 02:28:13 [2293] [0] INFO: SSL not supported, no SSL
 initialization done.
 2011-07-02 02:28:13 [2293] [0] INFO: HTTP: Opening server at port 13015.
 2011-07-02 02:28:13 [2293] [0] INFO: BOXC: 'smsbox-max-pending' not set,
 using default (100).
 2011-07-02 02:28:13 [2293] [0] INFO: Set SMS resend frequency to 60 seconds.
 2011-07-02 02:28:13 [2293] [0] INFO: SMS resend retry set to unlimited.
 2011-07-02 02:28:13 [2293] [0] INFO: DLR rerouting for smsc id Nokia 3110c
 disabled.
 2011-07-02 02:28:13 [2293] [0] INFO: AT2[Nokia 3110c]: configuration shows
 modemtype Nokia 3110c
 2011-07-02 02:28:13 [2293] [0] INFO: AT2[Nokia 3110c]: modemtype not found,
 revert to autodetect
 2011-07-02 02:28:13 [2293] [6] INFO: AT2[Nokia 3110c]: opening device
 2011-07-02 02:28:13 [2293] [0] INFO:
 
 2011-07-02 02:28:13 [2293] [0] INFO: Kannel bearerbox II version 1.4.3
 starting
 2011-07-02 02:28:13 [2293] [0] INFO: MAIN: Start-up done, entering mainloop
 ^C2011-07-02 02:28:13 [2293] [0] WARNING: Killing signal or HTTP admin
 command received, shutting down...
 2011-07-02 02:28:14 [2293] [6] INFO: AT2[Nokia 3110c]: speed set to 115200
 2011-07-02 02:28:16 [2293] [6] INFO: AT2[Nokia 3110c]: Closing device
 2011-07-02 02:28:16 [2293] [6] INFO: AT2[Nokia 3110c]: detect speed is
 115200
 2011-07-02 02:28:16 [2293] [6] INFO: AT2[Nokia 3110c]: opening device
 2011-07-02 02:28:17 [2293] [6] INFO: AT2[Nokia 3110c]: speed set to 115200
 ^C
 2011-07-02 02:28:19 [2293] [6] INFO: AT2[Nokia 3110c]: Closing device
 2011-07-02 02:28:19 [2293] [6] INFO: AT2[Nokia 3110c]: opening device
 2011-07-02 02:28:19 [2293] [6] INFO: AT2[Nokia 3110c]: Logging in
 2011-07-02 02:28:20 [2293] [6] INFO: AT2[Nokia 3110c]: init device
 2011-07-02 02:28:20 [2293] [6] INFO: AT2[Nokia 3110c]: speed set to 115200
 2011-07-02 02:28:21 [2293] [6] ERROR: AT2[Nokia 3110c]: Generic error: ERROR
 2011-07-02 02:28:21 [2293] [6] ERROR: AT2[Nokia 3110c]: Initialization of
 device failed.
 2011-07-02 02:28:21 [2293] [6] INFO: AT2[Nokia 3110c]: Closing device
 2011-07-02 02:28:21 [2293] [6] INFO: AT2[Nokia 3110c]: Closing device
 2011-07-02 02:28:21 [2293] [0] INFO: All flow threads have died, killing
 core
 2011-07-02 02:28:21 [2293] [0] INFO: Total WDP messages: received 0, sent 0
 2011-07-02 02:28:21 [2293] [0] INFO: Total SMS messages: received 0, sent 0


 Thanks again.
 amritpalpathakgne.wordpress.com



Re: Bearerbox couldn't be start ??

2011-07-02 Thread Amrit Pal Pathak
On Sat, Jul 2, 2011 at 12:13 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi

 Always cc the userlist this way you can have more help.

 set log level to debug (0) to get more detailed info.

 error says can't open logfile not the modem. Check that logfile path
 exist and have write access to kannel user.

I made a /var/log directory now this error is solved.


 check init string of your modem.

  Its like that:

group = modems
id = nokia
name = Nokia
detect-string = Nokia
init-string = ATZ
#init-string = AT+CMEE=1
init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0
init-string = AT+CNMI=0,1
#message-storage = SM
#message-start = 0
#speed = 460800
#message-start = 0

  Still same error exist.

 Thanks

amritpalpathakgne.wordpress.com





Re: Bearerbox couldn't be start ??

2011-07-02 Thread Alvaro Cornejo
again: set log level to debug. and post new logs.

Check CNMI command it usually needs 2 parameters. you are feeding only
2. Check phone UG to see if it supports CNMI. or try connecting
directly to the modem and issue AT+CNMI=? and AT+CNMI

Post results



|-|
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



On Sat, Jul 2, 2011 at 12:08 PM, Amrit Pal Pathak
amritpalpath...@gmail.com wrote:


 On Sat, Jul 2, 2011 at 12:13 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 Always cc the userlist this way you can have more help.

 set log level to debug (0) to get more detailed info.

 error says can't open logfile not the modem. Check that logfile path
 exist and have write access to kannel user.

     I made a /var/log directory now this error is solved.

 check init string of your modem.

       Its like that:
     group = modems
 id = nokia
 name = Nokia
 detect-string = Nokia
 init-string = ATZ
 #init-string = AT+CMEE=1
 init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0
 init-string = AT+CNMI=0,1
 #message-storage = SM
 #message-start = 0
 #speed = 460800
 #message-start = 0
   Still same error exist.
  Thanks
 amritpalpathakgne.wordpress.com





Bearerbox couldn't be start ??

2011-07-01 Thread Amrit Pal Pathak
Bearbox starting couldn't be.its gives.

2011-07-01 15:02:05 [18638] [0] INFO: Debug_lvl = 1, log_file = none,
log_lvl = 0
2011-07-01 15:02:05 [18638] [0] ERROR: Group 'modems' may not contain field
'message-start'.
2011-07-01 15:02:05 [18638] [0] ERROR: Error found on line 68 of file
`ppp/kannel.conf'.
2011-07-01 15:02:05 [18638] [0] PANIC: Couldn't read configuration from
`ppp/kannel.conf'.
2011-07-01 15:02:05 [18638] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80cdb5d]
2011-07-01 15:02:05 [18638] [0] PANIC: bearerbox(main+0xcf8) [0x8054698]
2011-07-01 15:02:05 [18638] [0] PANIC:
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xdf4bd6]
2011-07-01 15:02:05 [18638] [0] PANIC: bearerbox() [0x8052c61]


kannel.conf file has:


#Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13015
admin-password = abc
#admin-deny-ip = *.*.*.*
admin-allow-ip = 127.0.0.1
dlr-storage = internal
smsbox-port = 13016
#wdp-interface-name = *
log-file = /var/log/kannel/bearerbox.log
access-log = /var/log/kannel/access.log
#box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
log-level = 0

#group = wapbox
#bearerbox-host = localhost
#log-file = /var/log/kannel/wapbox.log
group = smsc
smsc-id = Nokia 3110c
smsc = at
modemtype = Nokia 3110c
device= /dev/ttyACM0
my-number = +917589124248
connect-allow-ip = 127.0.0.1
#sim-buffering = true
log-level = 0

# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = root
password = 12345
database = kan

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 = AT+CMEE=1
init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0
init-string = AT+CNMI=0,1
#message-storage = SM
message-start = 0
#speed = 460800
#message-start = 0

group = smsbox
smsbox-id = mysmsc
bearerbox-host = localhost
#bearerbox-port = 13018
#18 port is for sms-servicce that is to start the smsbox
sendsms-port = 13018
global-sender = +917589124248
access-log = /var/log/kannel/smsbox-access.log
log-file = /var/log/kannel/smsbox.log
log-level = 0
mo-recode = true

group = sendsms-user
username = gndec
password = abc
concatenation= true
max-messages = 1

group = sms-service
keyword-regex = .*
text = Thanks for sending SMS
catch-all = yes
accepted-smsc = Nokia 3110c
max-messages = 3
#get-url = http://localhost/sms.php?phone=%ptext=%a;


Please somebody help

Thanks in advacne

amritpalpathakgne.wordpress.com


Re: Bearerbox couldn't be start ??

2011-07-01 Thread Alvaro Cornejo
The error shown  says it Group 'modems' may not contain field 'message-start'.

remove/comment that line from your modem config.

regards

Alvaro

|-|
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



On Fri, Jul 1, 2011 at 2:04 PM, Amrit Pal Pathak
amritpalpath...@gmail.com wrote:
 Bearbox starting couldn't be.its gives.
 2011-07-01 15:02:05 [18638] [0] INFO: Debug_lvl = 1, log_file = none,
 log_lvl = 0
 2011-07-01 15:02:05 [18638] [0] ERROR: Group 'modems' may not contain field
 'message-start'.
 2011-07-01 15:02:05 [18638] [0] ERROR: Error found on line 68 of file
 `ppp/kannel.conf'.
 2011-07-01 15:02:05 [18638] [0] PANIC: Couldn't read configuration from
 `ppp/kannel.conf'.
 2011-07-01 15:02:05 [18638] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80cdb5d]
 2011-07-01 15:02:05 [18638] [0] PANIC: bearerbox(main+0xcf8) [0x8054698]
 2011-07-01 15:02:05 [18638] [0] PANIC:
 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xdf4bd6]
 2011-07-01 15:02:05 [18638] [0] PANIC: bearerbox() [0x8052c61]

 kannel.conf file has:

 #Sample configuration file for Kannel bearerbox on Debian.
 # See the documentation for explanations of fields.
 #
 # HTTP administration is disabled by default. Make sure you set the
 # password if you enable it.
 group = core
 admin-port = 13015
 admin-password = abc
 #admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1
 dlr-storage = internal
 smsbox-port = 13016
 #wdp-interface-name = *
 log-file = /var/log/kannel/bearerbox.log
 access-log = /var/log/kannel/access.log
 #box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 log-level = 0
 #group = wapbox
 #bearerbox-host = localhost
 #log-file = /var/log/kannel/wapbox.log
 group = smsc
 smsc-id = Nokia 3110c
 smsc = at
 modemtype = Nokia 3110c
 device= /dev/ttyACM0
 my-number = +917589124248
 connect-allow-ip = 127.0.0.1
 #sim-buffering = true
 log-level = 0
 # DLR with MySQL support configuration
 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = 12345
 database = kan
 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 = AT+CMEE=1
 init-string = AT Q0 V1 E1 S0=0 C1 D2 +FCLASS=0
 init-string = AT+CNMI=0,1
 #message-storage = SM
 message-start = 0
 #speed = 460800
 #message-start = 0
 group = smsbox
 smsbox-id = mysmsc
 bearerbox-host = localhost
 #bearerbox-port = 13018
 #18 port is for sms-servicce that is to start the smsbox
 sendsms-port = 13018
 global-sender = +917589124248
 access-log = /var/log/kannel/smsbox-access.log
 log-file = /var/log/kannel/smsbox.log
 log-level = 0
 mo-recode = true
 group = sendsms-user
 username = gndec
 password = abc
 concatenation= true
 max-messages = 1
 group = sms-service
 keyword-regex = .*
 text = Thanks for sending SMS
 catch-all = yes
 accepted-smsc = Nokia 3110c
 max-messages = 3
 #get-url = http://localhost/sms.php?phone=%ptext=%a;

 Please somebody help
 Thanks in advacne
 amritpalpathakgne.wordpress.com