<p>Hi <a href="https://github.com/jayesh1017" class="user-mention">@jayesh1017</a>,</p>

<p>Thanks for pointing out. From the commit I shouldn't reset the <code>reg_xavp_cfg</code> since there are other functions like <code>registered()</code> would use it. Here's the diff and I will create a new pull request for this soon.</p>

<div class="highlight highlight-source-diff"><pre><span class="pl-md">--- a/modules/registrar/reg_mod.c</span>
<span class="pl-mi1">+++ b/modules/registrar/reg_mod.c</span>
<span class="pl-mdr">@@ -365,7 +365,6 @@</span> static int mod_init(void)
        } else if (reg_xavp_cfg.s) {
                if (reg_xavp_cfg.len == 0 || sock_flag == -1) {
                        LM_WARN("empty reg_xavp_cfg or sock_flag no set -> resetting\n");
<span class="pl-md">-                       reg_xavp_cfg.len = 0;</span>
                        sock_flag = -1;
                }
        } else if (sock_flag!=-1) {</pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/470#issuecomment-171556933">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zd85s4W4PoNlG8cjeIWB4MOPlo73ks5pZz7egaJpZM4HATon.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/pull/470#issuecomment-171556933"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>