summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-05-07 11:52:24 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-05-07 11:52:24 +0200
commit550264987f6c4a953b9d4f71ec45054c6dbddbc0 (patch)
tree3c369ec8ad67a59e88f12699a285abb50a9788f7
parente4bd8d42e98cadab453f6a20c4b395c56e713ed8 (diff)
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.
-rw-r--r--src/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index cf045cb..ae4f20a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -148,10 +148,9 @@ int main(int argc, char **argv)
/* sofia sip */
sip_agent_init(&g_app.sip.agent, &g_app);
rc = sip_agent_start(&g_app.sip.agent);
- if (rc < 0) {
- LOGP(DSIP, LOGL_ERROR, "Failed to initialize SIP.\n");
- exit(1);
- }
+ if (rc < 0)
+ LOGP(DSIP, LOGL_ERROR,
+ "Failed to initialize SIP. Running broken\n");
calls_init();
app_setup(&g_app);