[asterisk-commits] mnicholson: trunk r205700 - /trunk/addons/chan_mobile.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 9 16:32:34 CDT 2009


Author: mnicholson
Date: Thu Jul  9 16:32:31 2009
New Revision: 205700

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=205700
Log:
Fix mbl_fixup() in chan_mobile to update newchan->tech_pvt instead of oldchan.

Modified:
    trunk/addons/chan_mobile.c

Modified: trunk/addons/chan_mobile.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/addons/chan_mobile.c?view=diff&rev=205700&r1=205699&r2=205700
==============================================================================
--- trunk/addons/chan_mobile.c (original)
+++ trunk/addons/chan_mobile.c Thu Jul  9 16:32:31 2009
@@ -1100,10 +1100,10 @@
 static int mbl_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
 {
 
-	struct mbl_pvt *pvt = oldchan->tech_pvt;
+	struct mbl_pvt *pvt = newchan->tech_pvt;
 
 	if (!pvt) {
-		ast_debug(1, "fixup failed, no pvt on oldchan\n");
+		ast_debug(1, "fixup failed, no pvt on newchan\n");
 		return -1;
 	}
 




More information about the asterisk-commits mailing list