diff options
author | Jonathan Rose <jrose@digium.com> | 2013-10-25 22:01:43 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-10-25 22:01:43 +0000 |
commit | 5c696bde67411848e4bbbc2cc18c2f881a0a7ead (patch) | |
tree | 48cb93ea327e770c325918b84d21c78352dd2981 /res/res_ari_channels.c | |
parent | d8a760307e43031033b5607264f7edd8ecfe73a4 (diff) |
ARI: channel/bridge recording errors when invalid format specified
Asterisk will now issue 422 if recording is requested against channels
or bridges with an unknown format
(closes issue ASTERISK-22626)
Reported by: Joshua Colp
Review: https://reviewboard.asterisk.org/r/2939/
........
Merged revisions 402001 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_ari_channels.c')
-rw-r--r-- | res/res_ari_channels.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_ari_channels.c b/res/res_ari_channels.c index 8ff4c065c..79aa88492 100644 --- a/res/res_ari_channels.c +++ b/res/res_ari_channels.c @@ -993,6 +993,7 @@ static void ast_ari_record_channel_cb( case 400: /* Invalid parameters */ case 404: /* Channel not found */ case 409: /* Channel is not in a Stasis application; the channel is currently bridged with other hcannels; A recording with the same name already exists on the system and can not be overwritten because it is in progress or ifExists=fail */ + case 422: /* The format specified is unknown on this system */ is_valid = 1; break; default: |