[sr-dev] [kamailio/kamailio] Providing dp_reload function to the cfg (#667)
Luis Martin Gil
notifications at github.com
Fri Jun 10 12:08:19 CEST 2016
Notice this _PR_ is about dialplan (not dispatcher)...
`/*
* RPC command to reload dialplan table
*/
static void dialplan_rpc_reload(rpc_t* rpc, void* ctx)
{
if (dp_connect_db() < 0) {
LM_ERR("failed to reload rules fron database (db connect)\n");
rpc->fault(ctx, 500, "DB Connection Error");
return;
}
if(dp_load_db() != 0){
LM_ERR("failed to reload rules fron database (db load)\n");
dp_disconnect_db();
rpc->fault(ctx, 500, "Dialplan Reload Failed");
return;
}
dp_disconnect_db();
return;
}
`
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/667#issuecomment-225144937
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160610/e58e1826/attachment.html>
More information about the sr-dev
mailing list