[svn-commits] mmichelson: branch 12 r420387 - /branches/12/main/bridge.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Aug 7 14:44:02 CDT 2014


Author: mmichelson
Date: Thu Aug  7 14:43:59 2014
New Revision: 420387

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=420387
Log:
Ensure bridges exist when trying to determine bridged parties when publishing transfer information.


Modified:
    branches/12/main/bridge.c

Modified: branches/12/main/bridge.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/bridge.c?view=diff&rev=420387&r1=420386&r2=420387
==============================================================================
--- branches/12/main/bridge.c (original)
+++ branches/12/main/bridge.c Thu Aug  7 14:43:59 2014
@@ -3879,8 +3879,12 @@
 		publication->to_transfer_target.bridge = to_target_bridge;
 	}
 
-	publication->transferee_channel = ast_bridge_peer(to_transferee_bridge, to_transferee);
-	publication->target_channel = ast_bridge_peer(to_target_bridge, to_transfer_target);
+	if (to_transferee_bridge) {
+		publication->transferee_channel = ast_bridge_peer(to_transferee_bridge, to_transferee);
+	}
+	if (to_target_bridge) {
+		publication->target_channel = ast_bridge_peer(to_target_bridge, to_transfer_target);
+	}
 }
 
 /*




More information about the svn-commits mailing list