<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    For wss to work, your site must be https, and your sip server must
    be wss.  You can not downgrade the connection anywhere.  Also if you
    are linking to sip.js, the url MUST ALSO BE https e.g: <br>
    <pre id="line1"><span>&lt;<span class="start-tag">script</span> <span class="attribute-name">type</span>="<a class="attribute-value">text/javascript</a>" <span class="attribute-name">src</span>="<a href="view-source:https://cdn.rawgit.com/onsip/SIP.js/0.7.2/dist/sip-0.7.2.min.js" class="attribute-value">https://cdn.rawgit.com/onsip/SIP.js/0.7.2/dist/sip-0.7.2.min.js</a>"&gt;</span><span></span><span>&lt;/<span class="end-tag">script</span>&gt;</span><span></span></pre>
    <br>
    For 2.X you must use the new tls_mgm module as the cert management
    is now shared between tls and wss.<br>
    <br>
    for example:<br>
    <br>
    listen=<a class="moz-txt-link-freetext" href="wss:123.456.789.987:443">wss:123.456.789.987:443</a><br>
    listen=tls:123.456.789.987:5061<br>
    <br>
    loadmodule "tls_mgm.so"<br>
    loadmodule "proto_tls.so"<br>
    loadmodule "proto_wss.so"<br>
    <br>
    <br>
    modparam("tls_mgm",
    "certificate","/etc/letsencrypt/live/acme.com/cert.pem")<br>
    modparam("tls_mgm",
    "private_key","/etc/letsencrypt/live/acme.com/privkey.pem")<br>
    <br>
    <br>
    I am using sip.js 0.7.2 with latest master from opensips and doing
    full https + wss<br>
    <br>
    -Eric<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/12/2016 02:54 PM, Tito Cumpen
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANZPVB6cU9KWnd965-ovu2QKwinrjUibJnu=+MwDUygS+ZiisA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Do Nguyen Ha,
        <div><br>
        </div>
        <div>I was getting errors about the ws destination being
          unencrypted when using sip.js.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Razvan or community,</div>
        <div><br>
        </div>
        <div>What cert configuration does it utilize? does it take it
          from the tls configuration?</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
            href="http://www.opensips.org/Documentation/Tutorials-TLS-2-1">http://www.opensips.org/Documentation/Tutorials-TLS-2-1</a><br>
        </div>
        <div><br>
        </div>
        <div>In this tutorial I see the protocol being defined. Would
          these settings apply or would a respective proto_wss have to
          be provided in the config?</div>
        <div><br>
        </div>
        <div><br>
          Thanks,</div>
        <div>Tito</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jan 5, 2016 at 7:17 AM, Do
          Nguyen Ha <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:donguyenha@gmail.com" target="_blank">donguyenha@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <p dir="ltr">hi Tito</p>
            <p dir="ltr">i did test the webrtc with chrome version 47.
              we only need to setup web server with HTTPS only that
              point to jssip source code. the jssip should works
              properly </p>
            <p dir="ltr">there is no need wss on opensips server - just
              use ws on opensips</p>
            <p dir="ltr">thank you</p>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_quote">On Jan 5, 2016 5:53 PM, "Tito
                  Cumpen" &lt;<a moz-do-not-send="true"
                    href="mailto:tito@xsvoce.com" target="_blank">tito@xsvoce.com</a>&gt;
                  wrote:<br type="attribution">
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <p dir="ltr">Hey Razvan,</p>
                    <p dir="ltr">Any updates on wss? </p>
                    <div class="gmail_quote">On Dec 7, 2015 12:35 PM,
                      "Tito Cumpen" &lt;<a moz-do-not-send="true"
                        href="mailto:tito@xsvoce.com" target="_blank">tito@xsvoce.com</a>&gt;
                      wrote:<br type="attribution">
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div dir="ltr">Hey Răzvan,
                          <div><br>
                          </div>
                          <div>Any updates on this? Getuser media has
                            been disabled when using http and using
                            https enforces wss on chrome.</div>
                          <div><br>
                          </div>
                          <div>Thanks,</div>
                          <div>Tito</div>
                          <div><br>
                          </div>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">On Fri, Nov 20, 2015
                            at 4:44 AM, Răzvan Crainea <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:razvan@opensips.org"
                                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:razvan@opensips.org">razvan@opensips.org</a></a>&gt;</span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex">
                              <div bgcolor="#FFFFFF" text="#000000"> <tt>Hi,
                                  Tito!<br>
                                  <br>
                                  I am working on it. I have already
                                  started a local branch and started
                                  coding, hopefully it will be public by
                                  the end of the month.<br>
                                  <br>
                                  Best regards,<br>
                                </tt><span>
                                  <pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
                                </span>
                                <div>
                                  <div>
                                    <div>On 11/19/2015 07:35 PM, Tito
                                      Cumpen wrote:<br>
                                    </div>
                                    <blockquote type="cite">
                                      <div dir="ltr">Razvan,
                                        <div><br>
                                        </div>
                                        <div><br>
                                        </div>
                                        <div>Is there currently a
                                          timeline for wss as of now? I
                                          can aid in testing if needed.</div>
                                        <div><br>
                                        </div>
                                        <div><br>
                                          <br>
                                        </div>
                                      </div>
                                      <div class="gmail_extra"><br>
                                        <div class="gmail_quote">On Wed,
                                          Nov 4, 2015 at 1:25 PM, Tito
                                          Cumpen <span dir="ltr">&lt;<a
                                              moz-do-not-send="true"
                                              href="mailto:tito@xsvoce.com"
                                              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:tito@xsvoce.com">tito@xsvoce.com</a></a>&gt;</span>
                                          wrote:<br>
                                          <blockquote
                                            class="gmail_quote"
                                            style="margin:0 0 0
                                            .8ex;border-left:1px #ccc
                                            solid;padding-left:1ex">
                                            <div dir="ltr">Razvan,
                                              <div><br>
                                              </div>
                                              <div><br>
                                                Thanks for the reply.
                                                Can't wait to try this
                                                feature out.</div>
                                            </div>
                                            <div>
                                              <div>
                                                <div class="gmail_extra"><br>
                                                  <div
                                                    class="gmail_quote">On
                                                    Tue, Nov 3, 2015 at
                                                    3:32 AM, Răzvan
                                                    Crainea <span
                                                      dir="ltr">&lt;<a
                                                        moz-do-not-send="true"
href="mailto:razvan@opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:razvan@opensips.org">razvan@opensips.org</a></a>&gt;</span>
                                                    wrote:<br>
                                                    <blockquote
                                                      class="gmail_quote"
                                                      style="margin:0 0
                                                      0
                                                      .8ex;border-left:1px
                                                      #ccc
                                                      solid;padding-left:1ex">
                                                      <div
                                                        bgcolor="#FFFFFF"
                                                        text="#000000">
                                                        <tt>Hi, Tito!<br>
                                                          <br>
                                                          Yes, we have
                                                          WSS support on
                                                          top of our
                                                          priorities,
                                                          and most
                                                          likely will be
                                                          released with
                                                          the next
                                                          OpenSIPS 2.2.<br>
                                                          <br>
                                                          Best regards,<br>
                                                        </tt>
                                                        <pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
                                                        <div>
                                                          <div>
                                                          <div>On
                                                          10/16/2015
                                                          01:41 AM, Tito
                                                          Cumpen wrote:<br>
                                                          </div>
                                                          </div>
                                                        </div>
                                                        <blockquote
                                                          type="cite">
                                                          <div>
                                                          <div>
                                                          <div dir="ltr">To
                                                          opensips devs.
                                                          <div><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Are there
                                                          any plans to
                                                          support wss?
                                                          Currently
                                                          chrome will
                                                          not allow for
                                                          an unsecure
                                                          websocket to
                                                          be initiated
                                                          when using
                                                          https. They
                                                          also threaten
                                                          to remove
                                                          getusermedia
                                                          when using
                                                          ws. </div>
                                                          <div><br>
                                                          </div>
                                                          <div><a
                                                          moz-do-not-send="true"
href="https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins"
target="_blank"><a class="moz-txt-link-freetext" href="https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins">https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins</a></a><br>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>Please
                                                          advise. I am
                                                          working on a
                                                          project that
                                                          depends on
                                                          this.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Thanks,</div>
                                                          <div>Tito</div>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                                                        </blockquote>
                                                        <br>
                                                      </div>
                                                      <br>
_______________________________________________<br>
                                                      Users mailing list<br>
                                                      <a
                                                        moz-do-not-send="true"
href="mailto:Users@lists.opensips.org" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></a><br>
                                                      <a
                                                        moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                                        rel="noreferrer"
                                                        target="_blank"><a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></a><br>
                                                      <br>
                                                    </blockquote>
                                                  </div>
                                                  <br>
                                                </div>
                                              </div>
                                            </div>
                                          </blockquote>
                                        </div>
                                        <br>
                                      </div>
                                      <br>
                                      <fieldset></fieldset>
                                      <br>
                                      <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                                    </blockquote>
                                    <br>
                                  </div>
                                </div>
                              </div>
                              <br>
_______________________________________________<br>
                              Users mailing list<br>
                              <a moz-do-not-send="true"
                                href="mailto:Users@lists.opensips.org"
                                target="_blank">Users@lists.opensips.org</a><br>
                              <a moz-do-not-send="true"
                                href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                              <br>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                    _______________________________________________<br>
                    Users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:Users@lists.opensips.org"
                      target="_blank">Users@lists.opensips.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                      rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                    <br>
                  </blockquote>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>