dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@217804 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
jpeeler 2009-09-10 20:52:57 +00:00
parent 9ede9adeb0
commit 15b9bcfd0d
1 changed files with 8 additions and 0 deletions

View File

@ -6315,7 +6315,15 @@ 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);