SMS Gateway - DirectSMS
The directSMS SMS Gateway delivers SMS messages internationally.
Incoming Messages/Replies
You can get incoming messages/replies to your directSMS number into the fmSMS file in several ways:
- Use Webhooks to have directSMS push these automatically to fmSMS using the supplied PHP files
- Use Claris Connect Webhooks
- Use Otto Webhooks
You can get incoming messages/replies to your directSMS number into the fmSMS file via the use of Webhooks to have directSMS push these automatically to fmSMS. Using Webhooks is the preferred method as it saves you from having to poll/check for any new messages - with Webhooks new messages are forward to fmSMS automatically by directSMS as they are received.
directSMS Webhooks Setup
To receive incoming SMS messages to your directSMS number, including replies to previously sent messages, you will need to use the supplied dedicatedNumberReply.php webhook file to act as the webhook receiver. See our Webhooks guide for what you need to do host the dedicatedNumberReply.php file on your chosen web server. Once you have the publicly accessible URL for this file you can enter this into your directSMS account settings as follows:
- login to your directSMS account via their website
- click on Configuration in the left hand menu then select Webhooks
- Click on the New Webhook button
- in the Event menu select SMS and set the HTTP method to GET
- enter the URL in the URL field
- in the Content section add parameters for all the MO options. Use the directSMS dedicatedNumberReply.php file as a guide to how to name the parameter keys. For example the Destination Address ($destinationAddress) parameter should have the key name set as "inbound_number"
- click Add to save your Webhook
You can get further details on setting up the parameters on the directSMS website here.
directSMS Claris Connect Webhooks Setup
Please visit the Webhooks using Claris Connect guide for instructions on setting up Claris Connect Webhooks for your directSMS number.
directSMS Otto Webhooks Setup
Please visit the Webhooks using Otto guide for instructions on setting up Otto Webhooks for your directSMS number.