Hi,
I have installed Wazo UC pelican-buster recently. First of all I defined context and defined 2 users as I did with my previous Wazo version. But when I want to make a call I got Unauthorized response from server.
Hello,
We need to see logs to help you.
[Feb 24 19:16:11] <— Received SIP request (924 bytes) from UDP —>
[Feb 24 19:16:11] REGISTER sip: SIP/2.0
[Feb 24 19:16:11] Via: ;branch=z9hG4bK.Zdo5CwGjO;rport
[Feb 24 19:16:11] From: ;tag=oie1eXpCz
[Feb 24 19:16:11] To: sip:ux5ubub3@<—wazo-domain—>
[Feb 24 19:16:11] CSeq: 218 REGISTER
[Feb 24 19:16:11] Call-ID: 9eHoKVlkIo
[Feb 24 19:16:11] Max-Forwards: 70
[Feb 24 19:16:11] Supported: replaces, outbound, gruu
[Feb 24 19:16:11] Accept: application/sdp
[Feb 24 19:16:11] Accept: text/plain
[Feb 24 19:16:11] Accept: application/vnd.gsma.rcs-ft-http+xml
[Feb 24 19:16:11] Contact: <sip;transport=udp>;+sip.instance=“urn:uuid:e805a553-ce1a-0041-9c9e-0215068d9330”
[Feb 24 19:16:11] Expires: 3600
[Feb 24 19:16:11] User-Agent: LinphoneAndroid/4.4.0-beta.4+880bc7a4 (Ehsan’s Galaxy A21s) LinphoneSDK/4.5.0-beta.38+2c94206 (remotes/origin/release/4.5)
[Feb 24 19:16:11] Authorization: Digest realm=“asterisk”, nonce=“1614194171/2b1f833708581ffd4e4cfcecbf7bcbe2”, algorithm=md5, opaque=“61a588a6003ab63d”, username=“ux5ubub3”, uri=“sip”, response=“ffc953f45e29a6467db51634d1901a53”, cnonce=“RBEKB9wB1Hmi9Ryo”, nc=00000001, qop=auth
[Feb 24 19:16:11]
[Feb 24 19:16:11]
[2021-02-24 19:16:11.2361] NOTICE[15023]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request ‘REGISTER’ from ‘<sip:ux5ubub3@<—wazo-domain—>>’ failed for ‘93.118.144.22:29413’ (callid: 9eHoKVlkIo) - Failed to authenticate
[Feb 24 19:16:11] <— Transmitting SIP response (455 bytes) to UDP —>
[Feb 24 19:16:11] SIP/2.0 401 Unauthorized
[Feb 24 19:16:11] Via: SIP/2.0/UDP ;rport=29413;received=;branch=z9hG4bK.Zdo5CwGjO
[Feb 24 19:16:11] Call-ID: 9eHoKVlkIo
[Feb 24 19:16:11] From:
[Feb 24 19:16:11] To:
[Feb 24 19:16:11] CSeq: 218 REGISTER
[Feb 24 19:16:11] WWW-Authenticate: Digest realm=“asterisk”,nonce=“1614194171/2b1f833708581ffd4e4cfcecbf7bcbe2”,opaque=“420a6af41dcdd747”,algorithm=md5,qop=“auth”
[Feb 24 19:16:11] Server: Wazo PBX
[Feb 24 19:16:11] Content-Length: 0
[Feb 24 19:16:11]
[Feb 24 19:16:11]
INVITE Log
[Feb 24 19:24:45] <— Received SIP request (1199 bytes) from UDP:<----------------> —>
[Feb 24 19:24:45] INVITE <----------------> SIP/2.0
[Feb 24 19:24:45] Via: SIP/2.0/UDP <---------------->;branch=z9hG4bK.lwpo4kFmZ;rport
[Feb 24 19:24:45] From: <---------------->;tag=Wtw5sipma
[Feb 24 19:24:45] To: <---------------->
[Feb 24 19:24:45] CSeq: 20 INVITE
[Feb 24 19:24:45] Call-ID: cfvciG~CZC
[Feb 24 19:24:45] Max-Forwards: 70
[Feb 24 19:24:45] Supported: replaces, outbound, gruu
[Feb 24 19:24:45] Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO, PRACK, UPDATE
[Feb 24 19:24:45] Content-Type: application/sdp
[Feb 24 19:24:45] Content-Length: 506
[Feb 24 19:24:45] Contact: <sip:e69pl7nj@<---------------->;transport=udp>;+sip.instance=“urn:uuid:e805a553-ce1a-0041-9c9e-0215068d9330”
[Feb 24 19:24:45] User-Agent: LinphoneAndroid/4.4.0-beta.17+9580befc8 (Ehsan’s Galaxy A21s) LinphoneSDK/4.5.0-beta.74+4a6f55d (remotes/origin/release/4.5)
[Feb 24 19:24:45]
[Feb 24 19:24:45] v=0
[Feb 24 19:24:45] o=e69pl7nj 535 3939 IN IP4 <---------------->
[Feb 24 19:24:45] s=Talk
[Feb 24 19:24:45] c=IN IP4 <---------------->
[Feb 24 19:24:45] t=0 0
[Feb 24 19:24:45] a=rtcp-14677xr:rcvr-rtt=all:10000 stat-summary=loss,dup,jitt,TTL voip-metrics
[Feb 24 19:24:45] m=audio 14676 RTP/AVP 96 97 98 0 8 3 101 99 100
[Feb 24 19:24:45] a=rtpmap:96 opus/48000/2
[Feb 24 19:24:45] a=fmtp:96 useinbandfec=1
[Feb 24 19:24:45] a=rtpmap:97 speex/16000
[Feb 24 19:24:45] a=fmtp:97 vbr=on
[Feb 24 19:24:45] a=rtpmap:98 speex/8000
[Feb 24 19:24:45] a=fmtp:98 vbr=on
[Feb 24 19:24:45] a=rtpmap:101 telephone-event/48000
[Feb 24 19:24:45] a=rtpmap:99 telephone-event/16000
[Feb 24 19:24:45] a=rtpmap:100 telephone-event/8000
[Feb 24 19:24:45] a=rtcp-fb:* trr-int 1000
[Feb 24 19:24:45] a=rtcp-fb:* ccm tmmbr
[Feb 24 19:24:45]
[Feb 24 19:24:45] <— Transmitting SIP response (450 bytes) to UDP:<----------------> —>
[Feb 24 19:24:45] SIP/2.0 401 Unauthorized
[Feb 24 19:24:45] Via: SIP/2.0/UDP <---------------->;rport=14667;received=<---------------->;branch=z9hG4bK.lwpo4kFmZ
[Feb 24 19:24:45] Call-ID: cfvciG~CZC
[Feb 24 19:24:45] From: <---------------->;tag=Wtw5sipma
[Feb 24 19:24:45] To: <---------------->;tag=z9hG4bK.lwpo4kFmZ
[Feb 24 19:24:45] CSeq: 20 INVITE
[Feb 24 19:24:45] WWW-Authenticate: Digest realm=“asterisk”,nonce=“1614194685/f365b69be86721c92985ca7e682bc884”,opaque=“70c4c87c1b018acf”,algorithm=md5,qop=“auth”
[Feb 24 19:24:45] Server: Wazo PBX
[Feb 24 19:24:45] Content-Length: 0
[Feb 24 19:24:45]
[Feb 24 19:24:45]
[Feb 24 19:24:45] <— Received SIP request (386 bytes) from UDP:<----------------> —>
[Feb 24 19:24:45] ACK <----------------> SIP/2.0
[Feb 24 19:24:45] Via: SIP/2.0/UDP <---------------->;branch=z9hG4bK.lwpo4kFmZ;rport
[Feb 24 19:24:45] Call-ID: cfvciG~CZC
[Feb 24 19:24:45] From: <---------------->;tag=Wtw5sipma
[Feb 24 19:24:45] To: <---------------->;tag=z9hG4bK.lwpo4kFmZ
[Feb 24 19:24:45] Contact: <sip:e69pl7nj@<---------------->;transport=udp>;+sip.instance=“urn:uuid:e805a553-ce1a-0041-9c9e-0215068d9330”
[Feb 24 19:24:45] Max-Forwards: 70
[Feb 24 19:24:45] CSeq: 20 ACK
Looks like you are not using the good username/password on your linphone. Where did you get this information? The account for manual connection is from the line of the user.
I solved the problem by setting force_rport, rtp_symmetric and rewrite_contact in global template. I guess this problem occurred because the client wasn’t receiving response from WAZO due to NAT problem.
But the NAT problem remains when my client is in local WiFi. It works perfectly when I use mobile data to connect to server, but in WiFi, the NAT traversal doesn’t works as it should be.
Do you have any suggestion for this problem? I mean without STUN/TURN server.