Who is the “creative” mind behind changing Asterisk commands at CLI?

Home » Asterisk Users » Who is the “creative” mind behind changing Asterisk commands at CLI?
Asterisk Users 5 Comments

On 11-09-25 01:54 AM, Антон Квашёнкин wrote:
> Just use cli aliases, provided by res_clialiases.so.
>
> 2011/9/25 Bruce B
>
Please don’t feed the trolls. Thanks.

5 thoughts on - Who is the “creative” mind behind changing Asterisk commands at CLI?

  • You won’t get an audience if the way you go about it is dickish.

    You’re being a dick, and you know you’re being a dick. You’re just
    unwilling to admit it or intellectually engage with that.

    If you were earnest and sincere about your desire to contribute
    constructive criticism and effectuate change, you wouldn’t start the
    thread with a sarcastic subject line like “Who is the ‘creative’ mind
    behind changing Asterisk commands at CLI?” That has a mocking,
    derisive inflection, and you know it has a mocking, derisive inflection.

    If you expect to be taken seriously, you need to align your behaviour
    with your stated objective–unless that’s not actually your objective,
    and in fact your objective is to be an inflammatory jerk.

  • You are very childish besides being very useless.

    Also, note that there are others that are bothered by the same changes that
    are uncalled for. I was as constructive as possible but you think starting a
    sentence with “I am not trying to be rude…” is rude. LOL. I have said that
    upfront so idiots like you don’t take offence but you did and you read as,
    “I am trying to be rude…”. Well, suit yourself and keep sucking up Alex.

  • You seem to be missing the point or not reading my replies. The reason
    ‘*CLI> help’ still works on asterisk 1.6.2, is because of the changes
    made 3 years ago add res_clialiases.so. Without it, the command would
    actually not work.

    Here is a simple test you can do on your 1.6.2 / 1.8 asterisk box:

    *CLI> module unload res_clialiases.so
    Unloaded res_clialiases.so
    *CLI> help
    No such command ‘help’ (type ‘core show help help’ for other possible
    commands)

    As you can see, without res_clialiases.so the command does not work.
    So, if you are saying the ‘*CLI> help’ command does not work, then check
    your asterisk configuration first.

    I don’t even know how to reply to this, so I won’t. Thanks for all the
    fish.

  • Actually knowing the names of modules is easy: Here’s what I get after
    pressing ‘tab’ once (Asterisk 1.8)

    | sweetmorn*CLI>
    | ! ael agent agi aoc calendar
    | cc cdr cel channel cli config
    | console core dahdi data database devstate
    | dialplan dnsmgr dundi event fax features
    | file group gtalk hangup help http
    | iax2 indication jabber jingle keys local
    | logger manager meetme mfcr2 minivm mixmonitor
    | module moh no odbc originate parkedcalls
    | phoneprov pri queue realtime reload rtcp
    | rtp say sip skinny sla sqlite
    | ss7 stun timing transcoder udptl ulimit
    | unistim voicemail

    Now the same without cli_aliases:

    | sweetmorn*CLI>
    | ! ael agent agi aoc calendar
    | cc cdr cel channel cli config
    | console core dahdi data database devstate
    | dialplan dnsmgr dundi event fax features
    | file group gtalk http iax2 indication
    | jabber jingle keys local logger manager
    | meetme mfcr2 minivm mixmonitor module moh
    | no odbc parkedcalls phoneprov pri queue
    | realtime rtcp rtp say sip skinny
    | sla sqlite ss7 stun timing transcoder
    | udptl ulimit unistim voicemail

    But anyqway, let’s edit /etc/asterisk/cli_aliases.conf and in [general]
    set ‘template=asterisk12’ . Applying the changes (‘module reload
    res_cli_asiases.so’ . Shouldn’t it be ‘cli reload aliases’?).

    Now we get (again, the following are the options suggested by a single
    tab completion)

    | sweetmorn*CLI>
    | ! add ael agent agi answer
    | aoc autoanswer calendar cc cdr cel
    | channel clear cli config console convert
    | core dahdi data database devstate dialplan
    | dial dnsmgr dont dump dundi event
    | extensions fax features file flash group
    | gtalk hangup http iax2 include indication
    | jabber jingle keys local logger manager
    | meetme mfcr2 minivm mixmonitor module moh
    | mute no odbc oss parkedcalls phoneprov
    | pri queue realtime remove rtcp rtp
    | save say send set show sip
    | skinny sla soft sqlite ss7 stun
    | timing transcoder transfer udptl ulimit unistim
    | unmute voicemail

    And under ‘show’ we have:

    | sweetmorn*CLI> show
    | agents agi application applications audio
    | channeltype channeltypes codec codecs dialplan
    | features file function functions globals
    | hints image indications manager memory
    | profile queue switches translation version
    | video voicemail

    This means that prototyping any suggested fixes is easy: just provide an
    extra template for /etc/asterisk/cli_aliases.conf . No need to dwell
    into the C source and touch most of the source files. This only allows
    you to alias commands and not rename or change them, but it’s a start.

    So, if anybody has any actual constructive suggestions, please post
    them. Let’s not waste time with pointless flame wars.

  • Word to the wise — if one starts a sentence with “I don’t mean to
    be…X” your true intentions are to be just that.

    If you find yourself doing that, please stop. Rethink what you are
    writing and word it in a more polite manner. You will ruffle less
    feathers and have a much more constructive dialog.

    -M