SMSIN redirection to different server

SMSIN redirection to different server SearchSearch
Author Message
Suresh Nalliannan
New member
Username: Nklsuresh72

Post Number: 1
Registered: 05-2017
Posted on Tuesday, May 23, 2017 - 10:35 pm:   

Hi,
We have two TRX Bind sending message from application to NOWSMS server, when we receive incoming message it should be forward to respective server based on Phone number because device is sending same destination number. In detail
ServerA to NOWSMS server TRX bind with different bind configuration systemID xyz /source address 999999
ServerB to NOWSMS server TRX bind with different bind configuration systemID abc /source address 999999
Both goes to same carrier only application is different.

SMSIN should go to respective server based on sender phone number.. As per documents Callbacks can be used, is there any other way to achieve this or can you guide me to some example of setup callbacks.

Thanks
Suresh Nalliannan
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5842
Registered: 08-2008
Posted on Monday, May 29, 2017 - 08:23 pm:   

Hi,

Apologies for the delay in response.

The configuration is a little unclear to me. I think I understand...but if my reply does not make sense to you, then I do not understand.

SMSIN routing only works on recipient/destination, but you want to route based on source/sender. Source address is the same outbound, therefore destination address is the same on the inbound.

I agree, accounting callbacks would be the answer.

A good simple example is here: https://support.nowsms.com/discus/messages/1/70303.html

Unfortunately, the SMSIN callback does not allow you to set local user account routing.

But there is a way to do this.

For the outbound SMSC connection, under advanced settings enable "ReRoute Received Messages for outbound delivery". WARNING: Do not do this until your callback is ready as without the callback, all in messages will get redirected back out.


Your callback should look for Type=SMSOUT and To=999999

To specify how a message should be routed respond back

SMSCRoute=localuser:xyz

or

SMSCRoute=localuser:abc


Test the callback by having your apps send test messages to 999999, which should immediately go back to the app.

Once that is working, enable the ReRoute setting to force the IN messages through the callback.


--
Des
NowSMS Support