sip: Start the application even if sofia-sip is broken
In case of solely managing the application through the VTY we want/need to have the application running besides a wrong config has been entered. SIP will be broken but a user will be able to see the log message and can fix it.
This commit is contained in:
parent
e4bd8d42e9
commit
550264987f
|
@ -148,10 +148,9 @@ int main(int argc, char **argv)
|
||||||
/* sofia sip */
|
/* sofia sip */
|
||||||
sip_agent_init(&g_app.sip.agent, &g_app);
|
sip_agent_init(&g_app.sip.agent, &g_app);
|
||||||
rc = sip_agent_start(&g_app.sip.agent);
|
rc = sip_agent_start(&g_app.sip.agent);
|
||||||
if (rc < 0) {
|
if (rc < 0)
|
||||||
LOGP(DSIP, LOGL_ERROR, "Failed to initialize SIP.\n");
|
LOGP(DSIP, LOGL_ERROR,
|
||||||
exit(1);
|
"Failed to initialize SIP. Running broken\n");
|
||||||
}
|
|
||||||
|
|
||||||
calls_init();
|
calls_init();
|
||||||
app_setup(&g_app);
|
app_setup(&g_app);
|
||||||
|
|
Loading…
Reference in New Issue