summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-26 06:19:14 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-26 06:22:07 +0100
commit997d72e0fef7da565de026986a8235637fd91bfa (patch)
tree12051da0bf5f095abfee5818543684e15c2a9992
parent2211c3ba567472786274fe00599211cfcfdbdcca (diff)
app: Ask the sip side to create a leg
Create SIP leg and if it is failing release the call
-rw-r--r--src/app.c4
1 files changed, 2 insertions, 2 deletions
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)