Migration of trunk to PJSIP

So I currently have a trunk. It is to a provider where I have a direct connection my IP is something like 10.7.3.14/30. The provider is using IP 192.168.145.39. I have a route setup and that works or of course the current Chan_SIP trunk wouldn’t work.

My current Chan_SIP settings are. (modified username and password obviously).

username=771234789
type=peer
t38pt_udptl=yes
secret=12345678
qualify=yes
nat=no
Insecure=invite,port
host=192.168.145.39
dtmfmode=rfc2833
disallow=all
context=from-pstn
canreinvite=no
allow=alaw,ulaw

When I try to convert this to PJSIP I can’t get inbound calls. Any recommendations? Is there anyone available to help me with this including for pay?

Thanks.

You mentioned a route setup. What is it? Firewall? Pjsip uses a different port, if I recall correctly…

Two channel drivers cannot bind to the same address, but the default is for chan_pjsip to be bound to the standard (5060) port and chan_sip to use an alternative.

With this type of setup, the provider configures their equipment to send calls to a specific IP address and port. In your case, it’s probably 10.7.3.14:5060. So, you would need to change Bind Port for chan_sip from 5060 to something else and then change Port to Listen On for pjsip to 5060.

Of course, you must be careful not to break connections from local extensions. If they are using a different transport, they can use different ports if needed.

Sorry, ended up traveling. PJSIP is bound to 5060, ChanSIP was changed a long time ago to 5160.

What I mean by a route is within Linux of my FreePBX box I have a route for 192.168.45.0/24 to go through 10.7.13.14 (with the correct DG defined obviously).