Skip to main content
Use this guide when your calls come from a PBX, a session border controller (SBC) or a contact center platform. It is the generic SIP guide: the steps are the same for any platform that can send SIP calls to a SIP address. If you only need a phone number for a small business, import a number from Twilio instead. Trunks live in PBX (SIP), in the More menu of the console. They are not listed under Phone numbers.

Before you start

Ask your telephony administrator for:
  • the number or identifier your PBX sends to Klatt. It does not have to be a phone number: a name such as ia-ventas works when your call routing sends calls to a SIP address;
  • the public IP addresses of your SBC, or a SIP username and password;
  • if you also want Klatt to call out or transfer to phone numbers: the address, transport and credentials of your SBC or carrier.

Connect a trunk

  1. Open PBX (SIP) and select Connect trunk.
  2. Enter a name and the number or identifier.
  3. Under inbound, set how Klatt recognizes your PBX (see How Klatt recognizes your PBX).
  4. Optional: enter the address of your SBC or carrier to turn on outbound calls (see Outbound calls).
  5. Optional: list the headers your IVR sends (see Caller context headers).
  6. Save. Klatt shows the settings your PBX needs.
The destination country is taken from the number’s prefix, for example +34 gives Spain. An identifier that is not a number uses Spain.

Send calls to Klatt

After you save, and any time later on the trunk, Klatt shows the settings to enter in your PBX or operator:
  • SIP host: Klatt’s SIP host.
  • SIP URI: sip:<number>@<host>:5060;transport=tcp, where <number> is the identifier you entered. Each value has a copy button.
Send calls for that identifier to the URI over TCP. Klatt does not publish a list of IP addresses.

How Klatt recognizes your PBX

Inbound protection is required. A trunk with neither option is refused, so that only your PBX can call your assistant. You can use both:
  • By IP of your SBC. Add the public IP addresses or ranges your SBC calls from. Private addresses are refused, and a range cannot be wider than /16 for IPv4 or /32 for IPv6. Use this if your SBC has fixed IP addresses.
  • By username and password (SIP digest). Your PBX must send the credentials when it calls. Enter both or neither.
You can change the protection later, but you cannot remove all of it. Under the protection, Audio encryption is a single setting for the trunk: allowed, required or off, applied to both inbound and outbound calls. The default is allowed.

Accept Klatt by host name

If your PBX allows calls only from known IP addresses, such as a firewall or an SBC access list, note that Klatt does not offer static IP addresses on its current plan. Allow Klatt by the SIP host name instead, or use credentials, and let your network team know that the addresses behind the host name can change. If your network requires fixed Klatt IP addresses, SIP from your own platform is not a fit today: import a number from Twilio and forward calls to it.

Outbound calls

Outbound is optional. It lets Klatt place the test call and transfer to phone numbers. Transfers to a SIP address do not need it.
  • Address: the host of your SBC or carrier, with an optional port, for example pbx.example.com:5080. A pasted sip: is removed. Private addresses and Klatt’s own hosts are refused.
  • Transport: automatic, UDP, TCP or TLS.
  • Username and password: if your SBC or carrier requires them. Enter both or neither. They are separate from the inbound protection.

Test call

On a trunk with outbound turned on, Make a test call dials your company’s test phone through the trunk. The call hangs up as soon as it is answered and plays nothing. Set the test phone in your settings first. It must be a full number with its country code, and in the same country as the trunk’s number. Each organization can make 5 test calls in 15 minutes. The result tells you what to fix: There is no automatic test for inbound calls. The trunk shows when the last call arrived, so you can see that your PBX reaches Klatt.

Caller context headers

Your IVR or ACD can pass data to the assistant, such as a customer ID or a queue, in SIP headers. In the trunk, list the header names you want Klatt to read, for example X-Customer-Id.
  • A name must start with X- and use only letters, numbers and hyphens, up to 64 characters after X-. You can list up to 10, without repeats.
  • Klatt reads only the listed headers. Other headers are ignored.
  • Each value is cut to 256 characters, and control characters are removed.
  • The assistant receives the values as caller data in a separate block of its prompt, marked as information and not as instructions. Header values also reach legacy custom tools as call context; console webhooks do not offer them yet. Do not send anything you would not want the assistant to read.
  • Values are not written to logs. They are stored only with the conversation.

Transfers back to your PBX

The assistant can transfer a caller to your team. To a SIP address, it can use either method:
  • With announcement (default): Klatt calls your PBX, and the assistant stays on the line until someone answers. This needs no special setup beyond accepting calls from Klatt.
  • SIP transfer (REFER): your PBX takes the call over the same trunk the call arrived on, and Klatt leaves. It is available only on calls that arrived through a SIP trunk. Your PBX must allow it: look for the option to permit SIP transfers (REFER) on the trunk. The transfer includes the headers X-Klatt-Conversation, X-Klatt-Link and X-Klatt-Caller, plus a Diversion header.
If your PBX refuses the REFER, the caller stays with the assistant. When the transfer succeeds, Klatt cannot tell whether a person answered, only that your PBX took the call. See Connect a phone number for ringing your team before the assistant answers.

Not covered

Platform-specific steps, such as screens in a given PBX or contact center product, are not part of this guide. If a setting is not clear from your platform’s documentation, ask your telephony administrator, and do not send credentials in support messages.