Support forum
I have received the license information from your friend and added the feature to the list for the next version of Diafaan SMS Server. Unfortunately this is not something that can be changed with a plugin so it has to wait for the next version release.
I have thought a bit more about your question and there is a way to send the connector to the script but it depends on your configuration what the best way is to achieve the solution.
You can use the 'MessageType' parameter to send the connector name to the Scripting Gateway. If you send the messages from a Scripting Connector, an SQL Connector or from the HTTP API of a Web Connector you can just fill in the connector name in the message type parameter. If you send the messages from another connector you can use the HTTP Callback functionality in Diafaan SMS Server to change the original 'message_type' parameter to the 'source' (connector name) value in a C# script. The C# code to do this is be something like this:
{
return "result=1&message_type=" + HttpUtility.UrlEncode(parameterList["source"]);
}
Regards, Henk
10:37 am
I'm helping a friend out, he has the licence. I will ask him to ping you.
This is not a feature that we have planned for a future version.
I can't find your email address in our license database, but if you send the serial number of your license to email address dms@diafaan.com I will add your email address to your license and add your request to the list for the next version of Diafaan SMS Server.
Regards, Henk
11:10 am
Is there a chance that it would be added in a future version ?
Do you have any suggestion on how to handle different behavior/settings based on the incomming connector ?
Hello Sorin,
The name of the connector that originated the message is not available in the Hashtable of the script in the Scripting Gateway. In version 4.7.0.0 the MessageOut Hashtable contains the following variables:
PacketName: MessageOut
To
Message
From
MessageType
ValidityPeriod
RecordId
Regards, Henk
Most Users Ever Online: 529
Currently Online:
5 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 681
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1160
Posts: 3961
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1517