<!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>
      Well, the logs shows that save() does not receive any flags as
      params...everything indicates that you do not have the params or
      you are using the wrong config file.<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>
    <br>
    On 05/22/2013 08:22 AM, Nathaniel L Keeling III wrote:
    <blockquote cite="mid:519C55F8.4070908@akan-tech.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <tt>Hello Bogdan,<br>
        <br>
        Here is the output from the opensips log. I have also attached a
        snippet from the log file.<br>
        <br>
        May 21 23:39:15&nbsp;&nbsp; OpenSips[14397]: [ID 257313 local1.debug]
        DBG:registrar:save_aux: xXx - flags param is&nbsp; <br>
        May 21 23:39:15&nbsp;&nbsp; OpenSips[14397]: [ID 154992 local1.debug]
        DBG:registrar:save_aux: xXx - flags bitmask is &lt;0&gt; <br>
        <br>
        May 21 23:39:15&nbsp;&nbsp; OpenSips[14397]: [ID 269964 local1.debug]
        DBG:registrar:pack_ci: xXx - flags are 0 <br>
        <br>
        Thanks<br>
        <br>
        Nathaniel L Keeling<br>
        <br>
      </tt>
      <div class="moz-cite-prefix">On 5/20/13 11:56 AM, Bogdan-Andrei
        Iancu wrote:<br>
      </div>
      <blockquote cite="mid:519A55AA.5060701@opensips.org" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <tt>Hello Nathaniel,<br>
          <br>
          See the attached patch - it logs more from the part where the
          params are handled .<br>
          <br>
          Regards,<br>
        </tt>
        <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
        <br>
        On 05/18/2013 09:33 AM, Nathaniel L Keeling III wrote:
        <blockquote cite="mid:519720B9.5020208@akan-tech.com"
          type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <tt>Hello Bogdan,<br>
            <br>
            Here are snippets from my script. I only have one place
            where I execute the save function. Just wondering, could it
            be truncating a byte?<br>
            <br>
            modparam("usrloc", "nat_bflag", 10)<br>
            modparam("usrloc", "use_domain", 1)<br>
            modparam("usrloc", "db_mode", 3)<br>
            modparam("usrloc", "db_url",<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a moz-do-not-send="true"
              class="moz-txt-link-rfc2396E"
              href="mailto:postgres://opensips:opensipsrw@ama.akan.net/opensips181t">"postgres://opensips:opensipsrw@ama.akan.net/opensips181t"</a>)<br>
            modparam("registrar", "tcp_persistent_flag", 7)<br>
            modparam("registrar", "received_avp", "$avp(received_nh)")<br>
            <br>
            <br>
            &nbsp;&nbsp;&nbsp; xlog("SAVING THE SUBSCRIBER INTO THE LOCATION TABLE
            ....................................................");<br>
            &nbsp;&nbsp;&nbsp; if (!save("location","p1"))<br>
            &nbsp;&nbsp;&nbsp; {<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_ERR", "ERR:callerid:$ci|end|System error
            trying to save Register's request location");<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();<br>
            &nbsp;&nbsp;&nbsp; }<br>
            <br>
            &nbsp;&nbsp;&nbsp; xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The subscriber
            has successfully registered with Akan Voice");<br>
            &nbsp;&nbsp;&nbsp; exit;<br>
            <br>
            Thanks<br>
            <br>
            Nathaniel<br>
            <br>
          </tt>
          <div class="moz-cite-prefix">On 5/17/13 6:07 AM, Bogdan-Andrei
            Iancu wrote:<br>
          </div>
          <blockquote cite="mid:51960F88.2080105@opensips.org"
            type="cite">
            <meta content="text/html; charset=ISO-8859-1"
              http-equiv="Content-Type">
            <tt>Hello </tt><tt>Nathaniel,<br>
              <br>
              That is odd.....it's like you do not set the "p1" flag
              ....<br>
              <br>
              I tested and I with "p1" flag I get:<br>
              &nbsp;&nbsp;&nbsp; May 17 14:05:03 [7944] DBG:registrar:pack_ci: xXx -
              flags are 10<br>
              <br>
              Are you sure your script gets to the right save() ??<br>
              <br>
              Regards,<br>
            </tt>
            <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
            <br>
            On 05/17/2013 09:37 AM, Nathaniel L Keeling III wrote:
            <blockquote cite="mid:5195D033.20608@akan-tech.com"
              type="cite">
              <meta content="text/html; charset=ISO-8859-1"
                http-equiv="Content-Type">
              <tt>Hello Bogdan,<br>
                <br>
                I added the patch and here is what I found:
                "OpenSips[4378]: [ID 269964 local1.debug]
                DBG:registrar:pack_ci: xXx - flags are 0". I have also
                included the log file.<br>
                <br>
                Thanks<br>
                <br>
                Nathaniel Keeling<br>
                <br>
              </tt>
              <div class="moz-cite-prefix">On 5/16/13 3:47 AM,
                Bogdan-Andrei Iancu wrote:<br>
              </div>
              <blockquote cite="mid:51949D07.5070507@opensips.org"
                type="cite">
                <meta content="text/html; charset=ISO-8859-1"
                  http-equiv="Content-Type">
                <tt>Hello Nathaniel,<br>
                  <br>
                  Attached is an extended patch - remove the old one and
                  apply this one. Again look for any xXx logs .<br>
                  <br>
                  Regards,<br>
                </tt>
                <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
                <br>
                On 05/14/2013 02:47 PM, Nathaniel L Keeling III wrote:
                <blockquote cite="mid:5192244C.5000207@akan-tech.com"
                  type="cite">
                  <meta content="text/html; charset=ISO-8859-1"
                    http-equiv="Content-Type">
                  <tt>Hello Bogdan,<br>
                    <br>
                    here is the output from opensips's og file of the
                    save() with the patch and the code snippet from the
                    opensips.cfg. I did not see any ant logs with "xXx".
                    Also,I have usrloc's db_mode set to 3.<small><br>
                      <br>
                      &nbsp;&nbsp;&nbsp; xlog("SAVING THE SUBSCRIBER INTO THE LOCATION
                      TABLE
                      ....................................................");<br>
                      &nbsp;&nbsp;&nbsp; if (!save("location","p1"))<br>
                      &nbsp;&nbsp;&nbsp; {<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_ERR", "ERR:callerid:$ci|end|System
                      error trying to save Register's request
                      location");<br>
                      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();<br>
                      &nbsp;&nbsp;&nbsp; }<br>
                      &nbsp;&nbsp;&nbsp; xlog("L_NOTICE", "NOTICE:callerid:$ci|end|The
                      subscriber has successfully registered with Akan
                      Voice");<br>
                      &nbsp;&nbsp;&nbsp; exit;</small></tt> </blockquote>
              </blockquote>
              <br>
              <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
            <fieldset class="mimeAttachmentHeader"></fieldset>
            <br>
            <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
          <pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
      </blockquote>
      <br>
    </blockquote>
  </body>
</html>