Support forum
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:
string messageId, string smsc, string pdu, string gateway,
DateTime sendTime, DateTime receiveTime)
{
if ((fromAddress != "+1111111111") && (fromAddress != "+222222222")) {
// Process the message ....
}
Regards, Henk
1:21 am
Do you have an example of the C# code to exclude 2 specific phone numbers.
1:18 am
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.
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
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 HelmantelAdministrators: Henk Helmantel: 1510