SIP trunk
Connect your own SIP carrier or PBX to place and receive calls through Fonema agents instead of using Fonema-managed phone numbers.
SIP trunk is available when your account's partner has a SIP domain configured. If you do not see SIP trunk under New telephone, contact your Fonema administrator.
Outbound calls (your carrier)
Use this when Fonema should place outbound calls through your SIP provider.
1) Add a SIP number
- Open Telephones in the dashboard.
- Click + New telephone.
- Select SIP trunk.
- Fill in your trunk details and click Add.

2) Outbound trunk fields
| Field | Required | Description |
|---|---|---|
| Caller ID number | Yes | Your DID in E.164 format (for example, +15551234567). Used as the outbound caller ID. |
| Name | No | Friendly label shown in the dashboard. |
| Trunk host | Yes | SIP hostname or IP of your carrier (for example, trunk.customer.com). |
| Port | Yes | SIP port. Default is 5060. |
| Transport | No | udp, tcp, or tls. Default is udp. |
| From domain | Yes | SIP domain sent in the From header (usually your carrier domain). |
| Auth username | Conditional | Required if you set a password, or if the trunk requires registration. |
| Auth password | Conditional | Required if the trunk requires registration. |
| Trunk requires registration | No | Enable when your carrier only accepts calls after a SIP REGISTER with the credentials above. |
3) Assign the number to an agent
- Open the agent profile.
- Go to Instructions → Edit agent.
- Open the Media tab.
- Under Telephone for outgoing calls, select your SIP number.
- Click Update.

If this is your company's first phone number, Fonema automatically assigns it to agents that do not have an outbound number yet.
Inbound calls (to your agents)
Use this when your carrier or PBX should forward inbound calls to a Fonema agent over SIP.
1) Enable SIP inbound
- Open Telephones.
- In the SIP inbound panel at the top, click Enable SIP inbound.
- Copy and store the credentials shown in the dialog:
- SIP username
- Password (shown only once)
- SIP dial target (example format:
4829103746@sip.example.com)
The password is displayed only once. Save it securely before closing the dialog. Fonema stores only a one-way hash and cannot show the password again.
2) Route calls to an agent
Each agent has a unique SIP dial target in the format:
<agentNumber>@<sip-domain>
Find it in the agent profile under the Media tab → Telephone for incoming calls → SIP dial target.
Configure your PBX or carrier to forward the customer's DID to that address and authenticate with the SIP inbound credential from step 1.
3) Rotate credentials
If you need a new password:
- Open Telephones.
- In the SIP inbound panel, click Rotate credential.
- Confirm the action and update your PBX with the new password immediately.
Rotating invalidates the current password. Inbound calls fail until your PBX is updated.
Example PBX configuration
Typical setup on your side:
- Outbound: Fonema sends calls to your trunk host using the credentials you provided when adding the SIP number.
- Inbound: Your PBX registers or authenticates to Fonema's SIP domain and forwards DIDs to
<agentNumber>@<sip-domain>.
Exact steps depend on your carrier (Twilio Elastic SIP, Asterisk, FreePBX, etc.). Share the SIP dial target and inbound credentials with whoever manages your telephony.
Troubleshooting
| Issue | What to check |
|---|---|
| SIP trunk option is missing | Your partner may not have a SIP domain configured. |
| Outbound calls fail | Verify trunk host, port, transport, from domain, and auth credentials. If your carrier requires registration, enable Trunk requires registration. |
| Inbound calls do not reach the agent | Confirm the PBX forwards to the correct <agentNumber>@<sip-domain> and uses the current SIP inbound username and password. |
| Calls fail after rotating credentials | Update the password on your PBX with the new value from the rotation dialog. |