aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-05-11 09:15:38 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-05-11 11:48:14 +0200
commit44462dadb60f4d55785164ab956689aa64ef7d7f (patch)
treed5dbba75f79ded202ac247e3c64c4f9b0dac652f
parenta85192b2c913a7c64afb597681ac9a48c5c7adf8 (diff)
mgcp: Always restore the endpoint routing when destroying the endpoint
In case MtnSaAllocate failed the code did not restore the audio routing when destroying the endpoint. Move the hw_maybe_loop_endp out of the if statement.
-rw-r--r--src/mgcp_ss7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mgcp_ss7.c b/src/mgcp_ss7.c
index 7b6b578..30284b9 100644
--- a/src/mgcp_ss7.c
+++ b/src/mgcp_ss7.c
@@ -470,8 +470,8 @@ static void mgcp_ss7_do_exec(struct mgcp_ss7 *mgcp, uint8_t type,
mgw_endp->audio_port = UINT_MAX;
mgw_endp->block_processing = 1;
- hw_maybe_loop_endp(mgw_endp);
}
+ hw_maybe_loop_endp(mgw_endp);
break;
case MGCP_SS7_ALLOCATE:
hw_maybe_connect(mgw_endp);