Hi all,

I am trying to establish 10 transmitter and 10 receiver binds. The binds have two different IP's, but all other details are exactly the same. They use the same port number, same user/pass.

I use the same smscid for all RX and same for all TX, because I thought that Kannel would automatically do some kind of load balancing then?

When I configure both IP's, the bearerbox shows only the TX transmitter. It looks like it overrules the RX? Also it didn't bind 10 times.

When I check with netstat, it only seems to bind to NEWXLTX as well.


For debugging, I tried wit only two connections, this is what the bearerbox said in debug mode:

2010-01-13 03:31:47 [32002] [6] DEBUG: SMPP[NEWXLTX]: Sending PDU:
2010-01-13 03:31:47 [32002] [0] INFO: MAIN: Start-up done, entering mainloop
2010-01-13 03:31:47 [32002] [7] DEBUG: SMPP[NEWXLTX]: Sending PDU:
2010-01-13 03:31:47 [32002] [6] DEBUG: SMPP PDU 0x9d17838 dump:
2010-01-13 03:31:47 [32002] [6] DEBUG:   type_name: bind_transmitter
2010-01-13 03:31:47 [32002] [7] DEBUG: SMPP PDU 0x9d17210 dump:
2010-01-13 03:31:47 [32002] [6] DEBUG:   command_id: 2 = 0x00000002
2010-01-13 03:31:47 [32002] [7] DEBUG:   type_name: bind_receiver
2010-01-13 03:31:47 [32002] [6] DEBUG:   command_status: 0 = 0x00000000
2010-01-13 03:31:47 [32002] [7] DEBUG:   command_id: 1 = 0x00000001
2010-01-13 03:31:47 [32002] [6] DEBUG:   sequence_number: 1 = 0x00000001
2010-01-13 03:31:47 [32002] [7] DEBUG:   command_status: 0 = 0x00000000
2010-01-13 03:31:47 [32002] [6] DEBUG:   system_id: "sms123"
2010-01-13 03:31:47 [32002] [7] DEBUG:   sequence_number: 2 = 0x00000002
2010-01-13 03:31:47 [32002] [7] DEBUG:   system_id: "sms123"
2010-01-13 03:31:47 [32002] [6] DEBUG:   password: "sms123"
2010-01-13 03:31:47 [32002] [7] DEBUG:   password: "sms123"
2010-01-13 03:31:47 [32002] [6] DEBUG:   system_type: "NULL"
2010-01-13 03:31:47 [32002] [7] DEBUG:   system_type: "NULL"
2010-01-13 03:31:47 [32002] [6] DEBUG:   interface_version: 52 = 0x00000034
2010-01-13 03:31:47 [32002] [7] DEBUG:   interface_version: 52 = 0x00000034
2010-01-13 03:31:47 [32002] [6] DEBUG:   addr_ton: 0 = 0x00000000
2010-01-13 03:31:47 [32002] [6] DEBUG:   addr_npi: 0 = 0x00000000
2010-01-13 03:31:47 [32002] [7] DEBUG:   addr_ton: 0 = 0x00000000
2010-01-13 03:31:47 [32002] [7] DEBUG:   addr_npi: 0 = 0x00000000
2010-01-13 03:31:47 [32002] [7] DEBUG:   address_range: NULL
2010-01-13 03:31:47 [32002] [6] DEBUG:   address_range: NULL
2010-01-13 03:31:47 [32002] [6] DEBUG: SMPP PDU dump ends.
2010-01-13 03:31:47 [32002] [7] DEBUG: SMPP PDU dump ends.

So it looks like it's binding as transmitter and receiver, just as I want. But it doesn't name them correctly.

My smsc config was (xl.conf):

# RX 1
group = smsc
smsc = smpp
smsc-id = NEWXLRX
host = 10.22.250.163
receive-port = 9025
smsc-username = "xxx"
smsc-password = "xxx"
system-type = NULL
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 0
dest-addr-npi = 1
msg-id-type = 0x01
alt-charset = UTF-8

#
# TX 1
#
group = smsc
smsc = smpp
smsc-id = NEWXLTX
host = 10.22.250.184
port = 9025
smsc-username = "xxx"
smsc-password = "xxx"
system-type = NULL
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 0
dest-addr-npi = 1
msg-id-type = 0x01
alt-charset = UTF-8


I doubt if you need the other config's, but here we go.

kannel.conf:
group = mysql-connection
id = mydlr
host = 10.22.224.196
username = dlr
password = kannel
database = dlr
max-connections = 5

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

group = core
admin-port = 13006
smsbox-port = 13009
admin-password = mbridges
dlr-storage = mysql
log-file = "/var/log/kannel/bearerbox.log"
#log-level = 2
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;85.158.201.169;85.158.201.165"
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.0.*"

# SMSC connections
include = "/home/kannel/conf/xl.conf"


include = "/home/kannel/conf/smsbox.conf"
include = "/home/kannel/conf/sms-services.conf"







smsbox.conf:

group = smsbox
smsbox-id = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13010
sendsms-port = 14141
#log-file = "/var/log/kannel/smsbox.log"
log-level = 1
access-log = "/var/log/kannel/access.log"

# Route traffic to sqlbox
group = smsbox-route
smsbox-id = smsbox
smsc-id = "XLRX;XLTX;NEWXLRX;NEWXLTX"

# SMS Send-user
group = sendsms-user
username = xxx
password = xxx
user-allow-ip "127.0.0.1"





sms-services.conf:

group = sms-service
keyword = default
get-url = "http://127.0.0.1/service/MO.php5?to=%P&keyword=%k&ts=%t&from=%q&msg=%a&smscid=%i&dlr-value=%d&dlr-smsc-reply=%A&msg-coding=%c&msg-charset=%C";
max-messages = 0
omit-empty = true





Reply via email to