[asterisk-commits] jpeeler: trunk r217804 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 10 15:53:01 CDT 2009


Author: jpeeler
Date: Thu Sep 10 15:52:57 2009
New Revision: 217804

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=217804
Log:
Fix crash during attended transfer over PRI.

The owner pointers in the sig_pri_chan structure were not getting updated
in dahdi_fixup. 

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=217804&r1=217803&r2=217804
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Thu Sep 10 15:52:57 2009
@@ -6315,7 +6315,15 @@
 
 	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);




More information about the asterisk-commits mailing list