From 550264987f6c4a953b9d4f71ec45054c6dbddbc0 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 7 May 2016 11:52:24 +0200 Subject: [PATCH] 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. --- src/main.c | 7 +++---- 1 file 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);