webRTC and sipML5, Forbidden (403) error

Hi
I have configured freePBX on VM, when I use Zoiper can make and receive calls. I’m trying to make a webRTC with sipML5 or jssip to be able to make calls with web. When I’m trying to connect sip it gives me registration error (403 Forbidden). I have followed the asterisk documentation but still no chance to fix it. my Asterisk version is 16.10.0 and it runs on Ubuntu version 18.04.4 LTS .

Here is my console log:

recv=SIP/2.0 401 Unauthorized
Via: SIP/2.0/WSS df7jal23ls0d.invalid;rport=58536;received=61.6.82.221;branch=z9hG4bKNQCTMvUGSqiH0cBwrQmc0RD5yiBvRTJx
From: "6006"<sip:[email protected]>;tag=oPRPAuZ4T8vshJ6BfAWo
To: "6006"<sip:[email protected]>;tag=as68cea342
Call-ID: 8dbeedeb-03a8-095c-1ced-2de3b318cdc9
CSeq: 63480 REGISTER
Content-Length: 0
Server: FPBX-15.0.17.67(16.10.0)
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY,INFO,PUBLISH,MESSAGE
Supported: replaces,timer
WWW-Authenticate: Digest realm="asterisk",nonce="7b4641bb",stale=FALSE,algorithm=MD5
State machine: tsip_dialog_register_InProgress_2_InProgress_X_401_407_421_494
tsk_utils.js?svn=252:116 SEND: REGISTER sip:pbx.lizard.global SIP/2.0
Via: SIP/2.0/WSS df7jal23ls0d.invalid;branch=z9hG4bKRZi5GoIg3qBUzXFCfSllifazdFcIOVk1;rport
From: "6006"<sip:[email protected]>;tag=oPRPAuZ4T8vshJ6BfAWo
To: "6006"<sip:[email protected]>
Contact: "6006"<sips:[email protected];rtcweb-breaker=no;transport=wss>;expires=200;click2call=no;+g.oma.sip-im;+audio;language="en,fr"
Call-ID: 8dbeedeb-03a8-095c-1ced-2de3b318cdc9
CSeq: 63481 REGISTER
Content-Length: 0
Max-Forwards: 70
Authorization: Digest username="6006",realm="asterisk",nonce="7b4641bb",uri="sip:pbx.lizard.global",response="68338c450549a7bc9ea553a41cd99ec7",algorithm=MD5
User-Agent: IM-client/OMA1.0 sipML5-v1.2016.03.04
Organization: Doubango Telecom
Supported: path
==session event = sent_request
 __tsip_transport_ws_onmessage
recv=SIP/2.0 403 Forbidden
Via: SIP/2.0/WSS df7jal23ls0d.invalid;rport=58536;received=61.6.82.221;branch=z9hG4bKRZi5GoIg3qBUzXFCfSllifazdFcIOVk1
From: "6006"<sip:[email protected]>;tag=oPRPAuZ4T8vshJ6BfAWo
To: "6006"<sip:[email protected]>;tag=as68cea342
Call-ID: 8dbeedeb-03a8-095c-1ced-2de3b318cdc9
CSeq: 63481 REGISTER
Content-Length: 0
Server: FPBX-15.0.17.67(16.10.0)
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,REFER,SUBSCRIBE,NOTIFY,INFO,PUBLISH,MESSAGE
Supported: replaces,timer


State machine: tsip_dialog_register_Any_2_Terminated_X_Error
=== REGISTER Dialog terminated ===
==session event = terminated

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