mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
res_ari_channels: Add the ability to stop locally generated ringing on a channel.
Using the 'ring' operation it is possible to start locally generated ringback if the channel is answered. This change adds the ability to stop it by using DELETE. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -341,6 +341,21 @@ int stasis_app_control_ring(struct stasis_app_control *control)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void *app_control_ring_stop(struct stasis_app_control *control,
|
||||
struct ast_channel *chan, void *data)
|
||||
{
|
||||
ast_indicate(control->channel, -1);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int stasis_app_control_ring_stop(struct stasis_app_control *control)
|
||||
{
|
||||
stasis_app_send_command_async(control, app_control_ring_stop, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct stasis_app_control_mute_data {
|
||||
enum ast_frame_type frametype;
|
||||
unsigned int direction;
|
||||
|
Reference in New Issue
Block a user