[asterisk-commits] rmudgett: trunk r392933 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 25 20:39:05 CDT 2013


Author: rmudgett
Date: Tue Jun 25 20:39:04 2013
New Revision: 392933

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392933
Log:
AMI Bridge action: Get channel xfer config after we have found the second channel.

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=392933&r1=392932&r2=392933
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Tue Jun 25 20:39:04 2013
@@ -4390,10 +4390,7 @@
 		astman_send_error(s, m, buf);
 		return 0;
 	}
-
 	xfer_cfg_a = ast_get_chan_features_xfer_config(chana);
-	xfer_cfg_b = ast_get_chan_features_xfer_config(chanb);
-
 	ast_channel_lock(chana);
 	chana_name = ast_strdupa(ast_channel_name(chana));
 	chana_exten = ast_strdupa(ast_channel_exten(chana));
@@ -4410,6 +4407,7 @@
 		astman_send_error(s, m, buf);
 		return 0;
 	}
+	xfer_cfg_b = ast_get_chan_features_xfer_config(chanb);
 	ast_channel_lock(chanb);
 	chanb_name = ast_strdupa(ast_channel_name(chanb));
 	chanb_exten = ast_strdupa(ast_channel_exten(chanb));
@@ -5061,8 +5059,8 @@
 	}
 
 	xfer_cfg = ast_get_chan_features_xfer_config(current_dest_chan);
-
-	if (ast_bridge_add_channel(bridge, current_dest_chan, peer_features, ast_test_flag(&opts, BRIDGE_OPT_PLAYTONE), xfer_cfg ? xfer_cfg->xfersound : NULL)) {
+	if (ast_bridge_add_channel(bridge, current_dest_chan, peer_features,
+		ast_test_flag(&opts, BRIDGE_OPT_PLAYTONE), xfer_cfg ? xfer_cfg->xfersound : NULL)) {
 		ast_bridge_features_destroy(peer_features);
 		ast_bridge_features_cleanup(&chan_features);
 		ast_bridge_destroy(bridge);




More information about the asterisk-commits mailing list