summaryrefslogtreecommitdiff
path: root/res/ari
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-03-29 18:06:24 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-03-30 16:31:05 -0500
commit74d63f56eedf02523b3ddbe9c46efa183df77428 (patch)
treed9c942d062e6ac53b54a812c59db65b6973aca3a /res/ari
parente1fdb0a6da0287452837c25b1295baa30b5866ed (diff)
res_ari: Cannot get control also means channel is unavailable.
The only caller of ari_bridges_play_found() has this note: If ari_bridges_play_found fails because the channel is unavailable for playback, The channel will be removed from the playback list soon. We can keep trying to get channels from the list until we either get one that will work or else there isn't a channel for this bridge anymore, in which case we'll revert to ari_bridges_play_new. Change-Id: Ib068141b367ccaa17be0dab4181c98e26c5127d6
Diffstat (limited to 'res/ari')
-rw-r--r--res/ari/resource_bridges.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/res/ari/resource_bridges.c b/res/ari/resource_bridges.c
index ad37053f7..127933ae4 100644
--- a/res/ari/resource_bridges.c
+++ b/res/ari/resource_bridges.c
@@ -527,9 +527,7 @@ static enum play_found_result ari_bridges_play_found(const char *args_media,
control = stasis_app_control_find_by_channel(play_channel);
if (!control) {
- ast_ari_response_error(
- response, 500, "Internal Error", "Failed to get control snapshot");
- return PLAY_FOUND_FAILURE;
+ return PLAY_FOUND_CHANNEL_UNAVAILABLE;
}
ao2_lock(control);