Incoming call Request ‘INVITE’ Failed to authenticate

Hello everyone,

I am a beginner with VitalPbx 4 more used to another well-known one and I have this concern on incoming calls but outgoing no problem.

The only parameter I need to add in another well known “context=from-pstn-toheader”.

But here I am lost

[2023-02-22 11:18:25] NOTICE[20225] res_pjsip/pjsip_distributor.c: Request ‘INVITE’ from ‘“+337XXXXXXXX”;user=phone’ failed for ‘’ (callid: - Failed to authenticate


Please share your trunk config, please obfuscate your passwords.

Good morning,
Thank you for your answer, here are screenshots.
Thanks again

Two things you can try

  1. Change the identify order.
  2. Add their IP addresses to the match field

Thanks for the answer,

With OVH French operator, we identify ourselves by the username which is the phone number.

I changed the configuration, it manages to authenticate but I have the following error:

Thank you

[2023-02-23 19:50:41] SECURITY[1305] res_security_log.c: SecurityEvent=“ChallengeSent”,EventTV=“2023-02-23T19:50:41.028+0100”,Severity=“Informational”,Service=“PJSIP”,EventVersion=“1”,AccountID=“0033XXXXXXXXXX”,SessionID="00-07076-00a28aaf-52a4ba6d2@",LocalAddress=“IPV4/UDP/”,RemoteAddress=“IPV4/UDP/”,Challenge=“”

That’s not an error.

Good morning,

I just redid vitalpbx and redid the settings, here is the error:


[2023-02-25 12:12:24] NOTICE[10787] res_pjsip/pjsip_distributor.c: Request ‘INVITE’ from ‘“+33XXXXXXXX”;user=phone’ failed for ‘’ (callid: - Failed to authenticate
[2023-02-25 12:12:24] SECURITY[1585] res_security_log.c: SecurityEvent=“ChallengeResponseFailed”,EventTV=“2023-02-25T12:12:24.796+0100”,Severity=“Error”,Service=“PJSIP”,EventVersion=“1”,AccountID=“0033XXXXXXX”,SessionID=“”,LocalAddress=“IPV4/UDP/”,RemoteAddress=“IPV4/UDP/”,Challenge=“1677323544/426777f4a076b5fec8ba65e56eec0ee8”,Response=“56ebc556ce234753c410564eede451bd”,ExpectedResponse=“”


you have to add math filed.

스크린샷 2023-02-26 오전 12.12.19

Hello, norman_namkoong

Thank you for your help, but I just tried it does not work.

I try otherwise.


cheer up!

anyway test with SNGREP! more helpfull.

@PitzKey @norman_namkoong

Good morning;

Thank you for your help, after a lot of testing I went back to version 3.2 then I created in SIP with the following parameters:

:innocent:it works very well on incoming and outgoing calls.

It does not work PJSIP it bothers me, yet I use it very well with your competitor in PJSIP surely a setting.

Good day

1 Like

Hi aero37,

Good job buddy !

This doesnt help - @norman_namkoong

He went back to 3.0 to use chan_sip, i dont want to do that. Can someone post a todo on how to add this type of simple “insecure=port,invite” into 4.0 for pjsip? some simple tutorial?

Hi @Phonestream_LLC and welcome to the forums

Please create a new post describing your issue in detail

Thank you