Skip to content
Snippets Groups Projects
Commit 08f0ec4e authored by Mark Michelson's avatar Mark Michelson
Browse files

Add missing lock to local_indicate function for connected line frames.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e9e4efdc
Branches
Tags
No related merge requests found
...@@ -416,6 +416,7 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da ...@@ -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 * 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 * happens to be in this control frame. The same applies for redirecting information, which
* is why it is handled here as well.*/ * is why it is handled here as well.*/
ast_mutex_lock(&p->lock);
isoutbound = IS_OUTBOUND(ast, p); isoutbound = IS_OUTBOUND(ast, p);
if (isoutbound) { if (isoutbound) {
this_channel = p->chan; this_channel = p->chan;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment