Alex Kinch wrote:
I'm sure this was answered recently, however..

sqlbox-standalone config values shouldn't be in the main kannel.conf file. Move that section into it's own file (eg sqlbox.conf), make sure sqlbox is reading the right config file and bearerbox should be fine.

hth,
Alex

On 7 Jun 2008, at 12:27, James Mutuku wrote:

Hi,
I compiled kannel stable release(version 1.4.1) and sqlbox-standalone. When I start bearerbox, I get the error below. what could be the problem?

---------------------------------------------error-------------------------------------------- 2008-06-05 16:48:07 [8141] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0 2008-06-05 16:48:07 [8141] [0] ERROR: Group 'sqlbox' may not contain field 'log-level'. 2008-06-05 16:48:07 [8141] [0] ERROR: Error found on line 60 of file `/etc/kannel.conf'. 2008-06-05 16:48:07 [8141] [0] PANIC: Couldn't read configuration from `/etc/kannel.conf'. 2008-06-05 16:48:07 [8141] [0] PANIC: /usr/local/kannel/sbin/bearerbox(gw_panic+0xe6) [0x80c4276] 2008-06-05 16:48:07 [8141] [0] PANIC: /usr/local/kannel/sbin/bearerbox(main+0xc2d) [0x805346d] 2008-06-05 16:48:07 [8141] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x46d08dec] 2008-06-05 16:48:07 [8141] [0] PANIC: /usr/local/kannel/sbin/bearerbox [0x8051b11] ---------------------------------------------end error-------------------------------------------- ---------------------------------------------kannel.conf--------------------------------------------
# Default kannel configuration file
group = core
admin-port = 13000
admin-password = root
status-password = root
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1, 10.2.2.13"
smsbox-port = 13001
#wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
store-file = "/var/log/kannel/kannel.store"
log-level = 0
dlr-storage=mysql

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
global-sender = 12345
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
#access-log = "access.log"
#white-list =
#black-list =
#reply-couldnotfetch =
#reply-couldnotrepresent =
#reply-requestfailed =
#reply-emptymessage =

# SENDSMS USERS SETUP
group = sendsms-user
username = root
password = root

# SQLBOX SETUP
group = sqlbox
id = sqlbox-db
smsbox-id = smsbox
#global-sender = ""
bearerbox-host = localhost
bearerbox-port = 13001
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = "/var/log/kannel/kannel-sqlbox.log"
log-level = 0
#white-list = ""
#black-list = ""
#white-list-regex = ""
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""

group = mysql-connection
id = sqlbox-db
host = localhost
username = root
password = ""
database = delivery
max-connections = 10

# DLR SETUP
#mysql connection
group = mysql-connection
id = mydlr
host = localhost
username = root
password = ""
database = dlr
max-connections = 10

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

# SMSC Fake
group = smsc
smsc = fake
port = 10000
connect-allow-ip = 127.0.0.1

# A do-nothing service.
group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# SMS SERVICE black-list
group = sms-service
keyword = black
text = "You are not allowed to use this service, Go away!"

# SMSC SMPP
group = smsc
smsc = smpp
host = 10.2.2.13
port = 2775
#receive-port = 2776
smsc-username = smppclient
smsc-password = password
system-type = ""
address-range = ""

# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
text = "No service specified. "

---------------------------------------------end kannel.conf--------------------------------------------
<jmutuku.vcf>


Thanks
begin:vcard
fn:James Mutuku
n:Mutuku;James
org:Agile Systems Limited;Technical Department
adr:;;P.O Box 55686-00200;Nairobi;Kenya;00200;Kenya
email;internet:[EMAIL PROTECTED]
tel;work:+254-722-490994
tel;home:+254-722-490994
tel;cell:+254-722-490994
url:www.agile.co.ke
version:2.1
end:vcard

Reply via email to