[asterisk-commits] rizzo: trunk r47181 - /trunk/apps/app_dial.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Nov 3 17:56:02 MST 2006


Author: rizzo
Date: Fri Nov  3 18:56:02 2006
New Revision: 47181

URL: http://svn.digium.com/view/asterisk?rev=47181&view=rev
Log:
complete previous commit.


Modified:
    trunk/apps/app_dial.c

Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?rev=47181&r1=47180&r2=47181&view=diff
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Fri Nov  3 18:56:02 2006
@@ -921,15 +921,8 @@
 
 	struct ast_bridge_config config;
 	unsigned int calldurationlimit = 0;
-	long timelimit = 0;
-	long play_warning = 0;
-	long warning_freq = 0;
-	const char *warning_sound = NULL;
-	const char *end_sound = NULL;
-	const char *start_sound = NULL;
 	char *dtmfcalled = NULL, *dtmfcalling = NULL;
 	char status[256];
-	int play_to_caller = 0, play_to_callee = 0;
 	int sentringing = 0, moh = 0;
 	const char *outbound_group = NULL;
 	int result = 0;
@@ -1603,13 +1596,6 @@
 		}
 		
 		if (!res) {
-			struct ast_bridge_config config;
-
-			memset(&config,0,sizeof(struct ast_bridge_config));
-			if (play_to_caller)
-				ast_set_flag(&(config.features_caller), AST_FEATURE_PLAY_WARNING);
-			if (play_to_callee)
-				ast_set_flag(&(config.features_callee), AST_FEATURE_PLAY_WARNING);
 			if (ast_test_flag(peerflags, OPT_CALLEE_TRANSFER))
 				ast_set_flag(&(config.features_callee), AST_FEATURE_REDIRECT);
 			if (ast_test_flag(peerflags, OPT_CALLER_TRANSFER))
@@ -1627,12 +1613,6 @@
 			if (ast_test_flag(peerflags, OPT_CALLER_PARK))
 				ast_set_flag(&(config.features_caller), AST_FEATURE_PARKCALL);
 
-			config.timelimit = timelimit;
-			config.play_warning = play_warning;
-			config.warning_freq = warning_freq;
-			config.warning_sound = warning_sound;
-			config.end_sound = end_sound;
-			config.start_sound = start_sound;
 			if (moh) {
 				moh = 0;
 				ast_moh_stop(chan);



More information about the asterisk-commits mailing list