<div dir="ltr"><div><div><div><div>Hi,<br></div><div>I use chrome and sipml5  to connect to asterisk webrtc interface using TLS.<br></div><div>The wss connection seems ok and the SIP REGISTER sent from chrome to asterisk and the SIP response received.<br>
</div>In the response, I get a &quot;<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important;color:red!important"><span style>failed: A server must not mask any frames that it sends to the client</span></span>&quot; error msg and chrome terminates the ws connection.<br>
</div>I&#39;ve checked the asterisk debug logs,  and the wireshark tls trace ( after decryption), the mask-bit of the WS Frame being not set. But the chrome complains otherwise.<br><br></div>Given below is the chrome error log and the part of the wirehark capture (after decryption).<br>
<br></div>Can someone , help me identify the problem?<br><br><div><div><div><br><div><div><div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>session event = type = connecting - description = Connecting...</span> <a class="" title="file:///Users/thava/webrtc/sipml5/tests/test_wss_ast.html:39" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">test_wss_ast.html:39</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>session event = type = sent_request - description = REGISTER request successfully sent</span> <a class="" title="file:///Users/thava/webrtc/sipml5/tests/test_wss_ast.html:39" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">test_wss_ast.html:39</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important;color:red!important"><span style>WebSocket connection to &#39;<a class="" title="wss://nicta-vm1.cloudapp.net:8089/ws" target="_blank" style="color:rgb(84,84,84);text-decoration:none">wss://nicta-vm1.cloudapp.net:8089/ws</a>&#39; failed: A server must not mask any frames that it sends to the client.</span> <a class="" title="file:///Users/thava/webrtc/sipml5/release/SIPml-api.js:3" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">SIPml-api.js:3</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>__tsip_transport_ws_onerror</span> <a class="" title="file:///Users/thava/webrtc/sipml5/release/SIPml-api.js:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">SIPml-api.js:1</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>__tsip_transport_ws_onclose</span> <a class="" title="file:///Users/thava/webrtc/sipml5/release/SIPml-api.js:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">SIPml-api.js:1</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>State machine: tsip_dialog_register_Any_2_Terminated_X_transportError</span> <a class="" title="file:///Users/thava/webrtc/sipml5/release/SIPml-api.js:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">SIPml-api.js:1</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>=== REGISTER Dialog terminated ===</span> <a class="" title="file:///Users/thava/webrtc/sipml5/release/SIPml-api.js:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">SIPml-api.js:1</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>session event = type = transport_error - description = Transport error</span> <a class="" title="file:///Users/thava/webrtc/sipml5/tests/test_wss_ast.html:39" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">test_wss_ast.html:39</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>session event = type = terminated - description = Disconnected</span> <a class="" title="file:///Users/thava/webrtc/sipml5/tests/test_wss_ast.html:39" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">test_wss_ast.html:39</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>response code = -1</span> <a class="" title="file:///Users/thava/webrtc/sipml5/tests/test_wss_ast.html:41" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84)">test_wss_ast.html:41</a></span></div>
<div class="" style="clear:right;border-top:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<span class="" style="white-space:pre-wrap;font-family:Menlo,monospace;font-size:11px!important"><span style>The FSM is in the final state</span> </span></div><br><br><br><br>    0000009F  81 7e 02 5b 53 49 50 2f  32 2e 30 20 34 30 31 20 .~.[SIP/ 2.0 401 <br>
    000000AF  55 6e 61 75 74 68 6f 72  69 7a 65 64 0d 0a 56 69 Unauthor ized..Vi<br>    000000BF  61 3a 20 53 49 50 2f 32  2e 30 2f 57 53 53 20 64 a: SIP/2 .0/WSS d<br>    000000CF  66 37 6a 61 6c 32 33 6c  73 30 64 2e 69 6e 76 61 f7jal23l s0d.inva<br>
    000000DF  6c 69 64 3b 62 72 61 6e  63 68 3d 7a 39 68 47 34 lid;bran ch=z9hG4<br><br><br clear="all"><br>-- <br>Rgds<br>Thava
</div></div></div></div></div></div>