CallPal

Guides7 min read

SIP Trunk Not Working? Registration Problems and Failed Calls, Fixed in Order

Two different failures: the trunk will not connect, or it connects and every call fails. The usual cause of each, what the SIP error codes mean, and what to check first.

The CallPal SIP Trunks page in a demo workspace with a trunk that cannot connect: a card titled “Demo Carrier” can’t connect to your carrier, with two steps to check (the SIP username and password, then the server, port and transport), a Test again button, and the trunk listed below as Failed and Down.
When a trunk cannot connect, CallPal shows what to check, in order, above the trunk list.

The short answer: a SIP trunk fails in one of two ways. Either it never connects (registration fails or the test times out), which is almost always the server address, the port and transport, or the login. Or it connects but every call fails, which is almost always a permission at the carrier: outbound calling not enabled, the country not allowed, no balance, or a caller ID the carrier does not accept. Find out which of the two you have before changing anything.

This guide is written from the carrier setups we have helped customers through, mostly on Telnyx, Twilio, VoIP.ms and Flowroute. The carrier-specific steps match our own setup guides, which quote each carrier’s documentation.

First, know how your trunk authenticates

Carriers accept outbound calls from your dialer or PBX in one of three ways, and "registration problems" only applies to the first:

  • Registration. Your system logs in to the carrier with a username and password and stays registered. Telnyx, VoIP.ms and Flowroute work this way by default. A failed registration means the trunk is down.
  • Credentials without registration. Each call carries the login, but nothing stays registered. Twilio’s Elastic SIP Trunking works this way, so a Twilio trunk never "registers" at all, and that is normal.
  • IP authentication. The carrier trusts calls from an address you list with them. No login, no registration; a wrong address shows up as every call being refused.

When the trunk will not connect

Check these in order. Each one is quicker than the next, and the first two cause most failures.

  1. The server address. It must be the carrier’s SIP server, not its website or customer portal. A Telnyx trunk uses sip.telnyx.com; a Twilio trunk uses your own Termination SIP URI ending in .pstn.twilio.com; VoIP.ms uses one of its regional servers ending in .voip.ms; Flowroute uses an address ending in .sip.flowroute.com.
  2. The port and transport together. TLS normally runs on port 5061 and UDP or TCP on 5060. TLS on 5060, or plain UDP on 5061, fails without a clear error. Some carriers use other ports, so check theirs.
  3. The username format. Many carriers do not use your email as the SIP username. On VoIP.ms, for example, a sub account’s username is your account number, an underscore and the name you chose, such as 123456_callpal. Leaving out the account number is a common cause of a 403.
  4. The password. Copy it again from the carrier’s portal. SIP passwords are often different from the portal login, and a trailing space is enough to fail.
  5. The authentication type. A trunk set to register against a carrier that expects credentials without registration, or the other way round, will fail however correct the login is.

The SIP trunk settings checker compares a host, port and transport against the common carriers’ published settings, in the browser.

When the trunk is up but every call fails

A connected trunk only proves the login works. Each call then has to pass the carrier’s own rules, and these are the usual reasons it does not:

  • Outbound calling is not enabled for the connection. On Telnyx, the SIP connection must be added to an Outbound Voice Profile that allows the country you are calling; without one, Telnyx refuses every outbound call.
  • The country is not allowed. Twilio refuses a call to any country not ticked under Voice → Settings → Geo permissions, however correct the trunk is. Most carriers have a similar list, often with only your home country on by default.
  • No balance. Prepaid carriers such as VoIP.ms and Telnyx stop outbound calls at zero, and the error looks like any other refusal.
  • The caller ID is not yours. Carriers generally only let you present a number on your own account. A number from another provider, or a typo in it, gets the call refused or the caller ID replaced.
  • The number format. Send numbers in the international E.164 form (+14155550142) unless the carrier asks otherwise. VoIP.ms, for example, needs its Dialing Mode set to E164 for that.

What the SIP error codes mean

If your carrier or PBX shows the SIP response, it narrows things down fast. The meanings below are the general ones from the SIP standard, RFC 3261; carriers sometimes use a code more loosely, so read it next to the checks above.

CodeMeaningUsual cause on a trunk
401 / 407Authentication requiredNormal once per request. Repeating means a wrong username or password
403 ForbiddenUnderstood, but refusedWrong username format, outbound not enabled, country blocked, no balance, caller ID not allowed
404 Not FoundNo such user or addressWrong server or domain, or a number the carrier cannot route in that format
408 Request TimeoutNo answer in timeServer unreachable: wrong host, wrong port or transport, or a firewall
486 Busy HereBusyUsually the callee. Some hosted phone lines also send it when the caller ID or From header is not what they expect
488 Not Acceptable HereMedia not acceptableA codec or encryption mismatch, such as the carrier requiring SRTP
503 Service UnavailableTemporarily unavailableA carrier-side problem or a route that is down; try another trunk
General meanings from RFC 3261. Carriers document their own uses of each code.

Caller ID and the compliance side

In the US, calls are signed under STIR/SHAKEN by the carrier that sends them, and the level of trust depends on whether that carrier knows you and the number. With your own carrier, finishing its business verification and calling from numbers it assigned to you is what earns the highest attestation. Our BYOC SIP trunk guide covers what bringing your own carrier means for this, and the Spam Likely risk checker scores the calling habits that get numbers labelled.

The order to check things in

  1. Does the trunk connect? If not: server address, then port and transport, then username format, then password, then authentication type.
  2. Does one test call to your own mobile work? If not: outbound permission, country, balance, caller ID, number format.
  3. Do some calls work and others fail? Compare the failing numbers: a country not allowed, a number format, or one caller ID that is not on your account.
  4. Did it work yesterday? Check the balance and any recent change at the carrier before anything in your dialer.

How CallPal helps with this

CallPal runs on your own SIP trunk, so these settings are the one setup step it asks of you. The SIP Trunks page checks each trunk and, when something is wrong, shows what to fix in place: whether the trunk cannot connect, has no number to call from, or is connected while the carrier refuses its calls. For Telnyx, Twilio, VoIP.ms, Flowroute and Peoplefone, it checks the server address and port against that carrier’s own settings and lists the carrier’s steps. A call the carrier refuses ends with "Your carrier refused this call", with a link to the fix, so a rep is not left guessing whether the contact declined.

One limit, stated plainly: CallPal sees how a call ended, not always the carrier’s exact SIP code, so a carrier refusal and a person declining can look alike. It only reports a call as refused by the carrier when the pattern makes that clear, such as several calls failing instantly in a row. Step-by-step setup is in the guides for Telnyx, Twilio, VoIP.ms and Flowroute.

Frequently asked questions

Why is my SIP trunk not registering?

Usually the server address, the port and transport, or the login. Check that the host is the carrier’s SIP server rather than its website, that TLS is on 5061 and UDP or TCP on 5060 unless the carrier says otherwise, and that the username is in the carrier’s format, which is often not your email.

My SIP trunk is registered but calls fail. Why?

Registration only proves the login works. The usual causes are outbound calling not enabled for the connection, the destination country not allowed, a zero balance, or a caller ID that is not a number on your carrier account.

What does a 403 Forbidden mean on outbound calls?

The carrier understood the call and refused it. On a trunk that usually means a wrong username format, outbound calling not enabled, a blocked country, no balance or a caller ID the carrier does not accept.

Does a Twilio SIP trunk need to register?

No. Twilio’s Elastic SIP Trunking authenticates each call with credentials or by IP address and has no registration, so a Twilio trunk showing no registration is expected.

Can I use my mobile or office phone number as a SIP trunk caller ID?

Usually only if the number is on your SIP carrier account. Numbers on a mobile plan or a hosted phone system typically cannot be used. Port the number to your SIP carrier, or buy one there.

Keep reading

Start calling from your CRM today.

Sign up, connect your phone provider, and make your first call. Your own CRM, your own data.

  • All core features, up to 5 people
  • No card, nothing to cancel
  • Your CRM, your phone provider

Or write to us at [email protected].