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.
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?
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.
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?
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 621
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1323