[sr-dev] Reloading kamailio.cfg on the fly
Rahul MathuR
rahul.ultimate at gmail.com
Tue May 27 09:48:57 CEST 2014
Hello,
Is it possible to reload kamailio.cfg at the runtime after doing few
modifications on the business rules laid under CNXCC module.
Eg:
#!ifdef CNXCC_CHANNEL
xlog("L_INFO", "Setting up channel based credit control");
$var(max_chan) = 2;
$var(retcode) = cnxcc_set_max_channels("$var(client)", "$var(max_chan)");
if ($var(retcode) == -1) {
xlog("Error setting up credit control");
return;
}
$var(count) = -1;
if (!cnxcc_get_channel_count("$var(client)", "$var(count)")) {
xlog("Error getting customer's channel count");
}
xlog("L_INFO", "CNXCC ROUTE: $var(client) has $var(count) call(s)");
if ($var(retcode) < -1) {
xlog("Too many channels for customer");
sl_send_reply(403, "Forbidden");
if (!cnxcc_terminate_all("$var(client)")) {
xlog("Error terminating customer's calls");
}
exit;
}
#!endif
******************************************************
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 ?
Thanks !
--
Warm Regds.
MathuRahul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140527/ec300766/attachment.html>
More information about the sr-dev
mailing list