403 4xx Client error RFC 3261
SIP 403 Forbidden
The server understood the request but refuses to fulfil it. Authenticating again will not help.
403 Forbidden is a refusal that more authentication will not fix. The server knows who you are, or has decided it does not need to, and will not allow the request. Carriers use it to enforce account rules: calls from an IP address not on the trunk's allowlist, destinations the account may not dial, a caller ID the account does not own, or an account suspended or blocked by fraud controls.
PBXs and proxies send 403 too, typically when the From user of a registration does not match the authenticated user, when an access list rejects the source, or when a security tool has banned the address. Callers hear a fast busy or an announcement, without ringing.
Because 403 is a policy decision, the useful detail is often in the reason phrase or in the provider's portal and logs rather than in the SIP headers. Note the time, Call-ID, dialled number and caller ID before you contact support.
What it looks like in a SIP trace
PBX -> Carrier : INVITE sip:+447700900123@sip.example.net SIP/2.0 (CSeq 101) Carrier -> PBX : SIP/2.0 407 Proxy Authentication Required PBX -> Carrier : ACK sip:+447700900123@sip.example.net SIP/2.0 PBX -> Carrier : INVITE sip:+447700900123@sip.example.net SIP/2.0 (CSeq 102, with Proxy-Authorization) Carrier -> PBX : SIP/2.0 403 Forbidden - International calls not enabled Via: SIP/2.0/UDP 203.0.113.10:5060;branch=z9hG4bK51c0de From: <sip:+27215550188@sip.example.net>;tag=as19f7 To: <sip:+447700900123@sip.example.net>;tag=c0ffee42 Call-ID: 6d1b3f@203.0.113.10 CSeq: 102 INVITE Reason: Q.850;cause=21;text="Call rejected" PBX -> Carrier : ACK sip:+447700900123@sip.example.net SIP/2.0
Example values only. Your headers, addresses and numbers will differ.
Common causes
- Wrong credentials after the challenge (some servers send 403 instead of another 401).
- Your IP address is not on the carrier allowlist for IP-authenticated trunks.
- Calling a destination you are not permitted to dial, such as international or premium numbers.
- The account is suspended, or fraud protection blocked the call.
- The caller ID (From or P-Asserted-Identity) is not allowed by the provider.
How to diagnose it
- Read the reason phrase and any
Reasonheader first. Providers often state the cause, such as IP not allowed, Invalid caller ID or a Q.850 code. - Note whether the 403 came straight after the first INVITE or after a successful challenge. Immediately suggests the source IP or account was refused; after authentication means the credentials worked but this call is not permitted.
- On IP-authenticated trunks, check your public IP. An ISP failover, new firewall or changed NAT rule can alter your source address unnoticed; compare the Via
receivedvalue in the response with the carrier's allowlist. - Test the same caller ID to a local number, and the same destination with another caller ID. If only one combination fails, the cause is caller ID policy or dialling permissions, not the trunk.
- Check security tools. Fail2ban, a PBX firewall or an upstream SBC may have banned a phone's or office's IP after failed logins.
- For registrations rejected with 403, check whether the account is disabled or the domain is wrong; the registration troubleshooting guide gives the order to check things.
How to fix it
- Confirm your public IP is registered with the carrier, and check for NAT changes after an ISP failover.
- Check the dial permissions and fraud limits on the account.
- Send caller ID in the format the carrier expects (E.164 or national).
- Check fail2ban or similar tools haven't blocked the IP.
Platform notes
Asterisk / FreePBX
After a 403 to an outbound registration, Asterisk stops retrying unless forbidden_retry_interval is set, so a brief carrier fault can leave the trunk unregistered until a reload; pjsip show registrations shows it as Rejected. Endpoint ACLs (acl, permit, deny) can also cause 403s.
OpenSIPS / Kamailio
Most proxy 403s come from the script. The OpenSIPS stock script replies Forbidden auth ID when the authenticated user does not match the From or To user, and Relay Forbidden for unauthenticated requests to foreign domains; Kamailio's default config has a similar Not relaying check. Trunk scripts often send 403 when check_source_address() (OpenSIPS) or allow_source_address() (Kamailio) rejects the source.
Phones and softphones
Some phones stop retrying after a 403 until rebooted, so force a fresh registration once the cause is fixed.
SIP 403 FAQ
What is the difference between 401 and 403?
401 asks for credentials and expects you to try again with them. 403 refuses the request regardless, so sending the same credentials again will not help.
Why do I get 403 only on international or premium calls?
Many providers block expensive destinations by default or once a spending or fraud limit is reached. Ask the provider to enable the destination with a sensible limit, and restrict who can dial those routes on your PBX.
Can a wrong caller ID cause 403?
Yes. Many carriers reject calls whose From or P-Asserted-Identity number is not assigned to your account or not in the expected format, such as E.164 with a plus.
Related codes
Related guides
SIP Registration Failed? Troubleshooting Checklist
Fix failed SIP registrations step by step: read 401, 403, 404, 408, 423 and 503 replies, then check DNS, ports, NAT, fail2ban bans and Asterisk PJSIP.
Protect Your PBX From Toll Fraud
Protect your PBX from toll fraud with firewall allowlists, fail2ban, strong secrets, dial plan limits, provider spend caps, CDR alerts and an incident plan.