# WebRTC and SIPML5 - Wrong password

**URL:** <https://community.asterisk.org/t/webrtc-and-sipml5-wrong-password/77249>\
**Category:** Asterisk Support\
**Created:** [November 21, 2018, 2:43pm UTC](https://community.asterisk.org/t/webrtc-and-sipml5-wrong-password/77249 "2018-11-21T14:43:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juju3301](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@juju3301](https://community.asterisk.org/u/juju3301)\
**Post date:** [November 21, 2018, 2:43pm UTC](https://community.asterisk.org/t/webrtc-and-sipml5-wrong-password/77249/1 "2018-11-21T14:43:46Z")

</div>

Hi there,

I’m using Asterisk 16.0.0 and I’d like to set up Webrtc and SIPML5. I followed this tutorial : [Home - Asterisk Documentation](https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5)  
But when I try to login with SIPML5, I get this error :

> WebSocket connection from ‘X.X.X.X:6609’ for protocol ‘sip’ accepted using version ‘13’  
> [Nov 21 15:41:05] NOTICE[29334]: chan\_sip.c:28908 handle\_request\_register: Registration from ‘"WebRTC Client"sip:webrtc\_client@XXXX.XX’ failed for ‘X.X.X.X:6609’ - Wrong password

Here’s my configuration :

**pjsip.conf**

```auto

[transport-wss]
type=transport
protocol=wss
bind=0.0.0.0
; All other transport parameters are ignored for wss transports.

[webrtc_client]
type=aor
max_contacts=5
remove_existing=yes
  
[webrtc_client]
type=auth
auth_type=userpass
username=webrtc_client
password=webrtc_client

[webrtc_client]
type=endpoint
aors=webrtc_client
auth=webrtc_client
dtls_auto_generate_cert=yes
webrtc=yes
; Setting webrtc=yes is a shortcut for setting the following options:
; use_avpf=yes
; media_encryption=dtls
; dtls_verify=fingerprint
; dtls_setup=actpass
; ice_support=yes
; media_use_received_transport=yes
; rtcp_mux=yes
context=internal
disallow=all
allow=ulaw

```

Any ideas?  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![ambiorixg12](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ambiorixg12/32/1887_2.png) [@ambiorixg12](https://community.asterisk.org/u/ambiorixg12)\
**Post date:** [November 23, 2018, 11:41am UTC](https://community.asterisk.org/t/webrtc-and-sipml5-wrong-password/77249/2 "2018-11-23T11:41:50Z")

</div>

Assuming endpoint is using the correct credentials for its auth section all seems to be OK for me

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [November 26, 2018, 2:22pm UTC](https://community.asterisk.org/t/webrtc-and-sipml5-wrong-password/77249/3 "2018-11-26T14:22:56Z")

</div>

You have configured chan\_pjsip, but you still have chan\_sip loaded and it is responding to the websocket traffic. If you specifically unload chan\_sip or noload it in modules.conf and restart then PJSIP will start responding instead. If you need chan\_sip there is also an option, “websocket\_enabled”, in sip.conf which can be set to no to disable it.

---

<div class="post-metadata">

**Author:** ![juju3301](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@juju3301](https://community.asterisk.org/u/juju3301)\
**Post date:** [December 6, 2018, 8:17am UTC](https://community.asterisk.org/t/webrtc-and-sipml5-wrong-password/77249/4 "2018-12-06T08:17:17Z")

</div>

It works!. Thank you
