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
Modify sms content
sp_NewPost Add Reply sp_NewTopic Add Topic
May 21, 2019
9:25 pm
Henk Helmantel
Admin
Forum Posts: 1088
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Bernard,

There are two ways in Diafaan SMS Server to manipulate the message parameters with a script before they are sent out. Both methods are only available in the basic- and full editions of Diafaan SMS Server.

1. Use a Scripting Gateway
The C# or Visual Basic.NET script in a Scripting Gateway can change the message parameters and then 'dispatch' the message to another gateway. If you look at the 'OnMessageToSend' function in the default script of the Scripting Gateway you can find a commented out call to the 'PostDispatchMessage' function that dispatches the message to the 'GSM Modem Gateway'.

2. The HTTP callback functionality in Diafaan SMS Server can be used to change or block each individual message. HTTP callbacks can be made to a script on a remote web server but also to a locally installed instance of PHP and a local PHP script file.

Regards, Henk

May 20, 2019
4:42 pm
Bernard
Guest
Guests

I am looking to manipulate the sms text / string before it is sent out. I need to search for key words and be able to change or manipulate the content of the sms.
Where can this be done, are are there some example scripts to point us in the right direction?

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 545

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 869

Posts: 2992

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1088