Ramona.<div><br></div><div>I pulled and it worked fine. Thanks for your support.<br><br>Krish</div><div><br><div class="gmail_quote">On Fri, Mar 9, 2012 at 11:10 AM, Elena-Ramona Modroiu <span dir="ltr">&lt;<a href="mailto:ramona@asipto.com">ramona@asipto.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I committed the patch in master branch, but I removed the condition
    &#39;ht_db_expires_flag!=0&#39;, because it is used to control if expires
    column is saved in database, nothing else. If I misunderstood
    something, let me know, if not and all works fine for you with the
    commit, then the patch can be backported to 3.2.<br>
    <br>
    Ramona <br><div><div class="h5">
    <br>
    On 3/8/12 10:38 PM, Krishna Kurapati wrote:
    </div></div><blockquote type="cite"><div><div class="h5">Thanks Daniel for the help. I was looking at other
      module parameters. 
      <div>I added this like and tried it again</div>
      <div><br>
      </div>
      <div>modparam(&quot;htable&quot;,
        &quot;htable&quot;,&quot;xhash=&gt;size=8;dbtable=htable;dbmode=1;&quot;)</div>
      <div><br>
      </div>
      <div>However, it was still not backing up to the database. Seems
        like there is bug when the expiration is not set or</div>
      <div>set to 0. I modified the code and it worked.</div>
      <div><br>
      </div>
      <div>Here is the change log:</div>
      <div><br>
      </div>
      <div>
        <div>--- a/modules_k/htable/ht_db.c</div>
        <div>+++ b/modules_k/htable/ht_db.c</div>
        <div>@@ -369,10 +369,12 @@ int ht_db_save_table(ht_t *ht, str
          *dbtable)</div>
        <div>                                        it-&gt;name.len,
          it-&gt;name.s, it-&gt;value.n);</div>
        <div>                        }</div>
        <div> </div>
        <div>-                       if (it-&gt;expire &lt;= now) {</div>
        <div>+                       if(ht-&gt;htexpire &gt; 0
          &amp;&amp; ht_db_expires_flag!=0) {</div>
        <div>+                          if (it-&gt;expire &lt;= now) {</div>
        <div>                                LM_DBG(&quot;skipping expired
          entry&quot;);</div>
        <div>                                it = it-&gt;next;</div>
        <div>                                continue;</div>
        <div>+                          }</div>
        <div>                        }</div>
        <div> </div>
      </div>
      <div><br>
      </div>
      <div>If this is the right fix for the bug, can someone commit this
        to the main?</div>
      <div><br>
      </div>
      <div>Thanks</div>
      <div>Krishna Kura</div>
      <div><br>
        <div class="gmail_quote">
          On Wed, Mar 7, 2012 at 9:48 PM, Krishna Kurapati <span dir="ltr">&lt;<a href="mailto:kkurapat@gmail.com" target="_blank">kkurapat@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Any help
            on how to backup the htable content to database table? 
            <div><br>
            </div>
            <div>Thanks
              <div>
                <div><br>
                  <br>
                  <div class="gmail_quote">On Tue, Mar 6, 2012 at 5:28
                    PM, Krishna Kurapati <span dir="ltr">&lt;<a href="mailto:kkurapat@gmail.com" target="_blank">kkurapat@gmail.com</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I
                      did little more digging into htable source code.
                      It looks like syncing to database is happening
                      when the module is being
                      <div>
                        destroyed. </div>
                      <div><br>
                      </div>
                      <div>To see if this is working, I tried to stop
                        Kamailio and looked into the database. The
                        htable is still empty. Any configuration</div>
                      <div>changes required to make the process happen?</div>
                      <div><br>
                      </div>
                      <div>Thanks</div>
                      <div>Krish Kura</div>
                      <div>
                        <div>
                          <div><br>
                            <div class="gmail_quote">On Tue, Mar 6, 2012
                              at 8:38 AM, Krishna Kurapati <span dir="ltr">&lt;<a href="mailto:kkurapat@gmail.com" target="_blank">kkurapat@gmail.com</a>&gt;</span>
                              wrote:<br>
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,
                                <div><br>
                                </div>
                                <div>This is my first time attempt using
                                  htable module.</div>
                                <div>How can I back up the htable
                                  content in the database incase the
                                  server restarts. I saw a htable in the
                                  MySQL database.</div>
                                <div>My observation has been that htable
                                  module is not automatically backing up
                                  to database even though I added</div>
                                <div>modparams to point to the database.
                                  Do I need to explicitly backup htable
                                  content to database using sqlops or
                                  some</div>
                                <div>other mechanism?</div>
                                <div><br>
                                </div>
                                <div>Thanks</div>
                                <div>Krish Kura</div>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>