<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>