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
Twilio Setup in Diafaan
sp_NewPost Add Reply sp_NewTopic Add Topic
November 10, 2020
1:40 pm
Henk Helmantel
Admin
Forum Posts: 1510
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello,

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 https://www.twilio.com/console/project/settings , 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 123.123.123.123 and 8080, the public URL is http://123.123.123.123:8080
5. Buy a mobile phone number on https://www.twilio.com/console/phone-numbers/incoming
6. Select the Twilio number on https://www.twilio.com/console/phone-numbers/incoming 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 https://www.twilio.com/console/sms/whatsapp/learn
10. Add you public URL to 'WHEN A MESSAGE COMES IN' on https://www.twilio.com/console/sms/whatsapp/sandbox
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
rhaber123
Guest
Guests

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
rhaber123
Guest
Guests

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?

THANK YOU

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 680

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1155

Posts: 3945

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1510