ARI: Add command to indicate progress to a channel

Adds an ARI command to send a progress indication to a channel.

DeveloperNote: A new ARI endpoint is available at `/channels/{channelId}/progress` to indicate progress to a channel.
This commit is contained in:
Sven Kube
2025-07-30 14:24:07 +02:00
parent 8bfa3be27f
commit 71b538e79f
6 changed files with 172 additions and 2 deletions

View File

@@ -637,6 +637,21 @@ int stasis_app_control_ring_stop(struct stasis_app_control *control)
return 0;
}
static int app_control_progress(struct stasis_app_control *control,
struct ast_channel *chan, void *data)
{
ast_indicate(control->channel, AST_CONTROL_PROGRESS);
return 0;
}
int stasis_app_control_progress(struct stasis_app_control *control)
{
stasis_app_send_command_async(control, app_control_progress, NULL, NULL);
return 0;
}
struct stasis_app_control_mute_data {
enum ast_frame_type frametype;
unsigned int direction;