Why does my SIP trunk sometimes not receive calls?

The most common cause is when SIP trunk providers send incoming calls from multiple IP addresses.  Depending on how they configure things on their end it might only happen intermittently.

The way to see this is to monitor incoming calls from a console.

asterisk -vvvr


When an inbound call comes in with this issue you will see an error message to the effect "A call was received from an unknown IP address".  This is due to the host= statement in the trunk configuration not matching the IP address of the incoming call.  If the host= statement uses a domain name, resolved IP address may have changed since the last time the trunk registered.

The solution is to create a separate trunk for each possible IP address that inbound calls come in on.  Each configured trunk should have a different host= setting.  There should still only be one trunk with a registration string for outbound calls.

 An alternative solution, available since Asterisk v12, is to configure a PJSIP trunk using the domain name.  PJSIP trunks resolve all available IP addresses associated with a domain name.

  • sip, trunk, troubleshoot, call, busy

Articles connexes

I have a bunch of anonymous call attempts showing up in my call logs

I have a bunch of calls that look something like this in the call logs. 2011-11-18...

Do I need to do anything on the server/linux side of things?

You should not have to do anything on the server/linux side unless you want to tweak things or...

How hard is it to upgrade my server?

Upgrading resources such as memory, processing, hard drive space is instantaneous and does not...

Do you automatically upgrade our software when a newer version comes out?

Software upgrades are not automatic because they usually require service interruption.  We can...

Do you provided automatic backups.

Our premium plan includes automatic online backups.  All other plans can be backed up manually...