<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    the config logic cannot be reloaded. There are options to change
    various parameters at runtime without restart.<br>
    <br>
    The logic can be reloaded if it is written in Lua (or, I guess, in
    some other embedded scripting language).<br>
    <br>
    On the other hand, restarting kamailio doesn't affect ongoing calls
    at all, and extremely rarely affects initiated transactions, they
    typically recover due to retransmissions.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 27/05/14 09:48, Rahul MathuR wrote:<br>
    </div>
    <blockquote
cite="mid:CAM8wsqJp1Sz5pvqODmw3HTsp5yhTNiJb-Evk-ezkV_CVdiECjQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello,</div>
        <div> </div>
        <div>Is it possible to reload kamailio.cfg at the runtime after
          doing few modifications on the business rules laid under CNXCC
          module.</div>
        <div> </div>
        <div>Eg:</div>
        <p>#!ifdef CNXCC_CHANNEL </p>
        <div>
        </div>
        <p>xlog("L_INFO", "Setting up channel based credit control");</p>
        <div>
        </div>
        <p>$var(max_chan) = 2;</p>
        <div>
        </div>
        <p>$var(retcode) = cnxcc_set_max_channels("$var(client)",
          "$var(max_chan)");</p>
        <div>
        </div>
        <p>if ($var(retcode) == -1) {</p>
        <div>
        </div>
        <p>xlog("Error setting up credit control");</p>
        <div>
        </div>
        <p>return;</p>
        <div>
        </div>
        <p>}</p>
        <div>
        </div>
        <p>$var(count) = -1;</p>
        <div>
        </div>
        <p>if (!cnxcc_get_channel_count("$var(client)", "$var(count)"))
          {</p>
        <div>
        </div>
        <p>xlog("Error getting customer's channel count");</p>
        <div>
        </div>
        <p>}</p>
        <div>
        </div>
        <p>xlog("L_INFO", "CNXCC ROUTE: $var(client) has $var(count)
          call(s)");</p>
        <div>
        </div>
        <p>if ($var(retcode) < -1) {</p>
        <div>
        </div>
        <p>xlog("Too many channels for customer");</p>
        <div>
        </div>
        <p>sl_send_reply(403, "Forbidden");</p>
        <div>
        </div>
        <p>if (!cnxcc_terminate_all("$var(client)")) {</p>
        <div>
        </div>
        <p>xlog("Error terminating customer's calls");</p>
        <div>
        </div>
        <p>}</p>
        <div>
        </div>
        <p>exit;</p>
        <div>
        </div>
        <p>}</p>
        <div>
          #!endif</div>
        <div>******************************************************</div>
        <div> </div>
        <div>Now I want to change the value of max_chan on the fly. Does
          this step neccassitates a restart of kamailio process as a
          whole ? If no, then could somebody please guide me how to
          achieve this ?</div>
        <div> </div>
        <div> </div>
        <div>Thanks !</div>
        <div> </div>
        <div> </div>
        <div> </div>
        <div><br clear="all">
          <br>
          -- <br>
          Warm Regds.<br>
          MathuRahul<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>