<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Mark,<br>
    <br>
    Probably you miss an "exit" after the save(location) block:<br>
    <pre class="escaped">if (!save("location"))
        sl_reply_error();
        exit;
}
exit;

</pre>
    Regards,<br>
    Bogdan<br>
    <br>
    On 07/04/2011 06:23 AM, Mark Holloway wrote:
    <blockquote
      cite="mid:E99CDC79-4210-4ED7-A641-2F5ED07D0082@markholloway.com"
      type="cite">Odd, even though I now get 200 OK from OpenSIPS after
      registering I still receive 484 Address Incomplete after the 200
      OK even though the endpoint is registered.&nbsp;
      <div><br>
      </div>
      <div><br>
        <div>
          <div>On Jul 3, 2011, at 11:35 AM, Mark Holloway wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div style="word-wrap: break-word;">I resolved it. &nbsp;Forgot
              to uncomment one very important part of the cfg file.
              <div><br>
              </div>
              <div>
                <pre class="escaped">if (!save("location"))
                        sl_reply_error();

                exit;
        }</pre>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>
                  <div>On Jul 3, 2011, at 11:31 AM, Mark Holloway wrote:</div>
                  <br class="Apple-interchange-newline">
                  <blockquote type="cite">
                    <div style="word-wrap: break-word;">I have OpenSIPS
                      1.6.4 configured as a SIP Registrar with mysql. It
                      is configured to challenge SIP registrations with
                      authentication. &nbsp;Keeping it simple, I've used
                      opensipsctl to add user 1000 with password 1000
                      and set the IP/SIP Domain of OpenSIPS is
                      192.168.1.20. I am attempting to register using
                      Counterpath Bria 3.1 (Mac). &nbsp;Bria sends the
                      initial registration to OpenSIPS and it properly
                      responds with a 401 Unauthorized, but after Bria
                      responds to the 401 challenge OpenSIPS responds
                      with 484 Address Incomplete.
                      <div><br>
                      </div>
                      <div>Looking at the docs I noticed OpenSIPS will
                        send 484 if the username is not in the
                        Request-Line. For example, OpenSIPS wants
                        <a class="moz-txt-link-abbreviated" href="mailto:1000@192.168.1.20">1000@192.168.1.20</a> but Bria sends 192.168.1.20.
                        The way Bria registers, the username portion
                        (1000 in this case) is only in the Contact, To,
                        and From headers. The R-URI line does not
                        include the username portion. &nbsp;Has anyone else
                        encountered this?</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>==</div>
                      <div>Bria's response to 401 challenge</div>
                      <div>==</div>
                      <div><br>
                      </div>
                      <div>
                        <div>Session Initiation Protocol</div>
                        <div>&nbsp;&nbsp;<b> &nbsp;Request-Line: REGISTER <a
                              moz-do-not-send="true"
                              href="sip:192.168.1.20">sip:192.168.1.20</a>
                            SIP/2.0</b></div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Method: REGISTER</div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;[Resent Packet: False]</div>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; Contact: &lt;<a
                            moz-do-not-send="true"
href="sip:1000@192.168.1.116:62018;rinstance=3b31a8f560e5c3bc;transport=udp">sip:1000@192.168.1.116:62018;rinstance=3b31a8f560e5c3bc;transport=udp</a>&gt;</div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Contact Binding: &lt;<a
                            moz-do-not-send="true"
href="sip:1000@192.168.1.116:62018;rinstance=3b31a8f560e5c3bc;transport=udp">sip:1000@192.168.1.116:62018;rinstance=3b31a8f560e5c3bc;transport=udp</a>&gt;</div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;To: "Mark"&lt;<a
                            moz-do-not-send="true"
                            href="sip:1000@192.168.1.20">sip:1000@192.168.1.20</a>&gt;</div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIP Display info: "Mark"</div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIP to address: <a
                            moz-do-not-send="true"
                            href="sip:1000@192.168.1.20">sip:1000@192.168.1.20</a></div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;From: "Mark"&lt;<a
                            moz-do-not-send="true"
                            href="sip:1000@192.168.1.20">sip:1000@192.168.1.20</a>&gt;;tag=fbaf644d</div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIP Display info: "Mark"</div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIP from address: <a
                            moz-do-not-send="true"
                            href="sip:1000@192.168.1.20">sip:1000@192.168.1.20</a></div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIP tag: fbaf644d</div>
                      </div>
                      <div><br>
                      </div>
                      <br>
                    </div>
                  </blockquote>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"</pre>
  </body>
</html>