Open mamoun-mohammed opened 3 months ago
Please do NOT paste huge logs inline. As explained in the guidelines, you should either use an external service for that, or use the details/summary feature of github. I fixed it this time for you, but please notice that next time I'll just close the issue.
@lminiero , i'm sorry about that I didn't know the guidelines. any idea on how to tackle this? thanks.
What version of Janus is this happening on? v1.2.3
Have you tested a more recent version of Janus too? Yes
Was this working before? No Is there a gdb or libasan trace of the issue? Not Sure
Additional context I'm facing an issue with SIP plugin where SIP INVITE requests fail with a "401 Unauthorized" response from the Asterisk server when I use the SIP demo to create audio calls. The same setup works perfectly when receiving calls from the sip demo but when I try to make calls it fails due to an authorization error even though it works with receiving. I have been looking into this for a long time without any productive outcome. any help would be appreciated.
Configuration:
Janus WebRTC Server SIP Plugin version: 0.0.9 Asterisk version: FPBX-16.0.33(18.16.0) Janus logs:
Janus INVITE Request:
`[2024-07-06 22:58:23] VERBOSE[2129] res_pjsip_logger.c: <--- Received SIP request (1351 bytes) from UDP:192.168.1.147:60200 ---> INVITE sip:1@192.168.1.108 SIP/2.0 Via: SIP/2.0/UDP 172.28.49.29:45182;rport;branch=z9hG4bKS1FX4724m8D7a Max-Forwards: 70 From: "john" sip:2@192.168.1.108;tag=4rtvDyeaU913K To: sip:1@192.168.1.108 Call-ID: lW78YaWRJmVliYyJP6Slae6 CSeq: 982337813 INVITE Contact: johnsip:2@172.28.49.29:45182;transport=udp User-Agent: Janus WebRTC Server SIP Plugin 0.0.9 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, MESSAGE, INFO, NOTIFY Supported: replaces Content-Type: application/sdp Content-Disposition: session Content-Length: 800
Asterisk Response to Janus:
SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 172.28.49.29:45182;rport=60200;received=192.168.1.147;branch=z9hG4bKS1FX4724m8D7a Call-ID: lW78YaWRJmVliYyJP6Slae6 From: "john" <sip:2@192.168.1.108>;tag=4rtvDyeaU913K To: <sip:1@192.168.1.108>;tag=z9hG4bKS1FX4724m8D7a CSeq: 982337813 INVITE WWW-Authenticate: Digest realm="asterisk",nonce="1720306703/b09119604c79ccafc29d8ef9522a1932",opaque="68110e3d0b662ee4",algorithm=MD5,qop="auth" Server: FPBX-16.0.33(18.16.0) Content-Length: 0