Fonio

3CX: Set up a SIP connection

Connect your 3CX phone system to fonio via a generic, IP-based SIP trunk.

This guide shows you how to forward calls from your 3CX phone system to your fonio assistant.

You can find the detailed guide with additional settings and error messages here:

Open PDF: All 3CX settings and troubleshooting

Please note

3CX offers many settings on the hosting, network and provider side. We are happy to help you with the setup and can check whether calls reach fonio. However, we have no direct access to the configuration of your 3CX system or your phone provider.

1

Create a SIP trunk in 3CX

Open the admin interface of your 3CX system and go to Trunks & Chat.

Click + Trunk and choose:

Generic SIP Trunk (IP Based)

Requirement

The Generic SIP Trunk (IP Based) option is only available on supported, hosted 3CX systems. If you don't see it, please contact your 3CX provider.

2

Configure the trunk

Define the basic settings:

  • Give the trunk a unique name, for example fonio Assistant.
  • Enter a free internal number under which fonio should be reachable.
  • Set the Registrar to vojhwtf1hn6.eu.sip.livekit.cloud.

No classic registration

The field in 3CX is called Registrar, but the trunk is set up as an IP-based SIP trunk. No classic credentials with username and password are required.

3

Set the transport protocol to TCP

Open the transport settings of the trunk and enable only:

TCP

Before saving, check that no other transport protocol is selected for this trunk.

4

Pass on the original caller number

This step is optional, but useful in most cases.

Without additional configuration, fonio may only receive the number of your 3CX system instead of the actual caller number.

So set these two fields in the SIP trunk to OriginatorCallerID:

  • From: Display-Name
  • Remote-Party-ID

This setting is not active by default in 3CX.

Why this matters

With the original caller number, your assistant can recognize known contacts, prepare callbacks and use the correct number in integrations.

5

Create a SIP number in fonio

In fonio, open:

Phone Numbers → Add Number → Create SIP Number

Use the same internal number you entered in the 3CX trunk earlier.

If the number is already taken, choose another free number and then update it in 3CX as well.

Then assign the SIP number to the desired assistant.

6

Create an outbound rule in 3CX

Create an outbound rule that defines when 3CX should use the fonio trunk.

For example, you can use this prefix:

999

Configure the rule so that:

  • Calls with the prefix 999 are detected.
  • The fonio trunk is selected as the route.
  • The three digits of the prefix are removed before sending.

Mind the order

Place the fonio rule above other outbound rules that could also apply. Otherwise 3CX may use a different route.

7

Use fonio as a destination

After the setup, you can select the SIP number as a destination within your 3CX system.

Typical use cases are:

  • Destination when absent
  • Destination when not answered
  • Destination outside business hours
  • Overflow destination of a ring group
  • Direct forwarding to the assistant

Define in 3CX under which conditions calls should be handed over to fonio.

8

Test the connection

After the setup, make a real test call.

Check the following:

  • Is the call sent via the fonio trunk?
  • Does the right assistant answer?
  • Is the actual caller number displayed?
  • Does the audio work in both directions?
  • Does the call appear in the fonio call history?
  • Does the rule apply when absent or not answered?

The call doesn't reach fonio

Check these points:

  • Is the trunk created as a Generic SIP Trunk (IP Based)?
  • Is the registrar entered exactly?
  • Is only TCP enabled?
  • Do the internal numbers in 3CX and fonio match?
  • Is the outbound rule placed above other matching rules?
  • Is the prefix removed before sending?
  • Is the SIP number assigned to an assistant?

Also check the 3CX logs to see whether the call was sent via the correct trunk.

The wrong caller number is displayed

Check whether these two fields are set to OriginatorCallerID:

  • From: Display-Name
  • Remote-Party-ID

If the number of your phone system still appears, check whether your phone provider passes the original caller ID on to 3CX.

If you need help

Write to us at support@fonio.ai and include the following details right away:

  • Email address of your fonio account
  • Name of the assistant
  • Internal SIP number used
  • Date and exact time of a test call
  • Caller number and destination number
  • Screenshot of the trunk settings
  • Screenshot of the outbound rule
  • SIP response code or 3CX log, if available

Protect your credentials

Remove passwords and other confidential credentials from screenshots and logs.