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
Callbacks returning empty params when testing using Diafaan console.
sp_NewPost Add Reply sp_NewTopic Add Topic
June 24, 2019
2:45 pm
Divya
Guest
Guests

Hi Henk,

Thanks for your help.

Regards
Divya

June 24, 2019
2:39 pm
Henk Helmantel
Admin
Forum Posts: 1073
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

I am sorry, I missed your reference to the 'Test' button in the HTTP callback options of the console program. The test button does not send any query parameters when it makes the test. It is only intended to test the HTTP callback settings and not to test the script.

As you have already found out, you need to send/receive actual messages to test the HTTP callback script.

Regards, Henk

June 22, 2019
8:09 am
Divya
Guest
Guests

Hi Henk,

No luck with the value, but then it's working with the actual request, the only issue is when I am testing it using the Diafaan SMS server console. its throwing error, anyways I will look in the code to check again and will get back.

Thanks for the help.

Regards
Divya

June 21, 2019
3:20 pm
Henk Helmantel
Admin
Forum Posts: 1073
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Thank you for the script. Unfortunately I am not familiar with Laravel and I don't really understand what your script is trying to do. But don't you get the value of the action parameter of the HTTP callback with the following line?

$action= $request->input('action');

Regards, Henk

June 21, 2019
2:48 pm
Divya
Guest
Guests

I have sent the same.

Regards
Divya

June 21, 2019
2:44 pm
Henk Helmantel
Admin
Forum Posts: 1073
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Can you send me the script that you use to process the callbacks, at least the part that gets the query parameters from the HTTP call? You can send the script to dms@diafaan.com.

Regards, Henk

June 21, 2019
12:40 pm
Divya
Guest
Guests

Hi Henk,

Thanks for your response, but even in the request, "action" is null.

Regards
Divya

June 21, 2019
11:32 am
Henk Helmantel
Admin
Forum Posts: 1073
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Divya,

By default, the HTTP callback query returns the parameters with an HTTP POST action in the body of the call.

If you want to receive the parameters in the URI you can set the HTTP method to 'GET' in the HTTP callback options ('Actions-Options-HTTP callback').

Regards, Henk

June 21, 2019
10:05 am
Divya
Guest
Guests

Hi Henk,

I am trying to test the callbacks from the Diafaan SMS Server Console, and when I am checking the response, it is only returning the Callback URL with null params for any of the actions, I tested for "Message Log".

Let me know if I am doing it wrong way.

Regards
Divya

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

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 859

Posts: 2953

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1073