The easiest way to make sure that the received messages only go to the correct connector is using two gateways and route the messages to/from connector 1 only to gateway 1 and messages to/from connector 2 only to gateway 2. You can use two GSM Modem Gateways or two SMPP Gateways with a different return address.
There is no easy way to use only one gateway and still make sure that the received message is only routed to the connector which last sent a message to the sender phone number of the reply. The only option is to use the HTTP callback functionality in Diafaan SMS Server. The HTTP callback function can send an HTTP call to a PHP or ASP.NET script for every message that is sent and/or received. The script can store or change the message details before they are sent or routed back to the connectors. The script would have to store a list with the destination phone numbers of all sent messages and the name of the connector that initiated the message. When a message is received, the script looks up the connector name and sets the connector as the only destination for the message.
The SMS system does not know that a message is a reply to another message. That means that it is difficult to route the reply back to the original sender of the message. There is always a possibility that the reply is sent to the wrong user.
I try to use the web and smtp connector simultaniously and to assign the received sms to the local user according to the last outgoing sms to the number in question. However if the number had an outgoing sms by the smtp as well as the web connector, then any following received answer sms is received two times - by the smtp as well as the web connector. Can that get changed?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 542
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1082