Conventional recorder info for MQTT and status-server plugins #744
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Conventional recorders are not displayed in plugins such as MQTT or status-server, or in console logs.
This is addressed by giving each type of conventional recorder (P25c, Analog Conventional, DMR) a separate vector that will be represented in such functions as:
get_recorders()
,print_recorders()
,digital_recorder_count()
, andanalog_recorder_count()
.Analog conventional recorders are currently listed in
analog_recorders
along with trunked recorders. While it seems unlikely that a trunked system would be able to preempt an idle conventional recorder, a separate vector for conventional analog addresses any potential overlap between system types.To differentiate conventional recorders from their trunked counterparts,
make_xxxx_recorder()
functions accept atype
string instead of relying on a hard-coded value when the recorder instance is created. This way, status plugins will not not only display conventional recorders, but can show "P25" or "P25C".Conventional recorder types are now visible in the periodic console message, along with the center frequency of each source. This status message has also been indented to match the
Currently Active Calls
display immediately above it.Any installed MQTT plugins will need to be recompiled after these changes, but no further action is required to display conventional recorders in messages.