ARI: Add duplicate channel ID checking for channel creation.

This is similar to what is done for origination, but for the 14 and up
channel creation method. When attempting to create a channel, if a
channel ID is specified and a channel already exists with that ID, then
a 409 is returned.

Change-Id: I77f9253278c6947939c418073b6b31065489187c
This commit is contained in:
Mark Michelson
2016-10-19 12:05:28 -05:00
parent e459b8dadf
commit 3bd76dd679
3 changed files with 13 additions and 1 deletions

View File

@@ -217,6 +217,12 @@
"allowMultiple": false,
"dataType": "string"
}
],
"errorResponses": [
{
"code": 409,
"reason": "Channel with given unique ID already exists."
}
]
}
]