[asterisk-commits] mmichelson: branch mmichelson/more_transfer r387788 - /team/mmichelson/more_t...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 6 16:39:37 CDT 2013


Author: mmichelson
Date: Mon May  6 16:39:35 2013
New Revision: 387788

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=387788
Log:
Be sure to answer unanswered channels before bridging.


Modified:
    team/mmichelson/more_transfer/main/features.c

Modified: team/mmichelson/more_transfer/main/features.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/more_transfer/main/features.c?view=diff&rev=387788&r1=387787&r2=387788
==============================================================================
--- team/mmichelson/more_transfer/main/features.c (original)
+++ team/mmichelson/more_transfer/main/features.c Mon May  6 16:39:35 2013
@@ -7197,6 +7197,9 @@
 		snprintf(buf, size, "Could not gain control of channel %s\n", ast_channel_name(chan));
 		return -1;
 	}
+	if (ast_channel_state(bridge_chan) != AST_STATE_UP) {
+		ast_answer(bridge_chan);
+	}
 	if (play_tone && !ast_strlen_zero(xfersound) && !ast_streamfile(bridge_chan,
 				xfersound, ast_channel_language(bridge_chan))) {
 		if (ast_waitstream(bridge_chan, "") < 0) {
@@ -7226,7 +7229,6 @@
  */
 static int action_bridge(struct mansession *s, const struct message *m)
 {
-	/* XXX Refcounts need addressing */
 	const char *channela = astman_get_header(m, "Channel1");
 	const char *channelb = astman_get_header(m, "Channel2");
 	const char *playtone = astman_get_header(m, "Tone");




More information about the asterisk-commits mailing list