Pjsip user fail

my users on phones do not register on the pjsip of the asterisk server,

[Oct 6 18:17:13] NOTICE[6245]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request ‘REGISTER’ from ‘“Operadora” sip:20010@192.168.10.173’ failed for ‘192.168.10.86:5060’ (callid: 0_725975784@192.168.10.86) - Failed to authenticate
<— Transmitting SIP response (497 bytes) to UDP:192.168.10.86:5060 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.10.86:5060;rport=5060;received=192.168.10.86;branch=z9hG4bK726469562
Call-ID: 0_725975784@192.168.10.86
From: “Operadora” sip:20010@192.168.10.173;tag=725877537
To: “Operadora” sip:20010@192.168.10.173;tag=z9hG4bK726469562
CSeq: 5 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1759771033/d15edd201665cc85b7c2366256651487”,opaque=“3ca419495b51514f”,algorithm=MD5,qop=“auth”
Server: Asterisk PBX 22.5.2
Content-Length: 0

The log doesn’t show a failure to authenticate, but rather a request to supply authentication.

The failure is in that the phone doesn’t then try to authenticate, which generally means it hasn’t been told how to do so, i.e. no credential, that it can use, have been configured in it.

Whilst it is unusual for phones not to have credentials, this could happen if the phone, was not configured at all in Asterisk (e.g. no type=endpoint named 20010, and no type=identify for 192.168,10,86, associated with a valid enpdoint).


likely a firewall rule check your router for sip alg and make sure it’s off, and make sure you have proper ports open in your router, some ISP will block port 5060

Hi, I’m going crazy,I changed the IP range of both the server and the phones to see if that was it but no, the phones’ IPs are not in the same range as the server’s IP, the server’s firewall is disabled, I don’t understand why it doesn’t register.is it from asterisk?

Run tcpdump or sngrep to see if traffic is comming from your phones

Le 07/10/2025 à 15:35, RDouro via Asterisk Community a écrit :

[RDouro] RDouro https://community.asterisk.org/u/rdouro
October 7

Hi, I’m going crazy,I changed the IP range of both the server and the
phones to see if that was it but no, the phones’ IPs are not in the
same range as the server’s IP, the server’s firewall is disabled, I
don’t understand why it doesn’t register.is it from asterisk?


Visit Topic
https://community.asterisk.org/t/pjsip-user-fail/110436/6 or reply
to this email to respond.


    In Reply To

[FrancoSmash] FrancoSmash https://community.asterisk.org/u/francosmash
October 7

likely a firewall rule check your router for sip alg and make sure
it’s off, and make sure you have proper ports open in your router,
some ISP will block port 5060

Visit Topic
https://community.asterisk.org/t/pjsip-user-fail/110436/6 or reply
to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here
<>.


Daniel

hi appears this tcpdump -i any -c5 src 192.168.2.86
tcpdump: data link type LINUX_SLL2
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v[v]… for full protocol decode
listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
16:25:33.412571 eno1 In IP SIP-T46G.localdomain.sip > srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.423291 eno1 In IP SIP-T46G.localdomain.sip > srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.444330 eno1 In IP SIP-T46G.localdomain.sip > srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.455075 eno1 In IP SIP-T46G.localdomain.sip > srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.476299 eno1 In IP SIP-T46G.localdomain.sip > srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
5 packets captured
8 packets received by filter
0 packets dropped by kernel

Which IP has asterisk ? Which interface has 192.168.2.173? Is asterisk
listening on eno1?

Le 07/10/2025 à 17:48, RDouro via Asterisk Community a écrit :

[RDouro] RDouro https://community.asterisk.org/u/rdouro
October 7

hi appears this tcpdump -i any -c5 src 192.168.2.86
tcpdump: data link type LINUX_SLL2
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v[v]… for full protocol decode
listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot
length 262144 bytes
16:25:33.412571 eno1 In IP SIP-T46G.localdomain.sip >
srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.423291 eno1 In IP SIP-T46G.localdomain.sip >
srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.444330 eno1 In IP SIP-T46G.localdomain.sip >
srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.455075 eno1 In IP SIP-T46G.localdomain.sip >
srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
16:25:33.476299 eno1 In IP SIP-T46G.localdomain.sip >
srv3.localdomain.sip: SIP: REGISTER sip:192.168.2.173:5060 SIP/2.0
5 packets captured
8 packets received by filter
0 packets dropped by kernel


Visit Topic
https://community.asterisk.org/t/pjsip-user-fail/110436/8 or reply
to this email to respond.


    In Reply To

[tootai] tootai https://community.asterisk.org/u/tootai
October 7

Run tcpdump or sngrep to see if traffic is comming from your phones Le
07/10/2025 à 15:35, RDouro via Asterisk Community a écrit : [RDouro]
RDouro Profile - RDouro - Asterisk Community October 7 Hi, I’m going
crazy,I changed the IP range of both the server and the phones to see
if that was …

Visit Topic
https://community.asterisk.org/t/pjsip-user-fail/110436/8 or reply
to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here
<>.


Daniel

ok I already fix tank you all

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.