Hi,
Looks good. This is the usual way. Otherwise It would be difficult for the
second server to know of message-ids and status of SMS sent by the first
server. Talk to them to verify it. Don't forget to specify parameters for
throttling, validity, etc.
BR,
Nikos
----- Original Message -----
From: "Rolandow" <kan...@rolandow.nl>
Cc: <users@kannel.org>
Sent: Wednesday, January 13, 2010 11:56 AM
Subject: Re: transmitter and received bind on same port = trouble?
Hi Nikos,
Thank you for your answer, but I don't fully understand. Join them to one,
meaning something like this?:
# RX 1
group = smsc
smsc = smpp
smsc-id = NEWXLRX
host = 10.22.250.163
receive-port = 9025
port = 9025
tranceiver-mode = false
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
For my understanding: what does this do? Would this setup two connections,
one for RX and one for TX, with the same SMSC ID?
The carrier gave us two ip's to connect to, that's why I thought I had to
use one for RX and one for TX. Maybe it's just ment for a failover, I have
to check that with them. The response from the carrier isn't always very
good, so a lot things we just have to figure out ourselves.
Can you confirm that this configuration would be correct?
Thanks in advance!
Kind regards,
Roland.
Nikos Balkanas wrote:
Hi,
There is no problem using the same ports for RX/TX. Please include in
smsc group:
tranceiver-mode = false
and join the 2 smscs into 1. host referes to the smsc. I don't think it
will work if you use different hosts for TX and RX, unless both belong to
the same server. Try with 1 smsc first and then expand to the rest.
BR,
Nikos
----- Original Message ----- From: "Rolandow" <kan...@rolandow.nl>
To: <users@kannel.org>
Sent: Tuesday, January 12, 2010 10:45 PM
Subject: transmitter and received bind on same port = trouble?
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