You can find the specification for the HTTP callback functions in the online manual.
The message ID from the gateway is available in the 'message_id' parameter, this is the message ID that is returned by the GSM modem, Clickatell or the SMPP service. The HTTP API also returns another message ID that is generated by Diafaan SMS Server, this GUID is returned in the 'user_info' field.
Thanks for the explanation, I have it working now.
One more question - Do you have a list of all of the parameters available in the GetHttpCallbackResponse querylist? In particular, does it provide the messageguid at all?
May 28, 2013
The error 'ERROR: Message rejected' means that the HTTP callback fails and that the message is therefore rejected. The reason for the error can be that the HTTP Callback server does not function or that it does not return a query string with parameter 'result' of '1'.
The first thing you should try is whether the HTTP callback script is working, the script starts an HTTP server on port 8080 on the host. If you load the URI 'http://localhost:8080/' from your browser, you should see the text 'result=1'.
If this works then you should check if the 'HTTP callbacks' settings in the 'Options' are set to the right values.
Hi Henk, I hope you are well.
I have the full version of Diafaan and recently upgraded to the new version that includes the HTTP callback service. I have switched the callback on using the default webpage and created a new script connector and added the callback script. All appears to work fine when sending messages directly through my gateway, but it doesn't seem to like any traffic coming from either the web connector webpage of HTTP API. I haven't as yet added any bespoke code to the script, so the script is untouched. The HTTP API returns the following error: "ERROR: Message rejected". Any ideas on what I am missing or what I need to do to get this working coorectly? I need to use the script for message logging and user verification.
Thanks in advance.
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 563
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1157