features, manager : Add CancelAtxfer AMI action

Add action to cancel feature attended transfer with AMI interface

ASTERISK-27215 #close

Change-Id: Iab8a81362b5a1757e2608f70b014ef863200cb42
This commit is contained in:
Thomas Sevestre
2017-08-25 13:19:00 +00:00
committed by Kevin Harwell
parent d251a961ac
commit 6d3ee9fb93
4 changed files with 96 additions and 0 deletions

View File

@@ -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);