]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CLI: Refactor cli_complete.
authorCorey Farrell <git@cfware.com>
Tue, 7 Nov 2017 21:34:40 +0000 (16:34 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 21 Nov 2017 14:56:29 +0000 (09:56 -0500)
commit26a400c67a36caa1c16bd491268249ab3cfa413c
treed2adf7af05fd22b4b5601a511cd3db79567f9540
parente723331f4f0aa59656e0246524866c97a477ed0d
CLI: Refactor cli_complete.

* Stop using "_COMMAND NUMMATCHES" on remote consoles.  Using this
  command had doubled the amount of work needed from the Asterisk
  daemon for each completion request.
* Fix code formatting.
* Remove static buffer used to send the command, use the same buffer
  that will receive the results.
* Move sort from ast_cli_display_match_list.

Change-Id: Ie2211b519a3d4bec45bf46e0095bdd01d384cb69
main/asterisk.c