SMS Gateway - MessageMedia
The MessageMedia SMS Gateway delivers SMS messages internationally.
Incoming Messages/Replies
You can get incoming messages/replies to your MessageMedia number into the fmSMS file in 2 ways:
- Manually Download Incoming Messages
- Use Webhooks to have MessageMedia 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 MessageMedia as they are received.
Manual Download Incoming Messages
You can download incoming messages manually via the Account Details screen. To check and download any new messages click the Get Incoming Messages button:
Any incoming messages to your MessageMedia number that have not been previously downloaded will then be downloaded. You could also setup a FileMaker Server script schedule to have this run on a scheduled basis (e.g.every hour) to save you from having to manually download/check for new messages.
MessageMedia Webhooks Setup
To receive incoming SMS messages to your MessageMedia 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 MessageMedia account settings as follows:
- login to your MessageMedia 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 POST
- enter the URL in the URL field
- in the Content section add parameters for all the MO options. Use the MessageMedia 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 "destinationAddress"
- click Add to save your Webhook