[asterisk-dev] Channel lock in "core show channel" CLI command ?

Kevin P. Fleming kpfleming at digium.com
Thu Sep 15 16:03:46 CDT 2011


On 09/15/2011 12:18 PM, Pavel Troller wrote:

>    I've made a patch for 1.8 branch, which is attached. I think it's just a few
> lines. Maybe the fixed static buffers are not the best solution, it was just a
> proof of concept, and it works here perfectly. Now you can do everything during
> the command, including Scroll Lock, and it has no impact on the channel
> itself (btw a Scroll Lock/Ctrl-S is a Good Thing, if the command output is
> really long).

You would want to use a thread-local ast_str (dynamic string) object 
here, so that the buffers are not fixed size but also don't have to be 
allocated/freed every time the command is run.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list