<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Oliver,<br>
    <br>
    <div class="moz-cite-prefix">On 02/18/2016 12:10 PM, Olivier wrote:<br>
    </div>
    <blockquote
cite="mid:CAPeT9jjr3f8ZcokvLW1yxym_1gC6CS485q95Dyvji9DOHNitEw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>Hello,<br>
                    <br>
                  </div>
                  I'm trying to have my first calls with WebRTC.<br>
                </div>
                My server has asterisk 13.7.0.<br>
                <br>
              </div>
              I'm following the instructions from the wiki [1].<br>
            </div>
            So I'm using [2] live demo from a Chrome navigator (v48) on
            Debian Jessie station.<br>
            <br>
          </div>
          Whenever I type something like <a class="moz-txt-link-freetext" href="ws://">ws://</a><a moz-do-not-send="true"
            href="http://123.123.123.123:8088/ws">123.123.123.123:8088/ws</a>
          in Expert Mode form (see [1]), I'm getting this error :<br>
        </div>
        <b style="color:rgb(51,51,51);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:18px;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(245,245,245)">2:SecurityError:
          Failed to construct 'WebSocket': An insecure WebSocket
          connection may not be initiated from a page loaded over HTTPS.</b><br>
        <div>If I replace <a class="moz-txt-link-freetext" href="ws://">ws://</a><a moz-do-not-send="true"
            href="http://123.123.123.123:8088/ws">123.123.123.123:8088/ws</a>
          with <a class="moz-txt-link-freetext" href="wss://">wss://</a><a moz-do-not-send="true"
            href="http://123.123.123.123:8088/ws">123.123.123.123:8088/ws</a>,
          this error message becomes with<br>
          <label align="center" id="txtRegStatus"
            style="font-size:13px;font-weight:normal;line-height:18px;display:block;margin-bottom:5px;color:rgb(51,51,51);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-style:normal;font-variant:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;width:370px"><i>Disconnected:<span
                class=""> </span><b>Failed to connet to the server</b></i></label><br
            class="">
          <br>
          My questions are:<br>
        </div>
        <div>1. Is wss now required by sipml5 live demo (implying wiki
          page is not up-to-date) ?<br>
        </div>
      </div>
    </blockquote>
    Yes, like the error says, you have to use wss on pages served via
    https. Furthermore, Chrome requires the use of https when you want
    to use getUserMedia. <br>
    See here:
    <a class="moz-txt-link-freetext" href="https://developers.google.com/web/updates/2015/10/chrome-47-webrtc?hl=en">https://developers.google.com/web/updates/2015/10/chrome-47-webrtc?hl=en</a>.
    It says: "
    <meta http-equiv="content-type" content="text/html;
      charset=windows-1252">
    Starting with Chrome 47, getUserMedia() requests are only allowed
    from secure origins: HTTPS or localhost."<br>
    <br>
    The solution for development is, to host the webrtc client locally,
    so that you load the page from localhost. In that case getUserMedia
    is allowed with http, too (as the quote says). That means you have
    to download the dubango client and run a webserver on your dev
    machine.<br>
    <br>
    <blockquote
cite="mid:CAPeT9jjr3f8ZcokvLW1yxym_1gC6CS485q95Dyvji9DOHNitEw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>2. Do you have any pointer for WebRTC with Asterisk 13 and
          PJSIP ?<br>
        </div>
      </div>
    </blockquote>
    Unfortunately, there is not much documentation about this, as far as
    I can tell.<br>
    <br>
    <blockquote
cite="mid:CAPeT9jjr3f8ZcokvLW1yxym_1gC6CS485q95Dyvji9DOHNitEw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Regards<br>
        </div>
        <div>
          <div>
            <div><br>
              [1] <a moz-do-not-send="true"
href="https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5">https://wiki.asterisk.org/wiki/display/AST/WebRTC+tutorial+using+SIPML5</a><br>
              [2] <a moz-do-not-send="true"
                href="https://www.doubango.org/sipml5/">https://www.doubango.org/sipml5/</a><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <br>
    Regards,<br>
    <br>
    Simon<br>
  </body>
</html>