Summary:ASTERISK-18571: "core show channel" CLI command blocks the channel during output
Reporter:Pavel Troller (patrol-cz)Labels:
Date Opened:2011-09-17 23:06:46Date Closed:2011-11-11 12:01:15.000-0600
Versions:SVN Frequency of
Environment:AnyAttachments:( 0) cli.diff
Description:'core show channel' CLI command uses direct calls to ast_cli during its printout. The channel being shown is locked by the command. On the Asterisk primary console, the printout is handled synchronously. In any case, causing blocking/slowdown of the physical output (slow, i.e. framebuffer console, pressing the Scroll Lock key by the operator etc), the channel call processing stops, which leads to audio drops and other possible effects.
Comments:By: Pavel Troller (patrol-cz) 2011-09-17 23:08:47.183-0500

The attached patch minimizes the channel locking time by buffering the output to the dynamic string buffer. The physical printout appears after unlocking the channel again, so any slowdown or blockage during it cannot influence the channel processing.