summaryrefslogtreecommitdiff
path: root/main/features_config.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-07-23 15:28:11 +0000
committerMark Michelson <mmichelson@digium.com>2013-07-23 15:28:11 +0000
commitbf22391b8d3ab34d8bfea29cf8a8ac66a80c2733 (patch)
tree9c4f35b55aea44e79fd9501b9616fc4125b7961d /main/features_config.c
parente148c6e867540675d1f26e54fa91b3497d0e8b6f (diff)
Make DTMF attended transfer support feature-complete.
This greatly modifies the operation of DTMF attended transfers so that the full range of options from features.conf applies. In addition, a new option has been added that allows for a transferer to switch between bridges during a transfer before completing the transfer. (closes issue ASTERISK-21543) reported by Matt Jordan Review: https://reviewboard.asterisk.org/r/2654 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395151 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/features_config.c')
-rw-r--r--main/features_config.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/features_config.c b/main/features_config.c
index 66fdbfae8..bebd593d1 100644
--- a/main/features_config.c
+++ b/main/features_config.c
@@ -106,6 +106,16 @@
the transferees, and the transfer target all being in a single bridge together.</para>
</description>
</configOption>
+ <configOption name="atxferswap" default="*4">
+ <synopsis>Digits to dial to toggle who the transferrer is currently bridged to during an attended transfer</synopsis>
+ <description>
+ <para>This option is only available to the transferrer during an attended
+ transfer operation. Pressing this DTMF sequence will result in the transferrer swapping
+ which party he is bridged with. For instance, if the transferrer is currently bridged with
+ the transfer target, then pressing this DTMF sequence will cause the transferrer to be
+ bridged with the transferees.</para>
+ </description>
+ </configOption>
<configOption name="pickupexten" default="*8">
<synopsis>Digits used for picking up ringing calls</synopsis>
<description>
@@ -355,6 +365,7 @@
#define DEFAULT_ATXFER_ABORT "*1"
#define DEFAULT_ATXFER_COMPLETE "*2"
#define DEFAULT_ATXFER_THREEWAY "*3"
+#define DEFAULT_ATXFER_SWAP "*4"
/*! Default pickup options */
#define DEFAULT_PICKUPEXTEN "*8"
@@ -846,6 +857,8 @@ static int xfer_set(struct ast_features_xfer_config *xfer, const char *name,
ast_string_field_set(xfer, atxfercomplete, value);
} else if (!strcasecmp(name, "atxferthreeway")) {
ast_string_field_set(xfer, atxferthreeway, value);
+ } else if (!strcasecmp(name, "atxferswap")) {
+ ast_string_field_set(xfer, atxferswap, value);
} else {
/* Unrecognized option */
res = -1;
@@ -879,6 +892,8 @@ static int xfer_get(struct ast_features_xfer_config *xfer, const char *field,
ast_copy_string(buf, xfer->atxfercomplete, len);
} else if (!strcasecmp(field, "atxferthreeway")) {
ast_copy_string(buf, xfer->atxferthreeway, len);
+ } else if (!strcasecmp(field, "atxferswap")) {
+ ast_copy_string(buf, xfer->atxferswap, len);
} else {
/* Unrecognized option */
res = -1;
@@ -1629,6 +1644,8 @@ static int load_config(void)
DEFAULT_ATXFER_COMPLETE, xfer_handler, 0);
aco_option_register_custom(&cfg_info, "atxferthreeway", ACO_EXACT, global_options,
DEFAULT_ATXFER_THREEWAY, xfer_handler, 0);
+ aco_option_register_custom(&cfg_info, "atxferswap", ACO_EXACT, global_options,
+ DEFAULT_ATXFER_SWAP, xfer_handler, 0);
aco_option_register_custom(&cfg_info, "pickupexten", ACO_EXACT, global_options,
DEFAULT_PICKUPEXTEN, pickup_handler, 0);