So I opened a ticket with Twilio, and they are alleging I need to whitelist the 172.25.13.87 address, which seems odd since that is not a routable address. I asked them to confirm.
I may need to switch my itsp, if anyone has had success with ANY itsp using tls I am shopping for a good one, hopefully with some usable guide to configure the trunk.
Thanks
Update: Twilio was not much help so far, just telling me to âwhitelist the ipâsâ, even though the ones they suggest are all open still, just as they were over udp, just to port 5061. and from what I can gather they are sending some traffic to 5060 according to the pjsip traces I see.
My endpoint is configured for tls, with media encryption, so I think this is the cause of the âno matching endpointâ. as the twilio endpoint is setup for port 5061.
Endpoint: 155/155 Not in use 0 of inf
InAuth: 155-iauth/155
Aor: 155 2
Contact: 155/sip:155@192.168.1.206:50362;transport= 7bb7e00d67 NonQual nan
Endpoint: 255/255 Unavailable 0 of inf
InAuth: 255-iauth/255
Aor: 255 2
Endpoint: 355/355 Not in use 0 of inf
InAuth: 355-iauth/355
Aor: 355 2
Contact: 355/sip:355@192.168.5.11:45035;x-reg=76E24 2a18060d91 NonQual nan
Endpoint: twilio-na-us Not in use 0 of inf
OutAuth: twilio-na-us-oauth/asterisk-pbx
Aor: twilio-na-us 0
Contact: twilio-na-us/sip:voice-example.pstn.ash 89788cb830 Avail 22.558
Contact: twilio-na-us/sip:voice-example.pstn.uma d916ce4f4a Avail 407.569
Transport: 0.0.0.0-tls tls 3 96 0.0.0.0:5061
Identify: twilio-na-us-identify/twilio-na-us
Match: 54.172.60.0:5061/32
Match: 54.172.60.1:5061/32
Match: 54.172.60.2:5061/32
Match: 54.172.60.3:5061/32
Match: 54.244.51.1:5061/32
Match: 54.244.51.0:5061/32
Match: 54.244.51.2:5061/32
Objects found: 4
I hope they donât come back and tell me they donât support pjsip since their suggestions seem like a reworked chan_sip config. I may just start from scratch on this if they canât help me.
This should be, or include, the certificate that Twilio use to sign the certificates for their server. Putting Asteriskâs CA certificate here isnât going to be useful for Twilio connectivity. You include it here when you have used it to sign certificates installed in local phones.
I could try to make it simpler, but I am assuming I need all those settings (tos_audio, tos_video, etc.) for Twilio. I have asked them for their required settings but just get crickets out of them.
I donât really understand why these were needed just enabling encryption, but they were.
Once I got that sorted out after using the new pjsip config, I needed to enable media encryption on the extension endpoints and set the transport to tls with these additions: