Handling more than one server in 2-Way SMS causes delay in incoming...

Handling more than one server in 2-Way SMS causes delay in incoming... SearchSearch
Author Message
Shlomi Cohen
New member
Username: Shlomki

Post Number: 6
Registered: 01-2010
Posted on Thursday, February 11, 2010 - 09:30 am:   

Hey Guys,

I'm having a weird issue regarding 2 way sms.
Here is the scenario:
1. Two phones are connected to Now SMS, let's call them phone1 and phone2
2. These phones are configured to route incoming sms to two different servers, using a web server on each pc: phone1 -> pc1, phone2 -> pc2
3. Both servers are up and running, there is no problem, and sms are being routed fine and on time.
4. PC1 had a power outage, and the computer is now turned off
5. Phone1 receives a text message, NowSMS tries to route it and fails. retry mechanism comes into action.
6. Meanwhile, phone2 receives a text message
7. PC2 does not receive the text message instantly. Instead, it takes up to 1 minute for the message to get routed, counted from the time the sms appeared in now sms logs

Now,
I've checked the debug log and saw that the delay is because now sms is too busy retrying to send the message to pc1.
Only after a while, it gives up and passes the other sms to pc2.
After that, it tries to route the message to pc1 again, and keeps doing so until it succeeds.

I can see two solutions for this problem:
1. Limit retry mechanism to X amount of retries. If all failed, message gets deleted or moved into the error queue.
2. Have more than one thread for 2 way sms.

I've tried to configure solution #2 in SMSGW.ini, and i've set the thread count to 3, but it still made no difference.

Can you please help?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1791
Registered: 08-2008
Posted on Thursday, February 11, 2010 - 06:27 pm:   

Hi Sholomi,

See this link for a solution:

http://blog.nowsms.com/2008/10/2-way-sms-command-speed-and-performance.html

--
Des
NowSMS Support