|Summary:||ASTERISK-21552: AMI 1.4 Improvements - Refactor AMI/CLI channel inspection actions to use the stasis channel cache|
|Reporter:||Matt Jordan (mjordan)||Labels:||Asterisk12|
|Date Opened:||2013-04-17 21:26:50||Date Closed:||2013-07-09 12:09:36|
|Description:||In order to minimize locking and interference with channels, AMI should attempt to use the stasis cache where possible when looking up data on a channel. This includes the following:
* GetVar - channel snapshots should contain their channel variables. We can simply look at the snapshot's manager_vars field and return the value from it.
* CoreShowChannels - this should only hit the Stasis channel cache.
* core show channels - inspect the channels using the stasis cache
* core show channel. It may be worthwhile to not print out the information that can't be obtained from the cache, simply to minimize the impact of this command.