dect
/
asterisk
Archived
13
0
Fork 0

Add missing lock to local_indicate function for connected line frames.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197701 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mmichelson 2009-05-28 18:48:56 +00:00
parent c0d99c36f8
commit a9296071c7
1 changed files with 1 additions and 0 deletions

View File

@ -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;