Support forum

Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

Twilio Setup in Diafaan
sp_NewPost Add Reply sp_NewTopic Add Topic
November 10, 2020
1:40 pm
Henk Helmantel
Forum Posts: 1502
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline


It took me some time to find out how to set up Whatsapp with Twilio and to see if it is possible to use the Twilio Whatsapp functionality from Diafaan SMS Server. I am still not sure if it is possible to send Whatsapp messages from Diafaan SMS Server with Twilio because this requires approval from Whatsapp and connecting a Twilio number with Whatsapp. But I was able to receive Whatsapp messages in Diafaan SMS Server through Twilio.

We do not have specific instructions to set up the Twilio account for inbound messages but I used the following steps to set up Diafaan SMS Server and Twilio for outbound and inbound SMS plus inbound Whatsapp:

1. Look up the Twilio credentials on , for two-way SMS I recommend to use the Live credentials
2. Add a HTTP Gateway in Diafaan SMS Server and fill in the Twilio credentials, select 'Start HTTP server...' and fill in your public IP number and port number.
3. Test if outbound SMS messages work correctly
4. If your computer is behind a NAT router, set up a port forwarding on the router to make sure that The HTTP Gateway is accessible from the internet. E.g. if your public IP- and port numbers are and 8080, the public URL is
5. Buy a mobile phone number on
6. Select the Twilio number on and scroll down to 'Messaging'
7. Fill in your public URL in the 'A MESSAGE COMES IN' Webhook
8. Test inbound SMS by sending a message from your phone to your Twilio number, the message should appear in the receive log of Diafaan SMS Server
9. Set up a Twilio Whatsapp sandbox on
10. Add you public URL to 'WHEN A MESSAGE COMES IN' on
11. Test by sending a Whatsapp message from your phone to the Whatsapp sandbox number, the message should appear in the receive log of Diafaan SMS Server

Regards, Henk

November 9, 2020
12:15 am

i was able to get to the option to ADD http gateway , and selected the Twilio option.
Are there any instructions on how to complete these sections here, mainly the call back section
will this option work with whatsapp through twilio

Thank you

Or maybe it is better to use Clickatell instead of twilio to send and receive text messages to whatsapp contact?
whisch one has the easier option to setup?

any guidance will be appreciated

November 8, 2020
11:47 pm

I was reading that Diafaan works with Twilio.
I am planning to start a Twilio account because Twilio allows you to send text messages to whatsapp contacts.
Where can I find the instructions to setup Diafaan to use Twilio account?
Do you have a webpage with these instructions?


Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 678

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1149

Posts: 3929

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1502