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-ventasworks 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
- Open PBX (SIP) and select Connect trunk.
- Enter a name and the number or identifier.
- Under inbound, set how Klatt recognizes your PBX (see How Klatt recognizes your PBX).
- Optional: enter the address of your SBC or carrier to turn on outbound calls (see Outbound calls).
- Optional: list the headers your IVR sends (see Caller context headers).
- Save. Klatt shows the settings your PBX needs.
+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.
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.
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 pastedsip: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 exampleX-Customer-Id.
- A name must start with
X-and use only letters, numbers and hyphens, up to 64 characters afterX-. 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-LinkandX-Klatt-Caller, plus aDiversionheader.