I’m running FreePBX 16 behind a firewall with Twilio as my provider. 10% of incoming calls are failing with a 401 Unauthorized in Twilio logs.
Often when people hit this issue and try again right away, they get through. Other times, they have to try a third time.
I know that over the years this has been an issue with Twilio that other people have raised, but I wonder if anybody has any modern tips for how to eliminate this issue. The last info I can find is from 2020 and I haven’t found any solution.
It likely means you do not have all of their IPs listed in your Match field. The ones you have listed are matched to the trunk and allowed in, and the ones that are not listed are challenged for auth.
I swear I checked that, but I bet I accidentally found a successful Termination rather than Origination call via the same IP address as one of the failed origination IP addresses.
I just looked through two pages of logs and it appears that none of the calls from their Oregon gateway are getting through.
Now I just need to figure out if it is my network firewall or the Freepbx firewall.