Fonio

SIP: Common errors

Solutions for SIP URLs, static trunks, missing calls, number formats and one-way audio problems.

SIP problems can occur in several places. These include fonio, your phone system, your SBC, the firewall and your phone provider.

So first narrow down in which direction the problem occurs:

DirectionWhat you should check
Calls from your phone system to fonioOrigination URI, routing, firewall and number format
Calls from fonio to your phone systemTermination URI, reachability, firewall and possible credentials
Outbound calls to the phone networkActivation with your provider, phone number and outbound routing
Call is connected, but there is no audioRTP, firewall, NAT and SBC

Use the current values from your account

Always copy SIP URIs and other connection details directly from your fonio account. If a different value is shown there than in an older document, the value in your account applies.

The SIP connection cannot be set up

Possible causes

  • The SIP URL is wrong or incomplete.
  • Origination and termination were mixed up.
  • The phone provider credentials are incorrect.
  • The SIP URI was not copied completely.
  • The provider has not yet enabled static SIP trunks.
  • Your phone system is trying to log in via REGISTER.

Solution

First check in which direction the connection should be established.

Sending calls to fonio

Use the origination URI shown in your fonio account.

sip:vojhwtf1hn6.eu.sip.livekit.cloud

Copy the value completely and without extra spaces.

Receiving calls from fonio

Check the termination URI of your phone system or your phone provider.

If your provider requires a username and password for this endpoint, these credentials must be entered correctly in fonio.

These credentials belong to the connection with your provider. They should not be confused with a registration of your phone system with fonio.

Simpler alternative

If you don't want to set up your own SIP trunk, you can also import your existing phone number into fonio. For many businesses, this is the faster route.

The SIP trunk does not register with fonio

Cause

For direct SIP trunks, fonio uses static peer connections. There is no classic registrar and no SIP REGISTER process.

So if your phone system shows the status "not registered", this does not automatically mean that the trunk is not working.

Solution

Set up the connection as a static or IP-based peer trunk.

Depending on your phone system, this setting is called, for example:

  • Static Trunk
  • Peer Trunk
  • IP Authentication
  • Trunk without Registration
  • Registration disabled

Use the SIP URI from your fonio account as the destination.

Disable the REGISTER process if your phone system supports this.

Your system strictly requires a registrar?

Some phone systems cannot be set up without a registrar.

In this case, write to us at support@fonio.ai with the subject SIP Trunk Registrar. Also tell us the manufacturer and model of your phone system.

The INVITE does not reach the phone system

Possible causes

  • The firewall is blocking SIP signaling.
  • The SBC does not accept connections from the fonio networks.
  • The destination address is not reachable from outside.
  • NAT or port forwarding is set up incorrectly.
  • The phone provider has not enabled static SIP trunks.
  • The request is sent to the wrong termination URI.

Solution

Check your firewall and your SBC. The networks used by fonio must be reachable for the required SIP signaling and the RTP media:

143.223.88.0/21
161.115.160.0/19
153.57.128.0/18

Allow the required connections for UDP and TCP according to the configuration of your phone system.

Also check:

  • Is the termination URI publicly reachable?
  • Does any DNS name you use point to the correct IP address?
  • Are the SIP and RTP ports forwarded correctly?
  • Does your SBC allow incoming connections from the fonio networks?
  • Has your provider enabled the trunk for static peer connections?

Configure your firewall selectively

Don't open all ports to the entire internet unnecessarily. Limit the rules to the required protocols, ports and fonio networks.

How to test it

Make a test call and then check the SIP trace of your phone system or SBC.

  • If no INVITE appears there, check the firewall, DNS and routing first.
  • If an INVITE appears, check the response code of your system.

Inbound calls do not reach fonio

Possible causes

  • The origination URI is wrong.
  • The provider is still routing the call to the old destination.
  • The dialed number is not passed to the correct trunk.
  • The phone number arrives in an unexpected format.
  • The phone system is trying to use a registrar instead of a static destination.

Solution

Compare the origination URI you entered with the value in your fonio account.

Then check the routing in your phone system:

  1. Which number was called?
  2. Which route was selected for it?
  3. To which SIP URI was the INVITE sent?
  4. Which number is in the Request URI and in the To header?
  5. Which response code did fonio return?

For testing, use a single phone number and the simplest possible route. You can add further rules again once the basic call works.

Outbound calls via SIP fail

Possible causes

  • Outbound calls are not enabled with the phone provider.
  • The wrong SIP route is being used.
  • The origination URI was entered incorrectly.
  • The caller number is not allowed for outbound calls.
  • The destination number is not in international format.
  • The phone system blocks outbound calls for the trunk being used.

Solution

Check the origination URI against the details in your fonio account.

Then check with your phone provider:

  • Is the SIP trunk enabled for outbound calls?
  • May the number being used be used as the caller ID?
  • Are international destinations allowed?
  • Are the correct dialing rules active?
  • Is the destination number sent in E.164 format?

Correct:

+4930123456

Wrong:

030 123456

How to test it

First test a call to a national mobile number. Then test other destinations one at a time.

For every failed attempt, note down:

  • Date and exact time
  • Caller number
  • Destination number
  • SIP response code
  • Route used

The call is connected, but there is no audio

Possible causes

  • RTP is blocked by the firewall.
  • The SBC uses an internal instead of a public IP address.
  • NAT is not handled correctly.
  • SIP signaling and audio data take different paths that are not allowed.
  • The audio connection only works in one direction.

Solution

In addition to SIP signaling, also check the RTP traffic.

Check:

  • Which IP address is transmitted in the SDP?
  • Is this address reachable from outside?
  • Are the required RTP ports open?
  • Does the SBC rewrite the internal IP address correctly?
  • Is incoming and outgoing audio data allowed?

If the call is established but one side hears nothing, the problem is usually in the media path and not in the actual SIP login.

The phone system does not have a static IP address

Solution

You can also use a dynamic DNS hostname.

Suitable options include, for example:

  • MyFRITZ!
  • DynDNS
  • Your own DNS hostname

The hostname must always point to the current public IP address of your phone system.

Send us the hostname or your static IP address at support@fonio.ai. We will set up the voice gateway on our side for you.

How to test it

Check whether the hostname can be resolved from outside your network and points to the current public IP address.

sip.mycompany.example

If your IP address changes, the DNS record must be updated automatically.

Your own company number is shown instead of the caller's number

Cause

The original phone number is not passed on along the way to fonio.

The required feature is often called:

  • CLIP No Screening
  • Original Caller ID
  • CLI Passthrough
  • Caller ID transmission on forwarding

Solution

Enable CLIP No Screening with your phone provider or in your phone system.

Without this setting, fonio only sees the number the call was forwarded from. This is usually your own business number or the number of your phone system.

This setting is not in fonio

We cannot enable CLIP No Screening for you. The setting must be made in your phone system or by your phone provider.

How to test it

Call your business number from a different phone.

Then open the call in fonio and check which phone number is displayed.

If your business number is shown instead of the number of the test phone, the original caller ID is already lost before it reaches fonio.

Phone numbers arrive in the wrong format

For example, the phone number has no plus sign or is passed in national notation.

Possible causes

  • The phone system removes the country code.
  • Dialing rules convert international numbers into national numbers.
  • The provider uses a different number format.
  • Different SIP headers contain different numbers.

Solution

Configure your phone system so that phone numbers are sent in the international E.164 format.

Germany:

+4930123456

Austria:

+43123456789

Switzerland:

+41441234567

Check the dialing rules, transformations and normalization rules of your trunk.

Pay particular attention to:

  • Request URI
  • From header
  • To header
  • P-Asserted-Identity
  • Diversion header for forwarded calls

Tip

Define the number format centrally in your phone system. Different formats often lead to problems with contacts, forwarding and outbound calls.

Narrow down SIP problems step by step

Make a new test call and document:

  • Date and exact time
  • Caller number
  • Destination number
  • Direction of the call
  • SIP trunk used
  • First INVITE sent
  • SIP response code received
  • Time the call dropped
  • Whether audio worked in both directions

Then check:

  1. Does the INVITE reach the correct system?
  2. Is the INVITE answered?
  3. Is the call established?
  4. Does RTP data flow in both directions?
  5. Is the phone number transmitted in the correct format?

Information we need for SIP problems

Send your report to support@fonio.ai and include the following information right away if possible:

  • Email address of your fonio account
  • Name of the affected assistant
  • Date and exact time of a failed call
  • Caller number and destination number
  • Direction of the call
  • Manufacturer and model of your phone system or SBC
  • Name of your phone provider
  • SIP URI used
  • SIP response code shown
  • If possible, a SIP trace of the failed call

Depending on your system, you'll find the trace under names such as:

  • Monitoring
  • PCAP
  • Packet Capture
  • SIP Log
  • Call Trace

The trace should contain at least INVITE, REFER, response codes and timestamps.

Protect your credentials

Don't send us any passwords or complete credentials. For troubleshooting, the SIP URI, the time and a SIP trace without sensitive authentication values are usually enough.

You can find the complete checklist under How to report a technical problem.