mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Implement proper locking on INFO_RECEIVED
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6965,6 +6965,7 @@ static void *pri_dchannel(void *vpri)
|
||||
} else {
|
||||
chanpos = pri_fixup_principle(pri, chanpos, e->ring.call);
|
||||
if (chanpos > -1) {
|
||||
ast_mutex_lock(&pri->pvts[x]->lock);
|
||||
/* queue DTMF frame if the PBX for this call was already started (we're forwarding INFORMATION further on */
|
||||
if (pri->overlapdial && pri->pvts[chanpos]->call==e->ring.call && pri->pvts[chanpos]->owner) {
|
||||
/* how to do that */
|
||||
@@ -6979,6 +6980,7 @@ static void *pri_dchannel(void *vpri)
|
||||
}
|
||||
}
|
||||
}
|
||||
ast_mutex_unlock(&pri->pvts[x]->lock);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user