Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

sp_TopicIcon
auto reply - black list
sp_NewPost Add Reply sp_NewTopic Add Topic
October 15, 2016
2:28 pm
Henk Helmantel
Admin
Forum Posts: 1510
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Jimmy,

We do not have plans to add blacklisting or opt-in and opt-out features to Diafaan SMS Server.

A trivial example in C# to filter out two numbers in a Scripting Connector:

private void OnMessageReceived(string fromAddress, string toAddress, string message, string messageType,
string messageId, string smsc, string pdu, string gateway,
DateTime sendTime, DateTime receiveTime)
{
if ((fromAddress != "+1111111111") && (fromAddress != "+222222222")) {
// Process the message ....
}

Regards, Henk

October 15, 2016
1:21 am
Jimmy
Guest
Guests

Do you have an example of the C# code to exclude 2 specific phone numbers.

October 15, 2016
1:18 am
Jimmy
Guest
Guests

I would love this feature too, but I don't like that fact that you have to enter single numbers, I would like to have a group name and add or remove phone numbers to the groups. Then I could apply a connector to a group and route messages that way.

December 26, 2014
10:12 am
Henk Helmantel
Admin
Forum Posts: 1510
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Damir,

Diafaan SMS Server does not have a black list feature to block incoming messages from certain phone numbers (it does have a white list), you have to implement this in another way. You can add the blacklist functionality in your own C# script, either by specifying the number list in the script or by implementing a database look up for each received message.

In the basic- and full editions of Diafaan SMS Server you can also use the 'HTTP callback' function to block received messages with specific sender numbers using a PHP or ASP.NET script on an external web server. This can also be used to implement an opt-in/opt-out system.

Regards, Henk

December 26, 2014
8:22 am
Damir
Guest
Guests

Hi,

how to implement black list for autoreply C# script ? list of numbers when autoreply is disabled..

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 680

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1155

Posts: 3945

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1510