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
Scripts for changing msg text
sp_NewPost Add Reply sp_NewTopic Add Topic
July 16, 2019
2:12 pm
Henk Helmantel
Admin
Forum Posts: 1073
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

If you use the HTTP callbacks to change the message content, the routing of the messages is not affected.

If you use the Scripting Gateway then the message can only be re-routed to a single gateway, but you can specify a different gateway for each message.

In a system with 32 gateways using a Scripting Gateway to change the message content will have a strong negative effect on the message throughput. In that situation it is best to use the HTTP callback to change the message content.

Regards, Henk

July 16, 2019
10:56 am
Salman
Guest
Guests

If i use multipe gateways like 32 then how to dispatch to random one from any of them available

July 16, 2019
9:47 am
Henk Helmantel
Admin
Forum Posts: 1073
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Salman,

Diafaan SMS Server supports two ways to change the content of a message with a script. You can use a Scripting Gateway or the HTTP callback functionality.

For the first option, you have to add a Scripting Gateway to Diafaan SMS Server and change the gateway routing options of the SMPP Connector so that messages are routed to the Scripting Gateway only. In the Scripting Gateway you can change the OnMessageToSend function in the script to change the message content and dispatch the message to the SMPP Gateway:

private void OnMessageToSend(string recordId, string toAddress, string fromAddress,
string message, string messageType)
{
// Change the message parameters here
PostDispatchMessage(recordId, toAddress, fromAddress, message, messageType, "SMPP Gateway", "");
}

More information about changing messages with an HTTP callback can be found here.

Regards, Henk

July 16, 2019
7:55 am
Salman
Guest
Guests

Can i change msg text using script. msg received from a smpp connector and send it to smpp gateway. Can i intercept in between msg and change msg text? thnx

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 546

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 874

Posts: 3003

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1073