Hi Evgeniy,

You need to use one (but not both) of the directives allowed-smsc-id or 
denied-smsc-id.

For instance in the SMSC1 group add the line:
allowed-smsc-id = SMSC1

And in the SMSC2 group, add the following line:
allowed-smsc-id = SMSC2

As the names imply, allowed-smsc-id allows routing of SMS only with that value 
od smsc-id field as received from smsbox
Denied-smsc-id, will deny every SMS with smsc-id value matching any of the ids 
enumerated in that line. Anything else, even SMS with no smsc-id  will be 
served by that SMSC.

Furthermore, if you have SMSCs that both accept certain smsc-ids, using the 
“preferred-smsc-id” you can give preference towards a certain SMSC (lower cost) 
or use that in case you have geo-redundant SMSCs and want to give one location 
preference over the other, kind of sctive-standby logic.

Bearerbox will always try to route and balance between the SMSCs, so you have 
to be very carefull with the directives in order to give the SMS the propper 
route.

BR,

Davor Spasoski
From: users [mailto:users-boun...@kannel.org] On Behalf Of Eugeniy Khvastunov
Sent: 19 January 2017 16:54
To: users@kannel.org
Subject: http sendsms + smsc

Hello!
I am setup Kannel/1.4.4 under freebsd and trying to select SMSC by smsc 
variable for cgi-bin sendsms, but kannel randomly select SMSC.
In my config I have two SMSC.
Plese help, what I miss?
Some conf:

group = smsc
smsc = smpp
smsc-id = SMSC1
system-type = ""
host = 1.1.1.1
port = 29900
source-addr-autodetect = yes
transceiver-mode = true
#receive-port = 29900
interface-version = 34
smsc-username = yyy
smsc-password = yyy
enquire-link-interval = 270
source-addr-ton = 1
source-addr-npi = 1
dest-addr-ton = 0
dest-addr-npi = 1
msg-id-type = 0x03
log-file = "/var/log/kannel/yyy.log"
log-level = 0

group = smsc
smsc = smpp
smsc-id = SMSC2
system-type = ""
host = 2.2.2.2
port = 20510
source-addr-autodetect = yes
transceiver-mode = true
#receive-port = 29900
interface-version = 34
smsc-username = xxx
smsc-password = xxx
enquire-link-interval = 60
source-addr-ton = 5
source-addr-npi = 0
dest-addr-ton = 1
dest-addr-npi = 1
msg-id-type = 0x03
log-file = "/var/log/kannel/xxx.log"
log-level = 0


--
wbr. Eugeniy Khvastunov,
   System administrator.
       [FMGH-UANIC]
 http://blog.unlimite.net

________________________________

Disclaimer: one.Vip DOO Skopje
This e-mail (including any attachments) is confidential and may be protected by 
legal privilege. If you are not the intended recipient, you should not copy it, 
re-transmit it, use it or disclose its contents, but should return it to the 
sender immediately and delete your copy from your system. Any unauthorized use 
or dissemination of this message in whole or in part is strictly prohibited. 
Please note that e-mails are susceptible to change. one.Vip DOO Skopje shall 
not be liable for the improper or incomplete transmission of the information 
contained in this communication nor for any delay in its receipt or damage to 
your system.
Please, do not print this e-mail unless it is necessary! Think about saving the 
environment!

Напомена: оне.Вип ДОО Скопје
Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да биде 
заштитена со правни привилегии. Доколку не сте лицето на кое таа му е наменета 
пораката, не треба да ја копирате, дистрибуирате или да ја откривате нејзината 
содржина, туку веднаш да ја препратите до испраќачот и да ја избришете 
оригиналната порака и сите нејзини копии од Вашиот компјутерски систем. Секое 
неовластено користење на оваа порака во целост или делови од истата е строго 
забрането. Ве молиме да забележите дека електронските пораки се подложни на 
промени. оне.Вип ДОО Скопје не презема одговорност за несоодветно или нецелосно 
пренесување на информациите содржани во оваа комуникација, ниту пак за било 
какво задоцнување на приемот или оштетувања на вашиот систем.
Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
природата!

Reply via email to