Extension not register

When I try to register my WebRTC extension on the secondary Asterisk server, the registration fails. However, the same settings with the same extension successfully register on the my primary Asterisk server. In this case, I have a SIP trunk with 10 numbers. I configured one of them to be forwarded to my secondary server after the traffic is initially received by the primary server.

bellow is the log when I try to register sip via wss, showed in CLI.


<--- Received SIP request (457 bytes) from WSS:172.20.11.254:23247 --->
REGISTER sip:172.20.10.136 SIP/2.0
Via: SIP/2.0/WSS dcevi1kno7hm.invalid;branch=z9hG4bK2321190
To: <sip:6001@172.20.10.136>
From: <sip:6001@172.20.10.136>;tag=8r1mpq0720
CSeq: 2 REGISTER
Call-ID: pua7f97e5tsb5qdvmsrj
Max-Forwards: 70
Contact: <sip:6vnlsec2@dcevi1kno7hm.invalid;transport=ws>;expires=600
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound, path, gruu
User-Agent: SIP.js/0.21.1
Content-Length: 0


<--- Transmitting SIP response (465 bytes) to WSS:172.20.11.254:23247 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS dcevi1kno7hm.invalid;rport=23247;received=172.20.11.254;branch=z9hG4bK2321190
Call-ID: pua7f97e5tsb5qdvmsrj
From: <sip:6001@172.20.10.136>;tag=8r1mpq0720
To: <sip:6001@172.20.10.136>;tag=z9hG4bK2321190
CSeq: 2 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1763436584/1fd5b6bb996dbfd44e143a3a9e86f95c",opaque="3856390b485e7356",algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.16.0
Content-Length:  0


<--- Received SIP request (724 bytes) from WSS:172.20.11.254:23247 --->
REGISTER sip:172.20.10.136 SIP/2.0
Via: SIP/2.0/WSS dcevi1kno7hm.invalid;branch=z9hG4bK161599
To: <sip:6001@172.20.10.136>
From: <sip:6001@172.20.10.136>;tag=8r1mpq0720
CSeq: 3 REGISTER
Call-ID: pua7f97e5tsb5qdvmsrj
Max-Forwards: 70
Authorization: Digest algorithm=MD5, username="6001", realm="asterisk", nonce="1763436584/1fd5b6bb996dbfd44e143a3a9e86f95c", uri="sip:172.20.10.136", response="f83e7b5a72aa86dd1828fc5eb5b097d4", opaque="3856390b485e7356", qop=auth, cnonce="8aot6hvsm3li", nc=00000001
Contact: <sip:6vnlsec2@dcevi1kno7hm.invalid;transport=ws>;expires=600
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound, path, gruu
User-Agent: SIP.js/0.21.1
Content-Length: 0


[Nov 18 08:59:44] NOTICE[6920]: res_pjsip/pjsip_distributor.c:688 log_failed_request: Request 'REGISTER' from '<sip:6001@172.20.10.136>' failed for '172.20.11.254:23247' (callid: pua7f97e5tsb5qdvmsrj) - Failed to authenticate
<--- Transmitting SIP response (463 bytes) to WSS:172.20.11.254:23247 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS dcevi1kno7hm.invalid;rport=23247;received=172.20.11.254;branch=z9hG4bK161599
Call-ID: pua7f97e5tsb5qdvmsrj
From: <sip:6001@172.20.10.136>;tag=8r1mpq0720
To: <sip:6001@172.20.10.136>;tag=z9hG4bK161599
CSeq: 3 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1763436584/1fd5b6bb996dbfd44e143a3a9e86f95c",opaque="5cae14d02cfbf00e",algorithm=MD5,qop="auth"
Server: Asterisk PBX 20.16.0
Content-Length:  0

how fix this isssue?

A starting point would be showing the full PJSIP configuration.

I solved this. The reason was, my server did not see my web rtc ip (laptop ip). That was the reason failed for registration