Use your numbers with your own PBX or voice AI
A SIP trunk lets your own PBX or voice AI (for example ElevenLabs, a call center platform or Asterisk) make and receive calls on phone numbers you rent from SMSEdge. Your system connects to our SIP server with a username and password. Calls go out from your numbers, and calls to your numbers are sent to your own SIP address. You pay per answered minute from your SMSEdge balance.
Get a trunk
Your account manager sets up the trunk and puts your numbers on it. Each account has one trunk, and it can hold several numbers. When the trunk is ready, you get the username and the password. The password is shown only once, so save it.
To add or remove numbers, or to call more countries, contact your account manager.
Find your trunk
Go to AI Calls > Numbers > SIP Trunks. The trunk card shows:
| Field | Meaning |
|---|---|
| SIP server | sip.comm.com:5060, over UDP or TCP. |
| Username | The login of your trunk. |
| Countries | All the countries your trunk can call. |
| Source IPs | The addresses your system may call from, or Any. |
| Concurrent calls | How many calls can be up at the same time, inbound and outbound together. |
| New calls per second | How many new outbound calls your system can start per second. |
| Max call length | Longer calls are ended by us. |
| Calls to your numbers go to | Your inbound address, or Not set — calls are refused. |
| Caller IDs → where each can call | Each number on the trunk and the countries it can call. |
The buttons on the card: Calls, Source IPs, Inbound and New password.
Connect your system
Add a SIP trunk (sometimes called a SIP provider or an outbound gateway) in your PBX or voice AI with these settings:
- Server / address:
sip.comm.com - Port:
5060 - Transport: UDP or TCP
- Authentication: digest, with your trunk username and password
- Codecs: G.711 µ-law (PCMU), G.711 A-law (PCMA) or G.722
Your system does not register. It sends each call with the username and password.
Make a call
- Caller ID (the From number): one of the numbers on your trunk, in international format, for example
+447700900123or447700900123. - Destination: the number to call, in international format:
+,00or digits with the country code. Local formats without the country code are not accepted. - Each number can call only the countries listed next to it under Caller IDs → where each can call.
Calling your own trunk number from the same voice agent makes the agent talk to itself, and the call can run until the max call length. Test with a call to a real phone instead.
Receive calls on your numbers
Calls to the numbers on your trunk are sent to your own SIP address. Until you set one, these calls are refused.
- On the trunk card, click Inbound.
- In Host, type the host name or IPv4 address of your SIP server, for example
sip.rtc.elevenlabs.io. - Set the Port (
5060by default) and the Transport (TCP or UDP). - Click Save.
The address must be on the public internet. Private addresses and IPv6 addresses are not accepted. To stop receiving calls, click Turn off inbound.
Inbound calls come from our IP address 46.225.51.50. Allow this address in your firewall or your voice AI. Each call is sent with the dialled number in the To header and the caller in the From header, both in +E.164 format (for example +447700900123). Our SIP server does not log in to your system: allow the IP address instead.
Source IPs
By default, your trunk accepts calls from any IP address with the right password. To accept calls only from your own servers:
- Click Source IPs.
- Type the IP addresses or ranges, separated by commas, for example
203.0.113.7, 198.51.100.0/24. You can add up to 20. - Click Save.
Leave the field empty to accept calls from any IP address again. Do not set Source IPs for a cloud voice AI whose addresses can change.
Change the password
Click New password and confirm. You get a new password, shown once. The old password stops working at once, so update your system with the new one right away, or its calls are refused.
Costs
- Outbound calls are billed per answered minute at our voice rate for the destination country, from the number you call from.
- Inbound calls are billed per answered minute at our inbound rate.
- Calls that are not answered are free.
See every call with its cost on AI Calls > Calls. Click SIP trunk to show only the trunk calls, or Calls on the trunk card. Each call shows its direction (in or out), the other number, the result and the cost. Click a row to see both numbers.
Trunk status
| Status | Meaning |
|---|---|
| Active | The trunk makes and receives calls. |
| Suspended — top up your balance | Your balance reached zero. New calls are refused in both directions. After you add funds, the trunk is active again within about 5 minutes. |
| Suspended — destination without a rate | A call went to a destination we have no rate for. Contact support. |
| Suspended by support | Contact support. |
Troubleshooting
When a call fails, your system shows the SIP response:
| Response | What to check |
|---|---|
| 401 / 407, again and again | The username or password is wrong, or the trunk is suspended. A first 407 is normal: your system answers it with the password. |
| 403 Source Not Allowed | Your system calls from an IP address that is not in Source IPs. |
| 403 Forbidden | The caller ID is not a number on your trunk, or the number cannot call that destination. Check the number formats and the countries next to the number. |
| 486 Channel Limit Reached | All the concurrent calls of the trunk are in use. Wait for a call to end, or ask your account manager for more. |
| 503 Rate Limited | Your system starts calls faster than the new calls per second limit. Space the calls out. |
More than 10 failed logins from one IP address block that address for 10 minutes. More than 20 failed logins for a username in 15 minutes lock it for 15 minutes, except from IP addresses that logged in with it before.
No inbound calls? Check that an inbound address is set, that 46.225.51.50 is allowed on your side, and that the transport (TCP or UDP) matches your server.
Need more help? Contact support.