[asterisk-commits] file: branch file/bridging r107005 - /team/file/bridging/apps/app_confbridge.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Mar 8 15:39:19 CST 2008


Author: file
Date: Sat Mar  8 15:39:19 2008
New Revision: 107005

URL: http://svn.digium.com/view/asterisk?view=rev&rev=107005
Log:
Remove my silly test.

Modified:
    team/file/bridging/apps/app_confbridge.c

Modified: team/file/bridging/apps/app_confbridge.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/apps/app_confbridge.c?view=diff&rev=107005&r1=107004&r2=107005
==============================================================================
--- team/file/bridging/apps/app_confbridge.c (original)
+++ team/file/bridging/apps/app_confbridge.c Sat Mar  8 15:39:19 2008
@@ -294,39 +294,6 @@
 	return res;
 }
 
-static void test_bridge_tech(struct ast_bridge *bridge, struct ast_channel *chan, const char *filename)
-{
-	int cause;
-	struct ast_channel *bridge_chan = NULL;
-
-	/* Try to get a Bridge channel to the bridge being used for this conference bridge */
-	if (!(bridge_chan = ast_request("Bridge", chan->nativeformats, "", &cause))) {
-		ast_log(LOG_NOTICE, "Failed to request channel.\n");
-		return;
-	}
-
-	/* Now that we have the channel we have to say what bridge they should become part of */
-	bridge_chan->bridge = bridge;
-
-	/* Now that that is done... actually connect them to it */
-	if (ast_call(bridge_chan, "", 0)) {
-		ast_hangup(bridge_chan);
-		ast_log(LOG_NOTICE, "Oh dear, we screwed up\n");
-		return;
-	}
-
-	/* Huh it worked... */
-	ast_autoservice_start(chan);
-
-	ast_streamfile(bridge_chan, filename, bridge_chan->language);
-	ast_waitstream(bridge_chan, "");
-
-	ast_hangup(bridge_chan);
-
-	ast_autoservice_stop(chan);
-
-	return;
-}
 /*! \brief The ConfBridge application */
 static int app_exec(struct ast_channel *chan, void *data)
 {
@@ -369,8 +336,6 @@
 		ast_bridge_features_hook(&features, "#", menu_callback, &conference_bridge_user);
 	}
 
-	test_bridge_tech(conference_bridge->bridge, chan, "tt-monkeys");
-
 	/* Join our conference bridge for real */
 	ast_bridge_join(conference_bridge->bridge, chan, NULL, &features);
 




More information about the asterisk-commits mailing list