From dac13bed500ad218143bab3fad95ec2ca316eabd Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 26 Mar 2016 21:09:07 +0100 Subject: 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. --- src/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app.c') 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); } } -- cgit v1.2.3