mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-10 08:22:46 -07:00
ss_thread calls pri_grab without lock during overlap dial
Recent changes to chan_dahdi with relation to overlap dialing call pri_grab without first obtaining a lock. (closes issue #17414) Reported by: pdf Patches: bug17414.patch uploaded by jpeeler (license 325) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@272446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6048,6 +6048,7 @@ static void *ss_thread(void *data)
|
||||
ast_dsp_digitreset(p->dsp);
|
||||
}
|
||||
if (p->pri->overlapdial & DAHDI_OVERLAPDIAL_INCOMING) {
|
||||
ast_mutex_lock(&p->lock);
|
||||
if (p->pri->pri) {
|
||||
if (!pri_grab(p, p->pri)) {
|
||||
pri_proceeding(p->pri->pri, p->call, PVT_TO_CHANNEL(p), 0);
|
||||
@@ -6057,6 +6058,7 @@ static void *ss_thread(void *data)
|
||||
ast_log(LOG_WARNING, "Unable to grab PRI on span %d\n", p->span);
|
||||
}
|
||||
}
|
||||
ast_mutex_unlock(&p->lock);
|
||||
}
|
||||
dahdi_enable_ec(p);
|
||||
ast_setstate(chan, AST_STATE_RING);
|
||||
|
||||
Reference in New Issue
Block a user