diff options
author | Joshua Colp <jcolp@digium.com> | 2013-11-01 14:38:21 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-11-01 14:38:21 +0000 |
commit | 7678fd040e95205b040d5d7393165990e51462f6 (patch) | |
tree | 7043c0056e8facf9bf0b509ac1254ba5ba25bb78 /res/res_stasis_playback.c | |
parent | 98dea21bc14a16831710beaadb3b859b7b7a0637 (diff) |
res_ari_channels: Add ring operation, dtmf operation, hangup reasons, and tweak early media.
The ring operation sends ringing to the specified channel it is invoked on.
The dtmf operation can be used to send DTMF digits to the specified channel
of a specific length with a wait time in between. Finally hangup reasons
allow you to specify why a channel is being hung up (busy, congestion).
Early media behavior has also been tweaked slightly. When playing media to a channel
it will no longer automatically answer. If it has not been answered a progress indication
is sent instead.
(closes issue ASTERISK-22701)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2916/
........
Merged revisions 402358 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_stasis_playback.c')
-rw-r--r-- | res/res_stasis_playback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_stasis_playback.c b/res/res_stasis_playback.c index b55e39fb2..f112e8b25 100644 --- a/res/res_stasis_playback.c +++ b/res/res_stasis_playback.c @@ -273,7 +273,7 @@ static void play_on_channel(struct stasis_app_playback *playback, } if (ast_channel_state(chan) != AST_STATE_UP) { - ast_answer(chan); + ast_indicate(chan, AST_CONTROL_PROGRESS); } if (ast_begins_with(playback->media, SOUND_URI_SCHEME)) { |