summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-24 18:24:02 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-24 18:24:02 +0100
commitc5f20ddf3b9f18d24ce38915b0593b93586b5620 (patch)
treeba77322958343008733a6ee3f99f0e8d90654d7c
parent4319330c411e059918d457593d76253757060ee4 (diff)
app: Release the call by releasing the initial request
This will then go through the release procedure of the relevant call instead of letting it timeout on the initial leg.
-rw-r--r--src/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 6ec60ed..38a935e 100644
--- a/src/app.c
+++ b/src/app.c
@@ -59,7 +59,7 @@ 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_leg_release(call->initial);
+ call->initial->release_call(call->initial);
}
void app_route_call(struct call *call, const char *source, const char *dest)