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, view it on GitHub, or mute the thread.