Fallback SMPP Connection

Fallback SMPP Connection SearchSearch
Author Message
Anonymous
Posted on Wednesday, July 09, 2003 - 08:03 am:   

is there any way to tell NowSMS to connect to SecondaryIP address of SMSC with the same parameters if PrimaryIP is not responding or not accessible for certain period.
Its disperately needed for the fallback connection of SMSC to ensure the availability of services.
If there is no builtin option for this .. then how can we manage to have a setup for backup connection?}
Bryce Norwood - NowSMS Support
Posted on Wednesday, July 09, 2003 - 02:35 pm:   

As long as the port number is the same, the easiest way to do this is to create an entry in the HOSTS file of the PC running the NowSMS gateway.

The HOSTS file is located in the \winnt\system32\drivers\etc directory.

Simply add entries like this to that file:

192.168.1.1 smpp1.sms
192.168.1.2 smpp1.sms

Then configure the SMSC host name as smpp1.sms.

If the gateway can't connect to the first address, it will try the second (or you can have multiple addresses configured).

Another alternative, if your provider supports it, is to go ahead and configure connections to both SMSCs simultaneously, and NowSMS will simultaneously route to both connections.

-bn
Anonymous
Posted on Thursday, July 10, 2003 - 12:31 pm:   

Thanx for the prompt response.

1. Host File Mechanism (with 2 IPs having same host)is working fine BUT it checks only at the time of establishing the connection with SMSC; how about if primary IP connection disconnects; will it switch to another ip of the same host(secondaryIP)?

2. Second option is better; as we can connect to multiple SMSCs simultaneously. now we would like to configure NowSMS in a way that it should use Connection1 Primararily and Another if Connection1 is not accessbile AND shoule revert back intelligently as soon as Connection1 gets available...

could you pleaes suggest the possible ways and advice us accordingly.
Bryce Norwood - NowSMS Support
Posted on Thursday, July 10, 2003 - 03:49 pm:   

1. Each time it tries to connect, NowSMS queries DNS (and the HOSTS file). If multiple IP addresses are defined, it tries them in sequence until it finds one that it can connect to.

2. When both SMSCs are configured, it connects and uses them both. There is not a preference level given to one over the other.

-bn