<!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>Hello Nathaniel,<br>
      <br>
      My test was just to see if your opensips hits the fixup function
      for the flags - and it seems it does (the value I gave you is
      bogus, so it ended up with error).<br>
      <br>
      Could you try this new patch (remove old one) ? (of course, put
      back the "p0" param ).<br>
      <br>
      Thanks and 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/23/2013 01:43 AM, Nathaniel L Keeling III wrote:
    <blockquote cite="mid:519D49FA.4030201@akan-tech.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <tt>Hello Bogdan,<br>
        <br>
        I am using opensips v1.8.3. I was using v1.8.2 earlier but I
        upgraded thinking it might fix my issue. When I changed the
        script to the save("location", "$((ff))") I get this config
        error when starting opensips:<br>
        <br>
        May 22 17:39:11 [14757] ERROR:core:pv_parse_spec: pvar
        ""(inner_name) not found<br>
        May 22 17:39:11 [14757] ERROR:core:pv_parse_spec: wrong char
        [f/102] in [$((ff))] at [3 (2)]<br>
        May 22 17:39:11 [14757] ERROR:core:fixup_spve: wrong
        format[$((ff))]<br>
        May 22 17:39:11 [14757] ERROR:core:fix_actions: fixing failed
        (code=-1) at cfg line 767<br>
        May 22 17:39:11 [14757] CRITICAL:core:fix_expr: fix_actions
        error<br>
        May 22 17:39:11 [14757] ERROR:core:main: failed to fix
        configuration with err code -1<br>
        <br>
        Thanks<br>
        <br>
        Nathaniel L Keeling<br>
        <br>
      </tt>
      <div class="moz-cite-prefix">On 5/22/13 11:46 AM, Bogdan-Andrei
        Iancu wrote:<br>
      </div>
      <blockquote cite="mid:519CF648.9010500@opensips.org" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <tt>Could you try : save("location","$((ff))") ?<br>
          Do you get any error ?<br>
          <br>
          What is your opensips version ?<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/22/2013 05:49 PM, Nathaniel L Keeling III wrote:
        <blockquote cite="mid:519CDB07.3080607@akan-tech.com"
          type="cite">
          <meta content="text/html; charset=ISO-8859-1"
            http-equiv="Content-Type">
          <tt>Hello Bogdan,<br>
            <br>
            I have validated the script and that i am passing a
            parameter. I also changed the debug log statement that I
            displayed right before the save() and I still get the same
            output. Here is the code that I use in the script:<br>
            <br>
            <br>
            &nbsp;&nbsp;&nbsp; xlog("SAVING THE SUBSCRIBER INTO THE LOCATION TABLE,
            test with extra debug
            .......................................");<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_INFO", "INFO:callerid:$ci|end|The subscriber has
            successfully registered with Akan Voice");<br>
            &nbsp;&nbsp;&nbsp; exit;<br>
            <br>
            Is there a better way to validate? I am not sure of what
            else to check.<br>
            <br>
            Thanks<br>
            <br>
            Nathaniel L Keeling<br>
            <br>
          </tt>
          <div class="moz-cite-prefix">On 5/22/13 6:02 AM, Bogdan-Andrei
            Iancu wrote:<br>
          </div>
          <blockquote cite="mid:519CA5C2.5060708@opensips.org"
            type="cite">
            <meta content="text/html; charset=ISO-8859-1"
              http-equiv="Content-Type">
            <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 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/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>
          </blockquote>
          <br>
        </blockquote>
      </blockquote>
      <br>
    </blockquote>
  </body>
</html>