Support forum

Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

Simultanous use of web and smtp connector
sp_NewPost Add Reply sp_NewTopic Add Topic
October 12, 2016
8:09 pm
Henk Helmantel
Forum Posts: 1502
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Bernd,

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.

Regards, Henk

October 12, 2016
3:01 pm


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?



Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 677

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1149

Posts: 3928

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1502