Hi all! I have a some problem with route smsc to sms-services in my kannel.conf. I have two connections to mobile operators: "Fon" and "Mega". When I receive SMS from one operator, or other, is ok - it's not mix. But SMS to "Mega" numbers 9918 and 0220 is mixed randomly. Example: incoming SMS to 9918 may be assigned to sms-service "service-mega-9918" or "service-mega-0220". It's randomly. I read a lot of userguide, but not a lot understanding =(
In Userguide I find next one: "Note that if SMS Center connection has an assigned SMSC ID, it does NOT automatically mean that messages with identical SMSC ID are routed to it; instead configuration variables denied-smsc-id, allowed-smsc-id and preferred-smsc-id is used for that. " Ok, after this read, I added "denied-smsc-id" and "preferred-smsc-id" but it's not worked. What I must to do, to make this route properly? smsc "Mega_9918" must start service "service-mega-9918", but "Mega_0220" must start service "service-mega-0220"... Thank you My current config is: group = core admin-port = 13000 admin-password = bar admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" # Smsbox related smsbox-port = 13001 log-file = "/var/log/kannel/bearerbox.log" box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" dlr-storage = internal ### # Fon ### group = smsc smsc = smpp smsc-id = Fon_9918 allowed-smsc-id = Fon_9918 host = *.*.*.* port = **** transceiver-mode = 1 #receive-port = 2775 smsc-username = "****" smsc-password = **** system-type = "M-Life-Aktel" address-range = "" source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 0 dest-addr-npi = 1 bind-addr-ton = 0 bind-addr-npi = 1 my-number = 9918 log-file = /var/log/kannel/fon.log log-level = 0 ### # Mega ### group = smsc smsc = smpp smsc-id = Mega_9918 denied-smsc-id = "Mega_0220" allowed-smsc-id = Mega_9918 preferred-smsc-id = Mega_9918 host = *.*.*.* port = **** transceiver-mode = 1 #receive-port = 2775 smsc-username = "****" smsc-password = **** system-type = "M-Life-Mega" address-range = "" source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 0 dest-addr-npi = 1 bind-addr-ton = 0 bind-addr-npi = 1 my-number = 9918 log-file = /var/log/kannel/mega.log log-level = 0 group = smsc smsc = smpp smsc-id = Mega_0220 denied-smsc-id = "Mega_9918" allowed-smsc-id = Mega_0220 preferred-smsc-id = Mega_0220 host = *.*.*.* port = **** transceiver-mode = 1 #receive-port = 2775 smsc-username = "****" smsc-password = **** system-type = "M-Life-Mega" address-range = "" source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 0 dest-addr-npi = 1 bind-addr-ton = 0 bind-addr-npi = 1 my-number = 0220 log-file = /var/log/kannel/mega.log log-level = 0 # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 sendsms-chars = "0123456789+" access-log = "/var/log/kannel/sms-access.log" log-file = "/var/log/kannel/smsbox.log" log-level = 0 mo-recode = 1 # SEND-SMS USERS group = sendsms-user username = m-life password = m-life-pass #user-deny-ip = "" #user-allow-ip = "" # SMS SERVICES # HELLO WORLD group = sms-service keyword = 12345 text = "Hello World!" # service Megacom group = sms-service name = service-mega-9918 keyword = default get-url = "http://localhost/service/index.php?keyword=%k&phoneOfSender=%p&dateLine=%t&messageAsLine=%a&messageAsBin=%b&smsServiceName=%n&smscId=%i&messageCoding=%c&messageCharset=%C" accepted-smsc = Mega_9918 max-messages = 3 concatenation = true # service Fon group = sms-service name = service-fon-9918 keyword = default get-url = "http://localhost/service/index.php?keyword=%k&phoneOfSender=%p&dateLine=%t&messageAsLine=%a&messageAsBin=%b&smsServiceName=%n&smscId=%i&messageCoding=%c&messageCharset=%C" accepted-smsc = Fon_9918 max-messages = 3 concatenation = true # service TestNumber group = sms-service name = service-mega-0220 keyword = default get-url = "http://localhost/service/index_0220.php?keyword=%k&phoneOfSender=%p&dateLine=%t&messageAsLine=%a&messageAsBin=%b&smsServiceName=%n&smscId=%i&messageCoding=%c&messageCharset=%C" accepted-smsc = Mega_0220 max-messages = 3 concatenation = true
