Thanks for the response. This is my kannel.conf file. When I comment "dlr-storage=mysql" kannel runs fine.

# 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 =

group = sendsms-user
username = root
password = root

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

group = mysql-connection
id = mydlr
host = localhost
username = root
password =
database = dlr
# max count of connections that will be opened for dbpool
# default is 1
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

# 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 alowed to use this service, Go away!"


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

# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
text = "You are blessed. No service specified. "
__________________________________________________________________________________________
my bearerbox.log remains empty. Both smsbox and bearebox fail to start. The contents of my smsbox.log are here:-


2008-05-27 01:12:01 [3371] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'.
2008-05-27 01:12:01 [3371] [0] INFO: Service global sender set as '12345'
2008-05-27 01:12:01 [3371] [0] INFO: HTTP: Opening server at port 13013.
2008-05-27 01:12:01 [3371] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2008-05-27 01:12:01 [3371] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2008-05-27 01:12:01 [3371] [0] INFO: Set up send sms service at port 13013
2008-05-27 01:12:01 [3371] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2008-05-27 01:12:01 [3371] [0] DEBUG: ----------------------------------------------
2008-05-27 01:12:01 [3371] [0] DEBUG: Kannel smsbox version 1.4.1 starting
2008-05-27 01:12:01 [3371] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2008-05-27 01:12:01 [3371] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2008-05-27 01:12:01 [3371] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2008-05-27 01:12:01 [3371] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3371. 2008-05-27 01:12:01 [3371] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3371. 2008-05-27 01:12:01 [3371] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 3371. 2008-05-27 01:12:01 [3371] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3371. 2008-05-27 01:12:01 [3371] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 3371. 2008-05-27 01:12:01 [3371] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3371.
2008-05-27 01:12:01 [3371] [0] ERROR: connect failed
2008-05-27 01:12:01 [3371] [0] ERROR: System error 111: Connection refused
2008-05-27 01:12:01 [3371] [0] ERROR: error connecting to server `localhost' at port `13001'
2008-05-27 01:12:01 [3371] [0] PANIC: Couldn't connect to the bearerbox.
2008-05-27 01:12:01 [3371] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x107) [0x8086e37] 2008-05-27 01:12:01 [3371] [0] PANIC: /usr/sbin/smsbox(main+0xf0a) [0x805399a] 2008-05-27 01:12:01 [3371] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x46d08dec]
2008-05-27 01:12:01 [3371] [0] PANIC: /usr/sbin/smsbox [0x80522d1]



Tharanga wrote:
pls send us ur config file.
Tharanga


----- Original Message ----- From: "James Mutuku" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 26, 2008 10:13 PM
Subject: Kannel fails with dlr-storage set as mysql


Hi,
I have installed kannel using rpm files on centos5. I have been trying to set up dlr-storage using mysql...but when I do, kannel(bearerbox and smsbox) fails to start. What could be the problem.






__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 3132 (20080526) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




begin:vcard
fn:James Mutuku
n:Mutuku;James
org:Agile Systems Limited;Technical Department
adr:;;P.O Box 55686-00200;Nairobi;Kenya;00100;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