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
Using the HTTP callback script and new HTTP callback service with the Web Connector
sp_NewPost Add Reply sp_NewTopic Add Topic
September 12, 2014
8:29 pm
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

September 12, 2014
3:48 pm
Kev
Guest
Guests

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

September 11, 2014
11:23 am
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

September 11, 2014
10:56 am
Kev
Guest
Guests

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

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 364

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 532

Posts: 1845

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 552