PJSIP Trunk failing to Authenticate Outbound

Hi all,

I’m having trouble getting a PJSIP trunk on VitalPBX to successfully authenticate outbound to our SIP provider (TelOne Zimbabwe). Inbound calls work, and SIP registration is attempted, but outbound authentication consistently fails.


:test_tube: Setup Details

  • PBX: VitalPBX (latest)
  • Transport: UDP
  • SIP Domain: ims.telone.co.zw
  • SIP Server IP: 197.221.224.35
  • Trunk Username: [email protected]
  • NAT: Enabled
  • Auth Username: Same as SIP URI
  • Registration Interval: 3600s
  • Outbound Proxy: Tried both blank and sip:ims.telone.co.zw:5060

:mag: sngrep Comparison

:white_check_mark: Working REGISTER from Yeastar PBX:

  • REGISTER sent to: sip:ims.telone.co.zw:5060;transport=udp
  • Includes full Authorization: Digest ... header with realm, nonce, qop, etc.
  • Uses SIP domain in both Request URI and Route headers

:x: Failing REGISTER from VitalPBX:

  • REGISTER sent to: sip:197.221.224.35:5060
  • No Authorization header included in initial or follow-up REGISTER
  • Contact IP is public: sip:[email protected]
  • Fails on outbound auth even though credentials are correct

:wrench: What I’ve Tried

  • Verified SIP credentials and auth username
  • Changed SIP Server to domain (ims.telone.co.zw) instead of IP
  • Added outbound proxy
  • Ensured NAT and transport settings are correct
  • Compared sngrep output between Yeastar and VitalPBX

It looks like VitalPBX either:

  • Isn’t responding to the 401 Unauthorized challenge with an Authorization header, or
  • Isn’t constructing the auth digest correctly due to mismatch in realm or URI

Could you share your trunk configs? Please hide any sensitive information!

Here is SNGREP output of the registration attempt and response from provider.

I’ve experimented a bit by adding and removing the following fields and trying different combos but no luck:

Client URI sip:[email protected]:5060
Server URI : sip:197.221.224.35:5060

i have x2 providers liquid - working fine - telone failing on outbound auth

SIP Registration shows registered

Here is the working Trunk config:


Here is the problematic Trunk config for - Telone which is failing to auth on outbound:

Here is a comparison of a working - FPBX Trunk config