exit if the sip agent failed to start
When the sip agent start fails (i.e. port can not bind because IP doesn't exist) exit the sip-connector Relates: OS#4197 Change-Id: I22ed16c77391b4f270df498dda587ed657279390changes/32/15532/2
parent
5e3c9d7224
commit
632156a4a8
|
@ -158,9 +158,11 @@ 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)
|
||||
if (rc < 0) {
|
||||
LOGP(DSIP, LOGL_ERROR,
|
||||
"Failed to initialize SIP. Running broken\n");
|
||||
"Failed to initialize SIP\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
calls_init();
|
||||
app_setup(&g_app);
|
||||
|
|
Loading…
Reference in New Issue