Cheers, Phuah Yee Keat
Chin Kok Joon wrote:
hi,
thanks for replying. here's the kannel configuration.
group = core admin-port = 13000 wapbox-port = 13002 smsbox-port = 13003 admin-password = abc status-password = xyz wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" access-log = "/var/log/kannel/kannel-access.log" store-file = "/tmp/kannel.store" dlr-storage=mysql
group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"
log-level = 4
syslog-level = none
access-log = "/var/log/kannel/wapaccess.log"
group = smsc
smsc=fake
port=14000
group = smsc
smsc = smpp
smsc-id = smsc1
host = 123.123.123.123
port = 1234
smsc-username = USER1
smsc-password = PWD1
system-type = VMA
source-addr-autodetect=yes
dest-addr-ton=1
dest-addr-npi=1
source-addr-ton=0
source-addr-npi=1
receive-port=1234
group = smsc
smsc = smpp
smsc-id = smsc2
host = 123.123.123.124
port = 1234
smsc-username = USER2
smsc-password = PWD2
system-type = "VMA"
source-addr-autodetect=yes
dest-addr-ton=1
dest-addr-npi=1
source-addr-ton=0
source-addr-npi=1
receive-port=1234
group = smsbox
bearerbox-host=localhost
sendsms-port = 13013
global-sender = 13013
log-file="/var/log/kannel/smsbox.log"
log-level=0
access-log="/var/log/kannel/kannel-access.log"
group = sendsms-user
username = smsuser
password = passwd
max-messages=10
concatenation=true
group = sms-service
keyword = nop
text = "You asked nothing and i did it!"
group = sms-service
keyword = default
get-url="http://%S" group = sms-service
keyword = HELLO
get-url =
"http://localhost/testing.php?k=%k&s=%s&S=%S&r=%r&a=%a&b=%b&t=%t&p=%p&P=%P&q=%q&Q=%Q&i=%i&d=%d&A=%A&n=%n&c=%c&C=%C&u=%u"
group = mysql-connection
id = mydlr
host = localhost
mysql-username = mysqluser
mysql-password = pass123
database = dlr
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source = source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id=boxcid
thanks in advance.
regards chin
On Fri, 2003-12-05 at 09:59, Phuah Yee Keat wrote:
can you please attach your kannel.conf as well? Thanks.
Chin Kok Joon wrote:
hello to all,
i'm facing a problem while using kannel.i'm using smpp protocol to receive sms (MO). However, everytime when the smsbox receive a MO, the smsbox crashes. i've tried updating the kannel to the latest version through cvs but to no avail. pls help. i included the smsbox log as below. thanks
regards
CHIN
2003-12-04 23:22:18 [0] INFO: Starting to log to file /var/log/kannel/smsbox.log level 0 2003-12-04 23:22:18 [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2003-12-04 23:22:18 [0] INFO: Service global sender set as '13013' 2003-12-04 23:22:18 [0] INFO: Logging accesses to '/var/log/kannel/kannel-access.log'. 2003-12-04 23:22:18 [0] INFO: Started access logfile `/var/log/kannel/kannel-access.log'. 2003-12-04 23:22:18 [0] INFO: HTTP: Opening server at port 13013. 2003-12-04 23:22:18 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2003-12-04 23:22:18 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2003-12-04 23:22:18 [0] INFO: Set up send sms service at port 13013 2003-12-04 23:22:18 [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2003-12-04 23:22:18 [0] DEBUG: ---------------------------------------------- 2003-12-04 23:22:18 [0] DEBUG: Kannel smsbox version cvs-20031204 starting 2003-12-04 23:22:18 [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2003-12-04 23:22:18 [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2003-12-04 23:22:18 [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2003-12-04 23:22:34 [0] INFO: Connected to bearerbox at localhost port 13003. 2003-12-04 23:22:34 [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2003-12-04 23:22:54 [4] INFO: Starting to service <HELLO 11PM> from <+60131234567> to <12345> 2003-12-04 23:22:54 [4] PANIC: gwlib/octstr.c:2224: seems_valid_real: Assertion `ostr != NULL' failed. (Called from gwlib/octstr.c:1614:octstr_url_encode.) 2003-12-04 23:22:54 [4] PANIC: ./smsbox [0x806bab5] 2003-12-04 23:22:54 [4] PANIC: ./smsbox [0x8070780] 2003-12-04 23:22:54 [4] PANIC: ./smsbox [0x806f57d] 2003-12-04 23:22:54 [4] PANIC: ./smsbox [0x8057368] 2003-12-04 23:22:54 [4] PANIC: ./smsbox(vfprintf+0x2e85) [0x804d47d] 2003-12-04 23:22:54 [4] PANIC: ./smsbox [0x804ea62] 2003-12-04 23:22:54 [4] PANIC: ./smsbox [0x80646f2] 2003-12-04 23:22:54 [4] PANIC: /lib/tls/libpthread.so.0 [0x400ed2b6] 2003-12-04 23:22:54 [4] PANIC: /lib/tls/libc.so.6(__clone+0x57) [0x420de407]
