Hi John
Error explains by itself:
Group 'core' may not contain field 'boxallowip'.
"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 <[email protected]> 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 'boxallowip'.
> 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
> adminport = 13000
> smsboxport = 13001
> adminpassword = hostin
> logfile = “/tmp/kannel.log”
> loglevel = 0
> boxdenyip = “*.*.*.*”
> boxallowip = “10.1.202.41”
> dlrstorage = mysql
>
> # SMSC CONNECTIONS
> group = smsc
> smsc = smpp
> smscid = SMPP
> interfaceversion = 34
> host = 8.6.95.145
> port = 2345
> receiveport = 2345
> smscusername = democnag2
> smscpassword = dmag2
> systemtype = VMA
> addressrange = ” ”
> sourceaddrton = 0
> sourceaddrnpi = 0
> destaddrton = 1
> destaddrnpi = 1
> msgidtype = 0x00
> transceivermode = true
> sourceaddrautodetect = no
>
> # SMSBOX SETUP
> group = smsbox
> bearerboxhost = 10.1.202.41
> sendsmsport = 13013
> globalsender = 13013
> logfile = “/tmp/smsbox.log”
> loglevel = 0
>
> # SENDSMS USERS
> group = sendsmsuser
> username = test
> password = hostin
>
> # SERVICES
> group = smsservice
> # keyword = nop
> keywordregex = .*
> catchall = yes
> maxmessages = 0
> geturl =
> 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)
> #geturl = “http://192.168.1.254/sms?phone=%p&text=%a”
>
> # mysql connection
> group = mysqlconnection
> id = mydlr
> host = 127.0.0.1
> username = root
> password = hostin
> database = dlr
> maxconnections = 1
>
> # DLR table structure
> group = dlrdb
> id = mydlr
> table = dlr
> fieldsmsc = smsc
> fieldtimestamp = ts
> fielddestination = destination
> fieldsource = source
> fieldservice = service
> fieldurl = url
> fieldmask = mask
> fieldstatus = status
> fieldboxcid = boxc
>
>