I have googled around a lot and tried so many things. I am sure the answer is very simple, but I can’t figure it out.
We use Sipstation and are very happy with it.
We have Twillio as an outbound sip trunk for backup in case Sipstation fails and for some international calls. This works since a long time.
Now I was asked to add an inbound number to Twillio as well that could be used if Sipstation is down.
I now have a number in Twillio and their Elastic SIP Trunking Origination settings point it to my FreePBX. And I have created an inbound route for that number.
I did not change the configuration of that sip trunk as it is working fine outbound. But inbound I can not get it to work.
6[2020-11-14 14:42:29] NOTICE res_pjsip/pjsip_distributor.c: Request ‘INVITE’ from ‘<sip:+firstname.lastname@example.org>’ failed for ‘188.8.131.52:5060’ (callid: email@example.com) - No matching endpoint found
I have tried setting Twillio to sip: and sips: and the ports 5060, 5061, and 5160. Nothing worked.