summaryrefslogtreecommitdiffstats
path: root/src/app.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-26 21:09:07 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-03-26 21:09:07 +0100
commitdac13bed500ad218143bab3fad95ec2ca316eabd (patch)
tree5e47636c1d1112d45f97e7ebf1da50ba35ccea95 /src/app.c
parent7a30c94030babb10af3d8293d64011df7a2023a0 (diff)
sip/app: Route call from SIP to MNCC and deal with the release
Fix releasing of the leg in case it is not routable and make the differentation if we initiated the invite (send CANCEL) or send a final error. The error code was randomly picked and once we have an enum of causes we can decide where to map it to.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app.c b/src/app.c
index 81b3dfc..36e7cb0 100644
--- a/src/app.c
+++ b/src/app.c
@@ -70,7 +70,7 @@ void app_route_call(struct call *call, const char *source, const char *dest)
else {
LOGP(DAPP, LOGL_ERROR, "Can not route call(%u) to MNCC yet\n",
call->id);
- call_leg_release(call->initial);
+ call->initial->release_call(call->initial);
}
}