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
Content of the Hashtable messagePachet of the OnMessagePacket callback
sp_NewPost Add Reply sp_NewTopic Add Topic
November 29, 2022
1:52 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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:

if (parameterList["action"] == "message_out")
{
return "result=1&message_type=" + HttpUtility.UrlEncode(parameterList["source"]);
}

Regards, Henk

November 27, 2022
10:37 am
Sorin
Guest
Guests

I'm helping a friend out, he has the licence. I will ask him to ping you.

November 27, 2022
9:36 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

November 24, 2022
11:10 am
Sorin
Guest
Guests

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 ?

November 24, 2022
10:56 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

November 23, 2022
5:22 pm
Sorin
Guest
Guests

Is there any documentation for the content of that Hashtable ?

I'm interested on applyng some changes to the messages based on the incoming connector. Is that available in the Hashtable ?

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
22 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 672

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1141

Posts: 3899

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1488