diff options
author | Mark Michelson <mmichelson@digium.com> | 2016-10-19 12:05:28 -0500 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2016-10-20 13:00:10 -0500 |
commit | 3bd76dd679a88c0c96e2f6979d18bc0096c68c79 (patch) | |
tree | d2581b5bd62328773e4c87f0ab75f2d6b544351d /res/res_ari_channels.c | |
parent | e459b8dadf42a3a015b312dfa9aadf507b4c85d9 (diff) |
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
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 b7c088c4d..9e8eeb4e9 100644 --- a/res/res_ari_channels.c +++ b/res/res_ari_channels.c @@ -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: |