[Home]

Summary:ASTERISK-19444: Usage for CLI command 'devstate change' is truncated by an unnecessary comma
Reporter:Makoto Dei (makoto)Labels:
Date Opened:2012-02-28 20:11:51.000-0600Date Closed:2012-05-03 15:16:19
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Functions/func_devstate
Versions:1.8.9.3 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) devstate-change-usage-truncate.patch
Description:In Asterisk CLI, 'help devstate change' should say

Usage: devstate change <device> <state>
      Change a custom device to a new state.
      The possible values for the state are:
UNKNOWN | NOT_INUSE | INUSE | BUSY | INVALID | UNAVAILABLE | RINGING
RINGINUSE | ONHOLD

Examples:
      devstate change Custom:mystate1 INUSE
      devstate change Custom:mystate1 NOT_INUSE

     
but it says

Usage: devstate change <device> <state>
      Change a custom device to a new state.
      The possible values for the state are:
UNKNOWN | NOT_INUSE | INUSE | BUSY | INVALID | UNAVAILABLE | RINGING
RINGINUSE | ONHOLD


Examples are missing because of an unnecessary comma.
See attached patch for detail.
Comments:By: Walter Doekes (wdoekes) 2012-02-29 01:42:06.475-0600

Thank you for reporting. This was already noticed in this bigger patch:
https://reviewboard.asterisk.org/r/1743/diff/#index_header

By: Richard Mudgett (rmudgett) 2012-02-29 10:36:22.783-0600

That larger patch is intended for trunk.  This is a problem with v1.8 and up.