Unable to retrieve PJSIP transport 'udp,tcp,ws,wss'

Hi,

I have some local extensions and outbound calling working with a Twilio SIP Trunk, I also configured the inbound route but I always get this error when calling in.

[2018-07-14 11:45:59] ERROR[12401]: res_pjsip.c:3115 ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport 'udp,tcp,ws,wss’

Anybody has a clue?

I can post logs if anyone has time to look into this.

Thanks

Do you have allow guests enabled for pjsip and this in pjsip.endpoint.conf?

[anonymous]
type=endpoint
context=from-sip-external
allow=all
transport=udp,tcp,ws,wss

I do have this ;

[anonymous]
type=endpoint
context=from-sip-external
allow=all
transport=udp,tcp,ws,wss

But I’m not sure how to set Allow Guests…is it here?
Screenshot%20from%202018-07-14%2013-55-12

This is seems to be related, am I right?

https://issues.freepbx.org/browse/FREEPBX-17841

Yes, that’s a bug report on the invalid transport.

However, do you need allow guests enabled at all?

I’m not 100% sure but I think so.

The Twilio info about trunking is not too detailed…

Just to not mislead anyone reading this.

Twilio was connecting on port 5060, which is assigned to pjsip and my trunk was a chan_sip trunk. So I have some cleanup to do and need to understand the stuff a bit better before continuing.

I did swap the ports for chan_sip and pjsip in SIP Settings and was able to get some incoming calls.

So, like I said, I’ll go read some more stuff and report back.

Thanks for all the answers!

I’m more or less in the same boat. Twilio. First trunk was a chan_sip, but now I want to try PJSIP.

The documentation of Asterisk Sip Settings stops before the Chan or PJ tabs…

Do we have a resource where users share provider config info and experience. Flowroute has even less details now than Twilio for freepbx. Configurator? I could not find it. Next to this forum which is best for freePBX?

I hope you report back soon!

What I ended up doing is this. By default FreePBX uses port 5060 for pjsip and 5160 for chan_sip so I went in the settings and switched the ports to make chan_sip use 5060.

I then configured my Twilio trunk and everything went well.

I used those Twilio YouTube clips;



The tricky part to not forget is that Twilio uses multiple IPs and you must configure the trunk for each IPs. IPs are listed in your Twilio account. https://www.twilio.com/console/sip-trunking/your-network

I found this guide: https://www.twilio.com/docs/documents/53/TwilioElasticSIPTrunking-FreePBX-Configuration-Guide-Version1-0-FINAL-06122018.pdf
But it says pjsip in the guide, so maybe Twilio support pjsip also…maybe try to create your trunk before switching the ports.

I hope this helps! :wink:

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