aboutsummaryrefslogtreecommitdiffstats
path: root/src/mgcp_ss7.c
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:46:31 +0200
commit4d47451521aafdda6e3371fbccfcf293444dcf3b (patch)
tree1396df31e63498130f8c8e361d9bb6f0604fff49 /src/mgcp_ss7.c
parentd56ddfc380ce53e08681764524f86a60249f89e8 (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.
Diffstat (limited to 'src/mgcp_ss7.c')
-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 bdb793b..4986d25 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);