app: Ask the sip side to create a leg

Create SIP leg and if it is failing release the call
zecke/mt-mncc-call
Holger Hans Peter Freyther 7 years ago
parent 2211c3ba56
commit 997d72e0fe
  1. 4
      src/app.c

@ -58,8 +58,8 @@ void app_setup(struct app_config *cfg)
static void route_to_sip(struct call *call, const char *source, const char *dest)
{
LOGP(DAPP, LOGL_ERROR, "Can not route call(%u) to SIP yet\n", call->id);
call->initial->release_call(call->initial);
if (sip_create_remote_leg(&g_app.sip.agent, call, source, dest) != 0)
call->initial->release_call(call->initial);
}
void app_route_call(struct call *call, const char *source, const char *dest)

Loading…
Cancel
Save