mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
committed by
Kevin Harwell
parent
d251a961ac
commit
6d3ee9fb93
@@ -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);
|
||||
|
Reference in New Issue
Block a user