[asterisk-commits] file: branch file/bridging r106396 - /team/file/bridging/main/bridging.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 6 11:36:29 CST 2008


Author: file
Date: Thu Mar  6 11:36:28 2008
New Revision: 106396

URL: http://svn.digium.com/view/asterisk?view=rev&rev=106396
Log:
Use the right sound file when something to do with a transfer fails.

Modified:
    team/file/bridging/main/bridging.c

Modified: team/file/bridging/main/bridging.c
URL: http://svn.digium.com/view/asterisk/team/file/bridging/main/bridging.c?view=diff&rev=106396&r1=106395&r2=106396
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Thu Mar  6 11:36:28 2008
@@ -1314,7 +1314,7 @@
 
 	/* Get a channel that is the destination we wish to call */
 	if (!(chan = dial_transfer(bridge_channel->chan, exten, bridge_channel->chan->context))) {
-		ast_stream_and_wait(bridge_channel->chan, "beep", AST_DIGIT_ANY);
+		ast_stream_and_wait(bridge_channel->chan, "beeperr", AST_DIGIT_ANY);
 		bridge_channel->state = AST_BRIDGE_CHANNEL_STATE_WAIT;
 		return 0;
 	}
@@ -1351,7 +1351,7 @@
 
 	/* Get a channel that is the destination we wish to call */
 	if (!(chan = dial_transfer(bridge_channel->chan, exten, bridge_channel->chan->context))) {
-		ast_stream_and_wait(bridge_channel->chan, "beep", AST_DIGIT_ANY);
+		ast_stream_and_wait(bridge_channel->chan, "beeperr", AST_DIGIT_ANY);
 		bridge_channel->state = AST_BRIDGE_CHANNEL_STATE_WAIT;
 		return 0;
 	}
@@ -1359,7 +1359,7 @@
 	/* Create a bridge to use to talk to the person we are calling */
 	if (!(attended_bridge = ast_bridge_new(AST_BRIDGE_CAPABILITY_1TO1MIX, 0))) {
 		ast_hangup(chan);
-		ast_stream_and_wait(bridge_channel->chan, "beep", AST_DIGIT_ANY);
+		ast_stream_and_wait(bridge_channel->chan, "beeperr", AST_DIGIT_ANY);
 		bridge_channel->state = AST_BRIDGE_CHANNEL_STATE_WAIT;
 		return 0;
 	}
@@ -1393,7 +1393,7 @@
 			ast_bridge_impart(bridge, chan, bridge_channel->chan, NULL);
 		}
 	} else {
-		ast_stream_and_wait(bridge_channel->chan, "beep", AST_DIGIT_ANY);
+		ast_stream_and_wait(bridge_channel->chan, "beeperr", AST_DIGIT_ANY);
 		bridge_channel->state = AST_BRIDGE_CHANNEL_STATE_WAIT;
 	}
 




More information about the asterisk-commits mailing list