ARI recordings: Issue HTTP failures for recording requests with file conflicts
authorJonathan Rose <jrose@digium.com>
Fri, 25 Oct 2013 21:28:32 +0000 (21:28 +0000)
committerJonathan Rose <jrose@digium.com>
Fri, 25 Oct 2013 21:28:32 +0000 (21:28 +0000)
commitd8a760307e43031033b5607264f7edd8ecfe73a4
tree782649b82cc96f634615d872044764497caec482
parent7b42a6828a1f98862b673f9e1c2b9a5c105231db
ARI recordings: Issue HTTP failures for recording requests with file conflicts

If a file already exists in the recordings directory with the same name as what
we would record, issue a 422 instead of relying on the internal failure and
issuing success.

(closes issue ASTERISK-22623)
Reported by: Joshua Colp
Review: https://reviewboard.asterisk.org/r/2922/
........

Merged revisions 401973 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401999 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_bridges.c
res/ari/resource_channels.c
res/res_ari_bridges.c
res/res_ari_channels.c
res/res_stasis_recording.c
rest-api/api-docs/bridges.json
rest-api/api-docs/channels.json
rest-api/api-docs/events.json
rest-api/api-docs/recordings.json