Kannel bearerbox version `1.4.3'. Build `Mar 27 2013 08:45:56', compiler `4.4.7
20120313 (Red Hat 4.4.7-3)'. System Linux, release 2.6.32-279.14.1.el6.x86_64,
version #1 SMP Tue Nov 6 23:43:09 UTC 2012, machine x86_64. Hostname
mobilise.kannel01, IP 192.168.2.140. Libxml version 2.7.6. Compiled with MySQL
5.1.66, using MySQL 5.1.66. Using SQLite 3.6.20. Using native malloc.
Status: running, uptime 7d 6h 39m 37s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 7449523 (0 queued), sent 5920323 (224 queued), store size -1
SMS: inbound (9.07,9.69,11.85) msg/sec, outbound (20.72,20.33,9.42) msg/sec
DLR: 122538 queued, using mysql storage
Box connections:
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 7d 6h 39m 37s)
SMSC connections:
smsc-mo SMPP:1xxxx/5020:yyy:'VMA' (online 10061s, rcvd 4021039, sent
5835872, failed 431745, queued 13602 msgs)
smsc-mt SMPP:2xxx/5020:yyy:'VMA' (online 10062s, rcvd 169235, sent 84451,
failed 2836, queued 0 msgs)
Per the kannel status page above, I have 2 SMSC connections directly to
operator. Connection1 (smsc-mo for broadcast messages) is configured for a
throughput per second (TPS) of 70 by operator, Connection 2 (smsc-mt for
Charging MT), TPS of 60. The kannel config file is pasted below:
I have 2 questions:
1. As observed above I am only sending only 20 msg per second, yet the BB
queue for smsc-mo has started to build up. It only goes down after if I reduce
the sending rate from the application or stop sending for a while. The
operator insists I have 70 TPS. If this true, what settings in my kannel
configuration file may be causing BB queue to grow, even when I am no where
close the TPS configured by the operator. Asked differently, what settings can
I change to improve the performance and reach the capacity configured for the
connection without getting queue build up.
2. Smsc-mt is used for MT billing. It appears the only SMS that are delivered
to phones which have sufficient airtime balance are counted as sent in kannel's
counter. The outbound sending rate also does not reflect The traffic on the
Smsc-mt connection. I expect all messages that leave kannel Via that connection
to counted as part of the statistics but is clearly not the case. Is this a
kannel bug?
Thanks
Banji
Below is my kannel.conf file.
#--- mysql connection
group = mysql-connection
id = mydlr
host = localhost
username =xxx
password = xxx
database = xxx
max-connections = 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
# Default kannel configuration file
group = core
admin-port = xxxx
admin-password = xxxx
status-password = yyyy
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13013
#wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/access.log"
log-level = 0
dlr-storage = mysql
sms-resend-retry = 0
#group = wapbox
#bearerbox-host = localhost
# Configuring the smsBox
group = smsbox
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
bearerbox-host = 127.0.0.1
sendsms-port = 6013
global-sender = 6013
group = sendsms-user
username = xxx
password = yyy
#forced-smsc = smsc-mo
#default-smsc = smsc-mo
dlr-url=xxx?dlr=%d&dest=%p&report=%A"
#---- This is connection to smpp simulater
group = smsc
smsc = smpp
smsc-id = smsc-mo
allowed-smsc-id = smsc-mo
#denied-smsc-id = smsc-mt
host = a.b.c.d
port = 5020
receive-port = 5020
smsc-username = xxx
smsc-password = yyy
system-type = 'VMA'
service-type = 'test'
log-file = "/var/log/kannel/smpp.log"
log-level = 0
interface-version = 34
address-range = ''
msg-id-type = 0
throughput = 45
max-pending-submits = 40
wait-ack = 600
#---- This is connection to smpp simulater
group = smsc
smsc = smpp
smsc-id = smsc-mt
allowed-smsc-id = smsc-mt
host = a.b.c.d
port = 5020
receive-port = 5020
smsc-username = xxx
smsc-password = yyy
system-type = 'VMA'
service-type = 'test'
log-file = "/var/log/kannel/smpp.log"
log-level = 0
interface-version = 34
address-range = ''
msg-id-type = 0
throughput = 45
max-pending-submits = 40
wait-ack = 600