summaryrefslogtreecommitdiff
path: root/main/features_config.c
diff options
context:
space:
mode:
authorThomas Sevestre <thomassevestre@free.fr>2017-08-25 13:19:00 +0000
committerKevin Harwell <kharwell@digium.com>2017-10-12 13:31:16 -0500
commiteadea6f55b5780f53d3bcf981358612be45b1651 (patch)
tree018155ab34696c692e057f82c61ece1c84919d9b /main/features_config.c
parent59f732b6754b79f40e95e6192ced21d765752a4c (diff)
features, manager : Add CancelAtxfer AMI action
Add action to cancel feature attended transfer with AMI interface ASTERISK-27215 #close Change-Id: Iab8a81362b5a1757e2608f70b014ef863200cb42
Diffstat (limited to 'main/features_config.c')
-rw-r--r--main/features_config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/features_config.c b/main/features_config.c
index 8307b1209..72cd0404f 100644
--- a/main/features_config.c
+++ b/main/features_config.c
@@ -1173,6 +1173,21 @@ char *ast_get_chan_features_xferfailsound(struct ast_channel *chan)
return res;
}
+char *ast_get_chan_features_atxferabort(struct ast_channel *chan)
+{
+ char *res;
+ struct ast_features_xfer_config *cfg = ast_get_chan_features_xfer_config(chan);
+
+ if (!cfg) {
+ return NULL;
+ }
+
+ res = ast_strdup(cfg->atxferabort);
+ ao2_ref(cfg, -1);
+
+ return res;
+}
+
struct ast_features_pickup_config *ast_get_chan_features_pickup_config(struct ast_channel *chan)
{
RAII_VAR(struct features_config *, cfg, NULL, ao2_cleanup);