Денис Давыдов
2017-11-30 07:42:11 UTC
Hi,
I have developed an enhancement to the bearerbox. I have added
"sender-number" and "default-sender-number" to group "smsc". This allows to
replace originator address for outgoing traffic (MT) of specified smsc-id.
The "default-sender-number" parameter defines default number for outgoing
SMS if there's no explict rule for replacing originator address by
specified smsbox-id(s) (see "sender" parameter). You may use the
combination of these two parameters.
It very helpful when you have many SMSC connections as well as ESMEs with
different assigned numbers and difficult MT routing between these
connections. Depending on the route it helps disguise the originator
address for specified smsc-id.
In this example if route of MT traffic will go through mysmsc1, for
smsbox-id test1 originator address will change to 79031111101 and for
smsbox-id test2 it changes to 79031111102. For another smsbox-ids it will
replaced by default number 79031111103. And if route of MT traffic will go
through mysmsc2 all messages will have outgoing alphanumber 1111:
group = smsc
smsc-id = mysmsc1
...
allowed-prefix="+7;+7903;+7905;+7906;+7909;+796;+976"
preferred-prefix="+7903;+7905;+7906;+7909;+796;+976"
preferred-smsc-id = "mysmsc1;outgoing"
sender-number = "test1,79031111101;test2:79031111102"
default-sender-number = "79031111103"
group = smsc
smsc-id = mysmsc2
...
allowed-prefix="+791;+798"
preferred-prefix="+791;+798"
preferred-smsc-id = "mysmsc2;outgoing"
default-sender-number = "1111"
The second enhancement allows to add the route for MO traffic based on
originator address(es) to specified smsbox-id. I have added "sender" to the
"smsbox-route" group for such behavior. This helps route incoming traffic
from specified sims to some test smsbox-id for example.
This this example all incoming traffic (MO) from sims 79032222222 and
79101111111 should route to the mytestbox smsbox-id (no matter what source
SMSC is). All over traffic from two SMSCs mysmsc1 and mysmsc2 will go to
prodbox (this is default rule for these SMSCs).
group = smsbox-route
smsbox-id = prodbox
smsc-id = mysmsc1
group = smsbox-route
smsbox-id = prodbox
smsc-id = mysmsc2
group = smsbox-route
sender = "+79032222222;+79101111111"
smsbox-id = testbox
Included below is the diff with the documentation update. Please let me
know if you have any questions or comments.
--
Regards,
Denis S.Davydov
I have developed an enhancement to the bearerbox. I have added
"sender-number" and "default-sender-number" to group "smsc". This allows to
replace originator address for outgoing traffic (MT) of specified smsc-id.
The "default-sender-number" parameter defines default number for outgoing
SMS if there's no explict rule for replacing originator address by
specified smsbox-id(s) (see "sender" parameter). You may use the
combination of these two parameters.
It very helpful when you have many SMSC connections as well as ESMEs with
different assigned numbers and difficult MT routing between these
connections. Depending on the route it helps disguise the originator
address for specified smsc-id.
In this example if route of MT traffic will go through mysmsc1, for
smsbox-id test1 originator address will change to 79031111101 and for
smsbox-id test2 it changes to 79031111102. For another smsbox-ids it will
replaced by default number 79031111103. And if route of MT traffic will go
through mysmsc2 all messages will have outgoing alphanumber 1111:
group = smsc
smsc-id = mysmsc1
...
allowed-prefix="+7;+7903;+7905;+7906;+7909;+796;+976"
preferred-prefix="+7903;+7905;+7906;+7909;+796;+976"
preferred-smsc-id = "mysmsc1;outgoing"
sender-number = "test1,79031111101;test2:79031111102"
default-sender-number = "79031111103"
group = smsc
smsc-id = mysmsc2
...
allowed-prefix="+791;+798"
preferred-prefix="+791;+798"
preferred-smsc-id = "mysmsc2;outgoing"
default-sender-number = "1111"
The second enhancement allows to add the route for MO traffic based on
originator address(es) to specified smsbox-id. I have added "sender" to the
"smsbox-route" group for such behavior. This helps route incoming traffic
from specified sims to some test smsbox-id for example.
This this example all incoming traffic (MO) from sims 79032222222 and
79101111111 should route to the mytestbox smsbox-id (no matter what source
SMSC is). All over traffic from two SMSCs mysmsc1 and mysmsc2 will go to
prodbox (this is default rule for these SMSCs).
group = smsbox-route
smsbox-id = prodbox
smsc-id = mysmsc1
group = smsbox-route
smsbox-id = prodbox
smsc-id = mysmsc2
group = smsbox-route
sender = "+79032222222;+79101111111"
smsbox-id = testbox
Included below is the diff with the documentation update. Please let me
know if you have any questions or comments.
--
Regards,
Denis S.Davydov