I’ve a problem with only incoming call with a french trunk provider. I’m on Freepbx 13 Distro with Asterisk 13.
First define some variables that i will use :
PROVIDER_IP = Registrar IP PROVIDER_DOMAIN = Registar Domain
With “Allow SIP Guests” on “YES”, I’ve this message in the console for incoming calls :
Executing [s@from-sip-external:6] Log(“SIP/37.97.64.6-0000000b”, “WARNING,“Rejecting unknown SIP connection from PROVIDER_IP””) in new stack
Ext. s: “Rejecting unknown SIP connection from PROVIDER_IP”
If I turn “Allow Anonymous Inbound SIP Calls” on “YES”, the incoming calls are GOOD.
But for some security reason, I don’t want to turn this to “YES”.
Here is my trunk definition for incoming section :
Please post some details:
Trunking provider?
Using registration or IP authentication?
Using pjsip or chan_sip?
Do all incoming calls fail, or only some?
On a failing call, does the reported IP address belong to the provider?
Trunking provider? Can’t reaveale it
Using registration or IP authentication? registration
Using pjsip or chan_sip? chan_sip
Do all incoming calls fail, or only some? all failed
On a failing call, does the reported IP address belong to the provider? yep
Or, you can use pjsip. If the provider lists all his hosts in his DNS, it’s automatic. Otherwise, you can put a list of addresses or networks in the Match parameter.
There is no problem with pjsip at one end and chan_sip on the other. Unless your provider is quite small, he likely isn’t even using Asterisk.
If you are still in the evaluation / testing stages, I recommend that you give pjsip a try. If it works right away or with reasonable effort, stick with it. For handling calls coming from addresses other than the one to which you registered, IMO pjsip does a much better job.