SMS Connector MMS messages from Twilio not working

I installed the new SMS Connector module and got it working with Twilio for inbound/outbound SMS and outbound MMS.
When I try to do inbound MMS, i get some weird file that shows up instead of the picture.
It shows as an xml file in UCP, my Sangoma Talk app and my Desktop app, and is names something like 376media.
This is the file contents:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidArgument</Code><Message>Unsupported Authorization Type</Message><ArgumentName>Authorization</ArgumentName><ArgumentValue>Basic (Auth string)==</ArgumentValue><RequestId>04RA8S910J2EYEGV</RequestId><HostId>0r2Q/0fPPRnxbm2IcsH0YMWhbE0CeFin9o3/RU4j2gMca818yqae8aX1rLvGyHGke9nHTtGrGXM=</ HostId></ Error>

When I look at my /var/log/asterisk/freepbx.log file, this is the entry there:

[2024-11-08 08:01:30] [freepbx.INFO]: Webhook (twilio) in: Array (     [ToCountry] => US     [MediaContentType0] => image/jpeg     [ToState] => VA     [SmsMessageSid] => MM00980f85ecbaafe75e717c721ae10221     [NumMedia] => 1     [ToCity] => RICHMOND     [FromZip] => 23294     [SmsSid] => MM00980f85ecbaafe75e717c721ae10221     [FromState] => VA     [SmsStatus] => received     [FromCity] => RICHMOND     [Body] =>      [FromCountry] => US     [To] => +18042019392     [MessagingServiceSid] => MG1b2ce4490663db8794e57211e9fa88db     [ToZip] => 23222     [AddOns] => {"status":"successful","message":null,"code":null,"results":{}}     [NumSegments] => 1     [MessageSid] => MM00980f85ecbaafe75e717c721ae10221     [AccountSid] => (TWILIO ACCOUNT)     [From] => +18043999264     [MediaUrl0] => https://api.twilio.com/2010-04-01/Accounts/(TWILIO ACCOUNT)/Messages/MM00980f85ecbaafe75e717c721ae10221/Media/ME0101305d81d3b94c2fdcf3dc468e1c8f     [ApiVersion] => 2010-04-01 )  [] []

Twilio says the picture was delivered and I am able to see the pic sent from the link in the webhook message.
I have authentication for MMS turned off in Twilio.

Any ideas on what I may be missing for the SMS to show me a xml file rather than the mms message?

Found the answer, turns out HTTP Basic Authentication for media access setting in Twilio under Messaging > Settings > General does need to be enabled for MMS inbound to work. Thank you @billsimon for the answer!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.