Support forum
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.
Regards, Henk
3:48 pm
Hi Henk,
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?
Many thanks,
Kev
11:23 am
May 28, 2013
Hello Kev,
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.
Regards, Henk
10:56 am
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.
Kev
Most Users Ever Online: 529
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 681
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1160
Posts: 3961
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1517