summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_local.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 7e7ef3c4e..6f910931e 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -416,6 +416,7 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da
* we need to transmit the collected connected line information instead of whatever
* happens to be in this control frame. The same applies for redirecting information, which
* is why it is handled here as well.*/
+ ast_mutex_lock(&p->lock);
isoutbound = IS_OUTBOUND(ast, p);
if (isoutbound) {
this_channel = p->chan;