Skip to content

[bug]: cli: Output is truncated from "config show help" #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
InterLinked1 opened this issue Nov 9, 2023 · 0 comments · Fixed by #429
Closed
1 task done

[bug]: cli: Output is truncated from "config show help" #428

InterLinked1 opened this issue Nov 9, 2023 · 0 comments · Fixed by #429
Assignees
Labels
bug support-level-core Functionality with core support level

Comments

@InterLinked1
Copy link
Contributor

Severity

Trivial

Versions

21.0.0

Components/Modules

config.c

Operating Environment

Debian 12

Frequency of Occurrence

Constant

Issue Description

Running certain config related commands results in significantly truncated output.

For example:
config show help app_confbridge bridge_profile

*CLI> config show help app_confbridge bridge_profile
bridge_profile: [category !~ /^general$/ matchfield: type = bridge]

A named profile to apply to specific bridges.

ConfBridge bridges have a profile associated with them that determine their
options. A configuration section is determined to be a 'bridge_profile' when
the 'type' parameter has a value of 'bridge'.

type                      -- Define this configuration category as a bridge profile
jitterbuffer              -- Place a jitter buffer on the conference's audio stream
internal_sample_rate      -- Set the internal native sample rate for mixing the conference
maximum_sample_rate       -- Set the maximum native sample rate for mixing the conference
language                  -- The language used for announcements to the conference.
mixing_interval           -- Sets the internal mixing interval in milliseconds for the bridge
binaural_active           -- If true binaural conferencing with stereo audio is active
record_conference         -- Record the conference starting with the first active user's entra
record_file               -- The filename of the conference recording
record_file_append        -- Append to record file when starting/stopping on same conference r
record_file_timestamp     -- Append the start time to the record_file name so that it is uniqu
record_options            -- Pass additional options to MixMonitor when recording
record_command            -- Execute a command after recording ends
regcontext                -- The name of the context into which to register the name of the co
video_mode                -- Sets how confbridge handles video distribution to the conference
max_members               -- Limit the maximum number of participants for a single conference
sound_                    -- Override the various conference bridge sound files
video_update_discard      -- Sets the amount of time in milliseconds after sending a video upd
remb_send_interval        -- Sets the interval in milliseconds that a combined REMB frame will
remb_behavior             -- Sets how REMB reports are generated from multiple sources
remb_estimated_bitrate    -- Sets the estimated bitrate sent to each participant in REMB repor
enable_events             -- Enables events for this bridge
template                  -- When using the CONFBRIDGE dialplan function, use a bridge profile

The truncation is problematic and the only way to get the full description is to request it for each truncated config option name.

This is due to hardcoded format widths for the description. The intent behind these was to avoid wrapping onto the following line, but the 80-column total width is needlessly short; this increases the length to remove most instances of truncation.

Relevant log output

No response

Asterisk Issue Guidelines

  • Yes, I have read the Asterisk Issue Guidelines
InterLinked1 added a commit to InterLinked1/asterisk that referenced this issue Nov 9, 2023
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: asterisk#428
@jcolp jcolp added support-level-core Functionality with core support level and removed triage labels Nov 9, 2023
asterisk-org-access-app bot pushed a commit that referenced this issue Dec 12, 2023
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
asterisk-org-access-app bot pushed a commit that referenced this issue Dec 12, 2023
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
asterisk-org-access-app bot pushed a commit that referenced this issue Dec 12, 2023
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
asterisk-org-access-app bot pushed a commit that referenced this issue Dec 12, 2023
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
asterisk-org-access-app bot pushed a commit that referenced this issue Jan 12, 2024
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
(cherry picked from commit 98186cb)
asterisk-org-access-app bot pushed a commit that referenced this issue Jan 12, 2024
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
(cherry picked from commit fcf36a8)
asterisk-org-access-app bot pushed a commit that referenced this issue Jan 12, 2024
This increases the format width of option descriptions
to avoid needless truncation for longer descriptions.

Resolves: #428
(cherry picked from commit d20c3e2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug support-level-core Functionality with core support level
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants