[svn-commits] mmichelson: branch mmichelson/atxfer_features r393470 - /team/mmichelson/atxf...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Jul 2 14:01:34 CDT 2013
Author: mmichelson
Date: Tue Jul 2 14:01:32 2013
New Revision: 393470
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393470
Log:
Play the transfer complete sound when transfers complete.
Modified:
team/mmichelson/atxfer_features/main/bridging_basic.c
Modified: team/mmichelson/atxfer_features/main/bridging_basic.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/atxfer_features/main/bridging_basic.c?view=diff&rev=393470&r1=393469&r2=393470
==============================================================================
--- team/mmichelson/atxfer_features/main/bridging_basic.c (original)
+++ team/mmichelson/atxfer_features/main/bridging_basic.c Tue Jul 2 14:01:32 2013
@@ -936,6 +936,8 @@
char context[AST_MAX_CONTEXT];
/*! Sound to play on failure */
char failsound[PATH_MAX];
+ /*! Sound to play when transfer completes */
+ char xfersound[PATH_MAX];
/*! The channel technology of the transferer channel */
char transferer_type[AST_CHANNEL_NAME];
/*! The transferer channel address */
@@ -1000,6 +1002,7 @@
props->atxferloopdelay = xfer_cfg->atxferloopdelay;
ast_copy_string(props->context, get_transfer_context(transferer, context), sizeof(props->context));
ast_copy_string(props->failsound, xfer_cfg->xferfailsound, sizeof(props->failsound));
+ ast_copy_string(props->xfersound, xfer_cfg->xfersound, sizeof(props->xfersound));
tech = ast_strdupa(ast_channel_name(props->transferer));
addr = strchr(tech, '/');
@@ -1517,6 +1520,8 @@
static int threeway_enter(struct attended_transfer_properties *props)
{
bridge_merge(props->transferee_bridge, props->target_bridge, NULL, 0);
+ play_sound(props->transfer_target, props->xfersound);
+ play_sound(props->transferer, props->xfersound);
publish_transfer_threeway(props);
return 0;
@@ -1608,6 +1613,7 @@
static int complete_enter(struct attended_transfer_properties *props)
{
bridge_merge(props->transferee_bridge, props->target_bridge, &props->transferer, 1);
+ play_sound(props->transfer_target, props->xfersound);
publish_transfer_success(props);
return 0;
}
More information about the svn-commits
mailing list