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
Generic HTTP gateway
sp_NewTopic Add Topic
February 10, 2025
11:32 am
Henk Helmantel
Admin
Forum Posts: 1562
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

The Wassenger script includes the code to receive webhooks. If it is enabled in the script, it creates a local web server on port 80 by default. To receive the webhooks from your SMS service provider you will need to expose the web server to the internet, and on most networks this requires a port redirection on your local router.

In the Wassenger script the data from the webhook HTTP calls is handled in the 'HandleHttpRequest' function. Wassenger uses data in JSON format but your SMS service provider might use another format like URL encoding or XML. The 'HandleHttpRequest' function in the script handles both incoming messages and delivery reports for previously sent messages. You will have to adapt this code to be able to handle the specific webhook data from your SMS service provider.

Regards, Henk

February 6, 2025
5:14 pm
Nurdan
Guest
Guests

Dear Henk
I chose Wassenger (WhatsApp) API which is more suitable for my use, and modified the C# json wassengerSendMessageUri parameters. I did send successfully and received the SMS. I need to update the status from send to delivered or Error. I tried to enable webhook support in Gateway. But I don't know how to update the status through webhook.
question:
A. The webhook URL is http://myserver IP : port or something else I will to tell the gateway provider.
B. If I receive the supplier Json, what parameters do I need to use to update the status?
C. Can you give me an example of updating the status?

Regards, Nurdan

January 27, 2025
2:55 pm
Henk Helmantel
Admin
Forum Posts: 1562
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Nurdan,

The generic HTTP gateway in Diafaan SMS Server does not support delivery reports and inbound SMS messages, you can only use it to send out SMS messages.

If you want to be able to receive delivery reports and inbound SMS messages with the HTTP Gateway you have to make a custom C# script for your SMS service. Creating or customizing a script is not trivial and requires some experience in programming with C#.

The easiest way to create a script for the HTTP Gateway is to modify one of the built-in service scripts. There are a few service scripts that use the JSON API of the SMS service, like the script for the Clickatell Platform service, and you can use this script as a basis for a custom script for the SMS API that you are using.

You can change the built-in script with the following steps:
- Create a new Clickatell Platform HTTP Gateway
- Set the 'ShowAdvancedOptions' in the advanced settings of the new HTTP Gateway to 'True'
- Click on "Edit 'Clickatell Platform' script" in the 'Clickatell Platform' settings to edit the script

Regards, Henk

January 26, 2025
5:10 am
Nurdan
Guest
Guests

Drar Sir rnWe are use generic HTTP gateway to supplier. And use Josn communicate. How do I get a delivery receipt from my supplier?rnPlease let me know, in addition to the unsupported status update noted on hand.rnrnTHANK YOU.

Forum Timezone: Europe/Amsterdam
Most Users Ever Online: 820
Currently Online:
Guest(s) 7
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 698
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1189
Posts: 4057
Newest Members:
, Henk Helmantel
Administrators: Henk Helmantel: 1562