[Home]

Summary:ASTERISK-11624: The tab provided suggestions for the moh command are wrong
Reporter:Christopher K. Johnson (ckjohnsonme)Labels:
Date Opened:2008-03-12 09:21:51Date Closed:2011-06-07 14:07:54
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:chris*CLI> moh
classes  files    reload   show    
chris*CLI> moh classes
No such command 'moh classes' (type 'help' for help)
chris*CLI> help moh
              moh reload  Music On Hold
        moh show classes  List MOH classes
          moh show files  List MOH file-based classes


****** ADDITIONAL INFORMATION ******

classes and files should not show as tab completion options for 'moh', only for 'moh show'.
Tab completion on 'moh show' is correct.
'help moh' is correct.
Comments:By: Mark Michelson (mmichelson) 2008-03-12 09:28:18

You are a bit mistaken.

"moh classes show" and  "moh files show" are deprecated commands which are still available in Asterisk 1.4. Since their use is discouraged, they do not show up in the help menu, but their existence is still there for those who used to use the command.

The tab completion is fine as it is.

By: Jason Parker (jparker) 2008-03-12 09:29:52

moh classes is deprecated.  The correct command would be moh classes show (and moh files show).  This is not a bug.