[Home]

Summary:ASTERISK-26047: ARI allows certain commands to run on down channels.
Reporter:Mark Michelson (mmichelson)Labels:
Date Opened:2016-05-20 14:34:46Date Closed:2016-06-09 21:52:16
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_stasis
Versions:Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:ARI recently was given new commands to create and to dial a channel. This allows for people to attempt weird things such as creating a channel and then trying to playback media on it. Right now, ARI does not perform channel state checking to see if it makes sense to be performing certain operations on the channel. The result is that ARI will happily report that it will play the media on the channel, but then will fail to do so once it actually tries to do it.

ARI needs to be prepared to notice the bad state and give an immediate 409 response to indicate the channel is not in the proper state to execute such commands.

So far, the operations this is known to affect are:
* Playing back media
* Continuing in the dialplan

There may be others as well, so when fixing this, it's probably a good idea to comb through the ARI channel commands to see if there are others that need the same treatment.
Comments: