diff options
author | Thomas Sevestre <thomassevestre@free.fr> | 2017-08-25 13:19:00 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2017-10-12 12:17:57 -0500 |
commit | 2a1d7f97d66b53803208aaccadb0052127f743d6 (patch) | |
tree | f46b6eab128b96d75e4dd0ac3b5008be83bf91c3 /main/features_config.c | |
parent | db108c6fa436b1e2796e5dbfbaed58e88f1b1b62 (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.c | 15 |
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); |