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
Need to manipulate the text of messages in an SMPP connector
sp_NewPost Add Reply sp_NewTopic Add Topic
October 12, 2018
9:08 am
Henk Helmantel
Admin
Forum Posts: 917
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Yes, that is how it works. The HTTP callback for outgoing messages is triggered immediately after the connector receives the message. For the SMPP Connector this is when the SMPP sm_submit packet is received. The script can then change the parameters of the message before sending it to the message queue or block the message so that the SMPP Connector sends an error message back to the SMPP client.

You can enable or disable HTTP callbacks for every gateway and connector individually.

Diafaan SMS Server sends only one HTTP callback request per messages. But you can of course do multiple things in the script, for instance do some accounting and block or change phishing messages. As long as the script can do this fast enough not to slow down message processing too much.

Regards, Henk

October 11, 2018
5:08 pm
Udo
Guest
Guests

Hello Henk,

Looks good!

So, if I understood this correctly, I can use this HTTP Callback to actually do this inline?
It could block the message or modify the contents of the message before sending it out using the message_out script, right?
Regarding how to modify the text I would have to implement this in the web script, as far as I understood.

Is this feature of the kind on/off? Can I apply the modification/block only to certain connectors or would it be active on all connectors (I'm thinking about reducing the slowdown on the machine that you've mentioned)

I've seen also that this function is used for billing/accounting.
Can I use two HTTP Callback scripts simultaneously, meaning I can do accounting using one script and modification using the other?

BR

Udo

October 11, 2018
4:14 pm
Henk Helmantel
Admin
Forum Posts: 917
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Udo,

The basic- and full editions of Diafaan SMS Server have a feature called HTTP callbacks that can be used to block or change all of the messages in Diafaan SMS Server. When this option is enabled it sends an HTTP request to a script on a web server (or directly to a locally installed PHP program) that can process the information of the message, change it or block it completely.

Implementing a reliable system using the HTTP callbacks is not easy, the script must be very fast and reliable, otherwise the processing of messages in Diafaan SMS Server will slow down considerably, a script on a locally installed PHP instance will work best but calling an HTTP server can also be a good option if it runs on the local network. On the download page you can find a file with a number of example PHP scripts for the HTTP callback option.

Regards, Henk

October 11, 2018
2:48 pm
Udo
Guest
Guests

Hello Henk,

I'm back on testing Diafaan.

We're looking now for the possibility of manipulating the contents of messages that we may receive through an SMPP connector.
Reason: if someone is sending typical phishing SMS the operator blocks the SIM.

To do this inline I think it is not possible, but is there a way to take messages from an SMPP connector, store it in an SQL database? This way we would create an application that would transfer the messages to the MessageOut table of Diafaan and change if needed the text. And we could use the application also to update the message log of the original database, so that the sender gets his regular DLR and status updates, etc.

Do you see any creative way of handling the problem of manipulating the contents of messages with Diafaan?

BR

Udo

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: 491

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 762

Posts: 2630

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 917