ARI: Ensure proper channel state on operations.
ARI was recently outfitted with operations to create and dial channels. This leads to the ability to try funny stuff. You could create a channel and then immediately try to play back media on it. You could create a channel, dial it, and while it is ringing attempt to make it continue in the dialplan. This commit attempts to fix this by adding a channel state check to operations that should not be able to operate on outbound channels that have not yet answered. If a channel is in an invalid state, we will send a 412 response. ASTERISK-26047 #close Reported by Mark Michelson Change-Id: I2ca51bf9ef2b44a1dc5a73f2d2de35c62c37dfd8
Showing
- res/ari/resource_channels.c 115 additions, 0 deletionsres/ari/resource_channels.c
- res/res_ari_channels.c 16 additions, 0 deletionsres/res_ari_channels.c
- res/res_ari_recordings.c 1 addition, 0 deletionsres/res_ari_recordings.c
- rest-api/api-docs/channels.json 64 additions, 0 deletionsrest-api/api-docs/channels.json
Loading
Please register or sign in to comment