This has happen to me too, it happened when editing the file in windows and translate it later to linux, be sure to use an editor that can save txt files in linux mode, I use Notepad++.
Regards. -----Original Message----- From: users [mailto:[email protected]] On Behalf Of Alvaro Cornejo Sent: Wednesday, December 04, 2013 8:19 AM To: Danesha Perera; users Subject: Re: Bearerbox start error Hi Always cc kannel list so you can get help from others and others benefit from discussions. There is something in your config file that kannel does not like. Maybe end of lines? try to use a different editor. Yes, field-url is a mysql group specific field; however kannel is considering it as part of sms-service group; that is why kannel is complaining about. What if you comment that line? Does the error "moves" to the next line? Also, what kannel version do you use? Maybe is a new field not supported in your kannel version (Check change log) 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, Dec 4, 2013 at 1:32 AM, Danesha Perera <[email protected]> wrote: > Hi, Alvaro, > > Thanks for the reply, Originally I have put blank lines between groups > but kannel gives the same error on first blank line it finds, when I > remove it next balnk line so on. So I removed all blank lines and now > it gives the error on last line which is not blank. > > 'field-url' is intended for mysql field mapping only (as per docs) > and I am not quite sure how it effects other parts of kannal.conf. Any > support on this is great as this is my first kannel implementation and > I am stuck here for days. > > > Thanks and best regards > > Danesha > > > > On Tuesday, December 3, 2013 8:16 PM, Alvaro Cornejo > <[email protected]> wrote: > 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 > >
