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:34 -0500
commit21c0283b7882eae035bca8def02c283720445701 (patch)
tree5f8d2e50081bf1f7ab55af04c631db765d5e64ca /main/features_config.c
parentacf686e6a56fdddfe0921913302aa55d23feead3 (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);