Hi

This also happens if you try with sqlite3.

I configured it wiht mysql and everything fine.



/**** WITH SQLITE3 ******/
/**** CONF
group = sqlbox
id = "sqlbox-db"
smsbox-id = sqlbox
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/sqlbox.log"
log-level = 4

group = sqlite3-connection
id = sqlbox-db
database = /opt/smsbox.db
lock-timeout = 5
max-connections = 1

/****LOG
2012-11-07 13:40:35 [30413] [0] INFO: Added logfile
`/var/log/kannel/sqlbox.log' with level `0'.
2012-11-07 13:40:35 [30413] [0] PANIC: SQLBOX: MySQL: connection
settings for id 'sqlbox-db' are not specified!
2012-11-07 13:40:35 [30413] [0] PANIC: sqlbox(gw_panic+0x147) [0x42b437]
2012-11-07 13:40:35 [30413] [0] PANIC: sqlbox(sqlbox_init_mysql+0x110)
[0x40d060]
2012-11-07 13:40:35 [30413] [0] PANIC: sqlbox(sqlbox_init_sql+0x9)
[0x412149]
2012-11-07 13:40:35 [30413] [0] PANIC: sqlbox(main+0x30f) [0x40ccef]
2012-11-07 13:40:35 [30413] [0] PANIC: /lib/libc.so.6(__libc_start_main
+0xfd) [0x7f25af051c8d]
2012-11-07 13:40:35 [30413] [0] PANIC: sqlbox() [0x40bc09]




/**** WITH MYSQL ******/
/**** CONF
group = sqlbox
id = "sqlbox-db"
smsbox-id = sqlbox
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/sqlbox.log"
log-level = 4

group = mysql-connection
id = sqlbox-db
host = localhost
username = root
password = internal
database = kannel


/****LOG 
2012-11-07 13:39:33 [29274] [0] INFO: Added logfile
`/var/log/kannel/sqlbox.log' with level `0'.
2012-11-07 13:39:33 [29274] [0] INFO: MYSQL: Connected to server at
localhost.
2012-11-07 13:39:33 [29274] [0] INFO: MYSQL: server version 5.1.63-0
+squeeze1-log, client version 5.1.63.
2012-11-07 13:39:33 [29274] [0] DEBUG: Started thread 1
(sqlbox.c:sql_to_bearerbox)
2012-11-07 13:39:33 [29274] [1] DEBUG: Thread 1
(sqlbox.c:sql_to_bearerbox) maps to pid 29274.
2012-11-07 13:39:33 [29274] [1] INFO: Connected to bearerbox at
localhost port 13001.
2012-11-07 13:39:33 [29274] [1] DEBUG: Started thread 2
(sqlbox.c:bearerbox_to_sql)
2012-11-07 13:39:33 [29274] [2] DEBUG: Thread 2
(sqlbox.c:bearerbox_to_sql) maps to pid 29274


Best regards,

António

Reply via email to