mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
Fix crash during attended transfer over PRI.
The owner pointers in the sig_pri_chan structure were not getting updated in dahdi_fixup. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6316,6 +6316,14 @@ static int dahdi_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
|
||||
if (analog_lib_handles(p->sig, p->radio, p->oprmode)) {
|
||||
analog_fixup(oldchan, newchan, p->sig_pvt);
|
||||
}
|
||||
#ifdef HAVE_PRI
|
||||
else if (dahdi_sig_pri_lib_handles(p->sig)) {
|
||||
struct sig_pri_chan *pchan = p->sig_pvt;
|
||||
if (pchan->owner == oldchan) {
|
||||
pchan->owner = newchan;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
update_conf(p);
|
||||
ast_mutex_unlock(&p->lock);
|
||||
|
Reference in New Issue
Block a user