Hi John

Error explains by itself:

Group 'core' may not contain field 'box­allow­ip'.

"boxallowip" is not a field/parameter for the "core" group.

Looks you have messed up the file and removed all dashes "-"

boxallowip should be box-allow-ip
loglevel should be log-level
...
etc.

Check manual and change accordingly on all and each fields/parameters.

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

On Wed, May 11, 2016 at 6:03 AM, John Mwale <mwale.j...@gmail.com> wrote:

> i am getting error on line 39 now
>
> [root@sms1 kannel]# ./bearerbox
> bash: ./bearerbox: No such file or directory
> [root@sms1 kannel]# sbin/bearerbox
> 2016-05-11 12:48:33 [3738] [0] INFO: Debug_lvl = -1, log_file =
> <none>, log_lvl = 0
> 2016-05-11 12:48:33 [3738] [0] ERROR: Group 'core' may not contain
> field 'box­allow­ip'.
> 2016-05-11 12:48:33 [3738] [0] ERROR: Error found on line 39 of file
> `kannel.conf'.
> 2016-05-11 12:48:33 [3738] [0] PANIC: Couldn't read configuration from
> `kannel.conf'.
> 2016-05-11 12:48:33 [3738] [0] PANIC: sbin/bearerbox(gw_panic+0x147)
> [0x479e07]
> 2016-05-11 12:48:33 [3738] [0] PANIC: sbin/bearerbox(main+0xb80) [0x40d9a0]
> 2016-05-11 12:48:33 [3738] [0] PANIC:
> /lib64/libc.so.6(__libc_start_main+0xfd) [0x344e81ed5d]
> 2016-05-11 12:48:33 [3738] [0] PANIC: sbin/bearerbox() [0x40c109]
>
>
>
> here is the kannael.conf file
>
> #
> # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
> #
> # This basic version is used for system testing. It expects 'fakesmsc' to
> # send messages which are replied with simple fixed text message.
> # It is run like this:
> #
> #  1% gw/bearerbox gw/smskannel.conf
> #  2% gw/smsbox gw/smskannel.conf
> #  3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
> #
> # ..all 3 commands in separate shells (or screen sessions)
> # Note that you can run them in different machines but have to
> # add certain command line argument and configuration variables then
> #
> #
> # For any modifications to this file, see Kannel User Guide
> # If that does not help, see Kannel web page (http://www.kannel.org) and
> # various online help and mailing list archives
> #
> # Notes on those who base their configuration on this:
> #  1) check security issues! (allowed IPs, passwords and ports)
> #  2) groups cannot have empty rows inside them!
> #  3) read the user guide
> #
> # Kalle Marjola for Kannel project 2001, 2004
>
> #---------------------------------------------
> # CORE
> group = core
> admin­port = 13000
> smsbox­port = 13001
> admin­password = hostin
> log­file = “/tmp/kannel.log”
> log­level = 0
> box­deny­ip = “*.*.*.*”
> box­allow­ip = “10.1.202.41”
> dlr­storage = mysql
>
> # SMSC CONNECTIONS
> group = smsc
> smsc = smpp
> smsc­id = SMPP
> interface­version = 34
> host = 8.6.95.145
> port = 2345
> receive­port = 2345
> smsc­username = democnag2
> smsc­password = dmag2
> system­type = VMA
> address­range = ” ”
> source­addr­ton = 0
> source­addr­npi = 0
> dest­addr­ton = 1
> dest­addr­npi = 1
> msg­id­type = 0x00
> transceiver­mode = true
> source­addr­autodetect = no
>
> # SMSBOX SETUP
> group = smsbox
> bearerbox­host = 10.1.202.41
> sendsms­port = 13013
> global­sender = 13013
> log­file = “/tmp/smsbox.log”
> log­level = 0
>
> # SEND­SMS USERS
> group = sendsms­user
> username = test
> password = hostin
>
> # SERVICES
> group = sms­service
> # keyword = nop
> keyword­regex = .*
> catch­all = yes
> max­messages = 0
> get­url =
> http://10.1.202.41/websms/inc/dlr.php?user=test&passwd=hostin&to=%p&message=%a
> ( Note­> Do not use ” ” unless u will get error)
> #get­url = “http://192.168.1.254/sms?phone=%p&text=%a”
>
> #­­­ mysql connection
> group = mysql­connection
> id = mydlr
> host = 127.0.0.1
> username = root
> password = hostin
> database = dlr
> max­connections = 1
>
> #­­­­ DLR table structure
> group = dlr­db
> id = mydlr
> table = dlr
> field­smsc = smsc
> field­timestamp = ts
> field­destination = destination
> field­source = source
> field­service = service
> field­url = url
> field­mask = mask
> field­status = status
> field­boxc­id = boxc
>
>

Reply via email to