You can modify the function:

 

static Octstr *boxc_route_msg_to_smsc(Boxc *box, Msg *msg)

 

Add a receiver filter to the sender filter and you are done.

 

From: devel [mailto:[email protected]] On Behalf Of Porter, Kelvin
Sent: maandag 1 juli 2013 17:55
To: [email protected]
Subject: FW: Question: select smsc based upon receiver number?

 

Hi,

 

I did not receive an answer to my query in [email protected].  I thought I
would try here, instead.

 

…

I have a set up like this…

 

Client à opensmppbox à bearerbox à {SMSC1 (default), SMSC2}

 

I am wondering if there is a way to do the routing like “smsc-route” in the
latest  versions  of opensmppbox, but for the receiver of the SMS message,
not the sender.  I have a  large set of diverse numbers that I want to
divert from the default smsc.  The set of numbers are diverse (i.e., they do
not share any prefixes in common).  How can I redirect this set of diverse
numbers away from the default smsc?

 

If there is not a good way to do this, I can modify the code to the
bearerbox and/or opensmppbox.  Does anyone have a preferred way of seeing it
implemented?  I am thinking that I could add a new parameter to the
“smsc-route” group, perhaps called “receiver-shortcode”, which would be a
list of receiver numbers that trigger the smsc overwrite.  I believe that
this should be a higher precedence match than the sender.

 

Thank you for any feedback.

 

Regards,

 

Kelvin R. Porter

 

 

Reply via email to