I am wanting to migrate over to FreePBX 16 from older Freepbx and I can’t seem to translate correctly the SIP Trunk settings to PJSIP Trunk. I have two Trunks. The Trunk 1 is a cloud provider (i register via internet). The Trunk 2 is from Vodafone and they terminate the SIP trunk in a specific router. The router interface is in the same subnet as the pbx LAN. I have tried many settings and i can make outgoing calls through both of them but not incoming.
For now, i have put the old PBX online again, so they can have telephone.
Trunk 1
Outgoing
Trunk Name: Ephone
Peer Details:
username=myusername
type=peer
transport=tcp
secret=mypassword
qualify=yes
port=5060
nat=force_rport,comedia
insecure=port,invite
host=sip.ephone.gr
fromuser=myusername
encryption=no
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=alaw,gsm
Incoming:
Register String:
myusername:[email protected]:5060
Trunk 2
Outgoing
Trunk Name: Vodafone
Peer Details:
context=from-trunk
fromuser=myDID
username=vodafone
fromdomain=isprouterip
host=isprouterip
secret=mypassword
srvlookup=yes
insecure=port,invite
canreinvite=no
dtmfmode=rfc2833
nat=no
type=peer
qualify=no
outboundproxy=isprouterip
disallow=all
allow=alaw
usereqphone=yes
defaultexpiry=110
port=5060
Incoming:
Register String: vodafone@isprouterip:mypassword!@isprouterip/myDID