- Joined
- Jun 6, 2019
- Messages
- 2
- Reaction score
- 1
This is not a question but a helpful tip for those searching for solutions to Twilio MMS and outbound texting issues.
A UI issue at Twilio can make an easy setup very challenging. I had a very difficult time getting texting to work with Twilio.
I used the new automatic template. Incoming SMS worked but MMS was just a 0 byte placeholder with no image. No outbound texting at all. I triple checked everything including the Account SID and Auth token, 3cx was properly configured with SMS enabled and the DID assigned and Twilio was set up with an SMS/MMS enabled phone number, attached to a messaging service that was approved for A2P campaign.
3cx Webhook was set up at Twilio with the HTTP POST method.
I am writing this because after reading all the forum posts on these types of issues, one commenter from a post eons ago said to Disable "HTTP basic Authentication for media access" in Twilio messaging settings.
Doing so immediately fixed the MMS problem. Still no outgoing messages. So I went back to the obvious. I checked the SID and authentication token again (which i had already checked as it was the culprit in other threads).
First off, you need the correct SID- the one for the twilio account not for the messaging service or phone number. You can find this by going to "</>" on the left menu, then API Keys & Creds or from Dashboard> API Keys and Auth Tokens. This shows the Account SID and Primary Auth Token, which is what 3cx needs.
Turns out I only had half of the Auth token pasted into 3cx. This is because unlike the Account SID which has a nice Copy icon next to it, the Auth Token requires you to unhide the token w the eyeball icon then manually copy it. However the UI does not display the entire token, only the first portion of it. Which is what i copied that did not work. So you have to scroll right while selecting to properly copy the complete token.
After i pasted that in, Outbound texting worked and then i was able to revert the HHTP authentication back to Enabled for proper security and the MMS still worked too, because once 3cx had the credentials it could also access the media files. Simple error on my part, caused by a UI quirk. I hope this post helps others who may have thought they entered their keys correctly and are on to deep digging for no reason.
A UI issue at Twilio can make an easy setup very challenging. I had a very difficult time getting texting to work with Twilio.
I used the new automatic template. Incoming SMS worked but MMS was just a 0 byte placeholder with no image. No outbound texting at all. I triple checked everything including the Account SID and Auth token, 3cx was properly configured with SMS enabled and the DID assigned and Twilio was set up with an SMS/MMS enabled phone number, attached to a messaging service that was approved for A2P campaign.
3cx Webhook was set up at Twilio with the HTTP POST method.
I am writing this because after reading all the forum posts on these types of issues, one commenter from a post eons ago said to Disable "HTTP basic Authentication for media access" in Twilio messaging settings.
Doing so immediately fixed the MMS problem. Still no outgoing messages. So I went back to the obvious. I checked the SID and authentication token again (which i had already checked as it was the culprit in other threads).
First off, you need the correct SID- the one for the twilio account not for the messaging service or phone number. You can find this by going to "</>" on the left menu, then API Keys & Creds or from Dashboard> API Keys and Auth Tokens. This shows the Account SID and Primary Auth Token, which is what 3cx needs.
Turns out I only had half of the Auth token pasted into 3cx. This is because unlike the Account SID which has a nice Copy icon next to it, the Auth Token requires you to unhide the token w the eyeball icon then manually copy it. However the UI does not display the entire token, only the first portion of it. Which is what i copied that did not work. So you have to scroll right while selecting to properly copy the complete token.
After i pasted that in, Outbound texting worked and then i was able to revert the HHTP authentication back to Enabled for proper security and the MMS still worked too, because once 3cx had the credentials it could also access the media files. Simple error on my part, caused by a UI quirk. I hope this post helps others who may have thought they entered their keys correctly and are on to deep digging for no reason.