From 997d72e0fef7da565de026986a8235637fd91bfa Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 26 Mar 2016 06:19:14 +0100 Subject: app: Ask the sip side to create a leg Create SIP leg and if it is failing release the call --- src/app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app.c') diff --git a/src/app.c b/src/app.c index 38a935e..747625e 100644 --- a/src/app.c +++ b/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) -- cgit v1.2.3