mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
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:
@@ -386,6 +386,7 @@ static void ast_ari_channels_create_cb(
|
||||
break;
|
||||
case 500: /* Internal Server Error */
|
||||
case 501: /* Not Implemented */
|
||||
case 409: /* Channel with given unique ID already exists. */
|
||||
is_valid = 1;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user