<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <tt>Hi Nathaniel,<br>
      <br>
      Could you please apply the attached patch to the registrar
      opensips - it contains some more debugs in regards to saving the
      path array.<br>
      <br>
      Check if during the save("location","p1") you get ant logs with
      "xXx" and post them here.<br>
      <br>
      What db_mode are you using for usrloc ?<br>
      <br>
      Regards,</tt><br>
    <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>
    <br>
    On 05/05/2013 07:49 PM, Nathaniel L Keeling III wrote:
    <blockquote cite="mid:51868DB5.3070009@akan-tech.com" type="cite">Hello,
      <br>
      <br>
      On P1, I am using the add_path_received() function which is adding
      the Path header. Actually, it adds 2 Path headers since the
      request comes in using TCP but is forwarded using UDP. On the
      REGISTER, I use the save("location","p0") function but the path
      header is not saved in the PATH column of the location table. I
      have attached a snippet from the REGISTER's log and it looks like
      the insert into the table in placing NULL even though the PATH
      headers were successfully parsed earlier. Also, will the lookup()
      function use this column to locate the subscriber for an INVITE
      request?
      <br>
      <br>
      Thanks
      <br>
      <br>
      Nathaniel
      <br>
      <br>
      <br>
      On 5/5/13 5:55 AM, Bogdan-Andrei Iancu wrote:
      <br>
      <blockquote type="cite">The registrar server will store the PATH
        hdr in the PATH column of the "location" table.
        <br>
        <br>
        If P1 adds a PATH hdr to a REGISTER that is saved on REGISTRAR
        via save(location, p0) .
        <br>
        <br>
        Regards,
        <br>
        <br>
        Bogdan-Andrei Iancu
        <br>
        OpenSIPS Founder and Developer
        <br>
        <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
        <br>
        <br>
        <br>
        On 05/04/2013 08:11 PM, Nathaniel L Keeling III wrote:
        <br>
        <blockquote type="cite">I am currently using version 1.8.2 of
          opensips. I am using this code on the registrar server,
          save("location","p0v"), when the user is authenticated. The
          user is behind a firewall. The register request is first sent
          to the sip proxy which forwards it to the registrar server.
          The sip proxy adds the Path header with the source IP/Port of
          the Register request. From the documentation it sounds like
          the save() function should take the "received" parameter from
          the Path header and store it in the "received" column of the
          location table. When I look at the location table it contains
          the IP address and port of the SIP proxy so when I try to
          locate the user, they are being sent to the SIP proxy and the
          call fails. Is my understanding correct? What is the best
          approach for this, UAC --&gt; firewall --&gt; P1&nbsp; --&gt; REG.
          <br>
          <br>
          Thanks
          <br>
          <br>
          Nathaniel
          <br>
          <br>
          On 5/4/13 4:26 AM, Bogdan-Andrei Iancu wrote:
          <br>
          <blockquote type="cite">Hello Nathaniel,
            <br>
            <br>
            See
            <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id248705">http://www.opensips.org/html/docs/modules/1.9.x/registrar.html#id248705</a>
            - this controls the PATH support in REGISTRAR module.
            <br>
            <br>
            Regards,
            <br>
            <br>
            Bogdan-Andrei Iancu
            <br>
            OpenSIPS Founder and Developer
            <br>
            <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
            <br>
            <br>
            <br>
            On 05/04/2013 01:31 AM, Nathaniel L Keeling III wrote:
            <br>
            <blockquote type="cite">Hello,
              <br>
              <br>
              I sent an earlier post concerning NATed registrations not
              being able to locate from the lookup() function when the
              registration request is sent from a opensips proxy server
              to an opensips registration server and from my research it
              looks like I should be using the Path header with the
              received parameter set. Doing this, the Register request
              is sent to the registrar proxy server with a Path header,
              the user is successfully authorized and saved in the
              location table but when I look at the location table
              entry, the received column either does not contain a value
              or it contains the wrong value. Here is the Register
              request sent from the proxy to the registrar server and
              the output from the location table.
              <br>
              <br>
              REGISTER <a class="moz-txt-link-freetext" href="sip:my-sip-domain.com;transport=tcp">sip:my-sip-domain.com;transport=tcp</a> SIP/2.0.
              <br>
              Call-ID: 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0.
              <br>
              CSeq: 2 REGISTER.
              <br>
              From: "Nathaniel L Keeling III"
              <a class="moz-txt-link-rfc2396E" href="sip:nkeeling3@mydomain2.com">&lt;sip:nkeeling3@mydomain2.com&gt;</a>;tag=cbe17bd3.
              <br>
              To: "Nathaniel L Keeling III"
              <a class="moz-txt-link-rfc2396E" href="sip:nkeeling3@mydomain2.com">&lt;sip:nkeeling3@mydomain2.com&gt;</a>.
              <br>
              Max-Forwards: 68.
              <br>
              User-Agent: Jitsi2.0.4506.10553Mac OS X.
              <br>
              Expires: 600.
              <br>
              Contact: "Nathaniel L Keeling III"
<a class="moz-txt-link-rfc2396E" href="sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com">&lt;sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com&gt;</a>;expires=600.<br>
              Via: SIP/2.0/UDP
xxx.xxx.110.38:5060;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1;i=04.<br>
              Via: SIP/2.0/TCP
192.168.43.237:65457;received=208.54.44.148;branch=z9hG4bK-383637-fa379c63d9b82d3f671742fe537882a1.<br>
              Authorization: Digest
username="nkeeling3",realm="mydomain2.com",nonce="5184345b0000003b08c40d29a091fb53e6cb83c3961c1dbb",uri=<a class="moz-txt-link-rfc2396E" href="sip:my-sip-domain.com;transport=tcp">"sip:my-sip-domain.com;transport=tcp"</a>,response="987edb51f504ff56c7ba840d594c4bb1".<br>
              Content-Length: 0.
              <br>
              Path:
<a class="moz-txt-link-rfc2396E" href="sip:xxx.xxx.110.38;r2=on;lr;received=sip:208.54.44.148:43932;transport=tcp">&lt;sip:xxx.xxx.110.38;r2=on;lr;received=sip:208.54.44.148:43932;transport=tcp&gt;</a>.<br>
              Path: <a class="moz-txt-link-rfc2396E" href="sip:xxx.xxx.110.38;transport=tcp;r2=on;lr">&lt;sip:xxx.xxx.110.38;transport=tcp;r2=on;lr&gt;</a>.
              <br>
              <br>
              <br>
              &nbsp; id&nbsp; | username&nbsp; |&nbsp;&nbsp;&nbsp; domain |
              contact&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
              received&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | path |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | q |
              callid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | cseq | last_modified&nbsp;&nbsp;&nbsp; |
              flags | cflags |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user_agent | socket&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
              methods | sip_instance
              <br>
              ------+-----------+---------------+--------------------------------------------------------------------------------+-------------------------+------+---------------------+----+--------------------------------------------------+------+---------------------+-------+--------+-----------------------------+-------------------------+---------+--------------
              <br>
              &nbsp;1555 | nkeeling3 | mydomain2.com |
              <a class="moz-txt-link-freetext" href="sip:nkeeling3@192.168.43.237:65420;transport=tcp;registering_acc=mydomain2_com">sip:nkeeling3@192.168.43.237:65420;transport=tcp;registering_acc=mydomain2_com</a>
              | <a class="moz-txt-link-freetext" href="sip:xxx.xxx.110.38:5060">sip:xxx.xxx.110.38:5060</a> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 2013-05-03 17:08:03 |
              -1 | 869321ee55e10970ff139673909ab626@0:0:0:0:0:0:0:0 | 10
              | 2013-05-03 16:58:03 |&nbsp;&nbsp;&nbsp;&nbsp; 0 |&nbsp;&nbsp; 1024 |
              Jitsi2.0.4506.10553Mac OS X | udp:xxx.xxx.110.48:5060
              |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
              <br>
              &nbsp;1556 | nkeeling3 | mydomain2.com |
              <a class="moz-txt-link-freetext" href="sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com">sip:nkeeling3@192.168.43.237:65457;transport=tcp;registering_acc=mydomain2_com</a>
              | <a class="moz-txt-link-freetext" href="sip:xxx.xxx.110.38:5060">sip:xxx.xxx.110.38:5060</a> |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 2013-05-03 17:13:42 |
              -1 | 541d070a84f74ca6f61f68732d063d35@0:0:0:0:0:0:0:0 | 2
              | 2013-05-03 17:03:42 |&nbsp;&nbsp;&nbsp;&nbsp; 0 |&nbsp;&nbsp; 1024 |
              Jitsi2.0.4506.10553Mac OS X | udp:xxx.xxx.110.48:5060
              |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
              <br>
              <br>
              <br>
              Thanks
              <br>
              <br>
              Nathaniel
              <br>
              <br>
              <br>
              <br>
              _______________________________________________
              <br>
              Users mailing list
              <br>
              <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
              <br>
              <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>
              <br>
              <br>
            </blockquote>
            <br>
            <br>
          </blockquote>
          <br>
          <br>
          _______________________________________________
          <br>
          Users mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
          <br>
          <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>
          <br>
          <br>
        </blockquote>
        <br>
        <br>
      </blockquote>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
  </body>
</html>