Hi error is self explained:
Group 'sms-service' may not contain field 'field-url'.
I think it might be because there is no spaces between groups. You
should leave an empty line between groups.
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 Tue, Dec 3, 2013 at 8:29 AM, Danesha Perera <[email protected]> wrote:
> I am connecting to a VPS with CentOS and I have build kannel from source
> with mysql support. When I try to start kannel in terminal below error is
> displayed. The line number 63 is the end of kannel.conf. Can someone point
> me in the right direction please.
>
> root@dee [/usr/local/kannel/sbin]# ./bearerbox kannel.conf
> 2013-12-03 07:24:36 [9170] [0] INFO: Debug_lvl = -1, log_file = <none>,
> log_lvl = 0
> 2013-12-03 07:24:36 [9170] [0] ERROR: Group 'sms-service' may not contain
> field 'field-url'.
> 2013-12-03 07:24:36 [9170] [0] ERROR: Error found on line 63 of file
> `kannel.conf'.
> 2013-12-03 07:24:36 [9170] [0] PANIC: Couldn't read configuration from
> `kannel.conf'.
> 2013-12-03 07:24:36 [9170] [0] PANIC: ./bearerbox(gw_panic+0x147) [0x486057]
> 2013-12-03 07:24:36 [9170] [0] PANIC: ./bearerbox(main+0xd4c) [0x40f29c]
> 2013-12-03 07:24:36 [9170] [0] PANIC:
> /lib64/libc.so.6(__libc_start_main+0xfd) [0x7fcdc717ed1d]
> 2013-12-03 07:24:36 [9170] [0] PANIC: ./bearerbox() [0x40d679]
>
> kennal.conf is as below
>
> # CORE
> group = core
> adminport = 13000
> smsboxport = 13001
> adminpassword = hostin
> logfile = /tmp/kannel.log
> loglevel = 0
> boxdenyip = "*.*.*.*"
> boxallowip = "127.0.0.1"
> dlrstorage = mysql
> # SMSBOX SETUP
> group = smsbox
> bearerboxhost = 127.0.0.1
> sendsmsport = 13013
> globalsender = 13013
> logfile = /tmp/smsbox.log
> loglevel = 0
> # This is a fake smsc connection, _only_ used to test the system and
> services.
> # It really cannot relay messages to actual handsets!
> group = smsc
> smsc = fake
> smsc-id = FAKE
> port = 10000
> connect-allow-ip = 127.0.0.1
> # SENDSMS USERS
> group = sendsmsuser
> username = test
> password = hostin
> # SERVICES
> group = smsservice
> # keyword = nop
> keywordregex = .*
> catchall = yes
> maxmessages = 0
> geturl =
> http://192.168.11.119/websms/inc/dlr.php?user=test&passwd=hostin&to=%p&message=%a
> # mysql connection
> group = mysqlconnection
> id = mydlr
> host = 127.0.0.1
> username = deesofts_deesms
> password = v.[P@2u7E&#w
> database = deesofts_deesms
> maxconnections = 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
> logfile = /tmp/smsbox.log
> loglevel = 0
> # SMS SERVICE Default
> # there should be default always
> group = sms-service
> keyword = default
> text = "No service specified. "
>
> Thanks and best regards
> Danesha