<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi,<br>
      <br>
      You NEED to authenticate the calls / INVITEs too, but you do in
      wrong way - you need to use the proxy_challenge() for INVITEs and
      not www_challenge() (which is to be used only for REGISTER
      requests).<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 24.05.2016 17:17, Johan De Clercq
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEVWGm9NDhorBcZZ=1UBBzeCTxZPi=QiqcN86Rez+JSZSJB4og@mail.gmail.com"
      type="cite">
      <div dir="ltr">NO, because you still authenticate on registratin.
        <br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2016-05-24 15:20 GMT+02:00 Frank Paaske
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:frank.paaske@gmail.com" target="_blank">frank.paaske@gmail.com</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="white" link="blue" vlink="purple" lang="EN-US">
              <div>
                <p class="MsoNormal"><span
                    style="font-size:11.0pt;font-family:Calibri"
                    lang="NO-BOK">Thanks, but won’t this allow anyone to
                    use this OpenSIPS instance to make SIP calls?</span></p>
                <p class="MsoNormal"><span
                    style="font-size:11.0pt;font-family:Calibri"
                    lang="NO-BOK"> </span></p>
                <p class="MsoNormal"><span
                    style="font-size:11.0pt;font-family:Calibri"
                    lang="NO-BOK">Best regards,</span></p>
                <p class="MsoNormal"><span
                    style="font-size:11.0pt;font-family:Calibri"
                    lang="NO-BOK">Frank</span></p>
                <p class="MsoNormal"><span
                    style="font-size:11.0pt;font-family:Calibri"
                    lang="NO-BOK"> </span></p>
                <p class="MsoNormal"><span
                    style="font-size:11.0pt;font-family:Calibri"
                    lang="NO-BOK"> </span></p>
                <div style="border:none;border-top:solid #b5c4df
                  1.0pt;padding:3.0pt 0cm 0cm 0cm">
                  <p class="MsoNormal"><b><span
                        style="font-family:Calibri;color:black">From: </span></b><span
                      style="font-family:Calibri;color:black">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:users-bounces@lists.opensips.org"
                        target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a></a>&gt;
                      on behalf of Johan De Clercq &lt;<a
                        moz-do-not-send="true"
                        href="mailto:johan@democon.be" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:johan@democon.be">johan@democon.be</a></a>&gt;<br>
                      <b>Reply-To: </b>OpenSIPS users mailling list
                      &lt;<a moz-do-not-send="true"
                        href="mailto:users@lists.opensips.org"
                        target="_blank">users@lists.opensips.org</a>&gt;<br>
                      <b>Date: </b>tirsdag 24. mai 2016 08.16<br>
                      <b>To: </b>OpenSIPS users mailling list &lt;<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>&gt;<br>
                      <b>Subject: </b>Re: [OpenSIPS-Users] sip.instance</span></p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <div>
                    <div>
                      <p class="MsoNormal">you need to remove
                        authentication on invite. </p>
                    </div>
                    <p class="MsoNormal">Check in opensips.cfg:
                      if(method=="INVITE")<br>
                      {<br>
                      ....</p>
                  </div>
                  <p class="MsoNormal">www_challenge()</p>
                  <div>
                    <p class="MsoNormal">}</p>
                  </div>
                  <div>
                    <p class="MsoNormal"> </p>
                  </div>
                  <div>
                    <p class="MsoNormal">comment that part out and
                      restart opensips. </p>
                  </div>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                  <div>
                    <p class="MsoNormal">2016-05-24 0:12 GMT+02:00 Frank
                      Paaske &lt;<a moz-do-not-send="true"
                        href="mailto:frank.paaske@gmail.com"
                        target="_blank">frank.paaske@gmail.com</a>&gt;:</p>
                    <blockquote style="border:none;border-left:solid
                      #cccccc 1.0pt;padding:0cm 0cm 0cm
                      6.0pt;margin-left:4.8pt;margin-right:0cm">
                      <div>
                        <div>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">Hi,</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">I’m trying to get
                              a liblinphone based client connected to
                              OpenSIPS. </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">The REGISTER is
                              challenged with a 401, which is
                              automatically replied to with a proper
                              Digest by liblinphone, which in turn gives
                              200 OK back from OpenSIPS.</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">However, when
                              trying to make a call, the INVITE is also
                              challenged with a 401. In this case the
                              liblinphone is not responding
                              automatically.</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">According to the
                              developers of the app, this happens
                              because OpenSIPS is not configured to
                              support sip.instance.</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">The sequence is
                              roughly like this:</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">Client             
                              Server</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">|-REGISTER--------------&gt;|</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">|&lt;-------------------401-|</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">|-REGISTER-with-auth----&gt;|</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">|&lt;-------------------200-|</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">|-INVITE----------------&gt;|</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">|&lt;-------------------401-|</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">Then nothing</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">So my question is
                              how can I enable support for sip.instance
                              in OpenSIPS?</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK"> </span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">Best regards,</span></p>
                          <p class="MsoNormal"><span
                              style="font-size:11.0pt;font-family:&quot;Courier
                              New&quot;" lang="NO-BOK">Frank</span></p>
                        </div>
                      </div>
                      <p class="MsoNormal" style="margin-bottom:12.0pt"><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"
                          target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></p>
                    </blockquote>
                  </div>
                  <p class="MsoNormal"> </p>
                </div>
                <p class="MsoNormal">_______________________________________________
                  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"><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>
                </p>
              </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>