[asterisk-users] Run asterisk -rx "command" and get plain text output

Steve Edwards asterisk.org at sedwards.com
Wed Aug 3 21:23:16 CDT 2022


On Wed, 3 Aug 2022, Carlos Chavez wrote:

> ...running "asterisk -rx"...

The '-r' is implied:

         -x command
               Connect  to  a  running Asterisk process
               and execute a command on a command line,
               passing  any  output through to standard
               out and then terminating when  the  com‐
               mand  execution  completes.  Implies  -r
               when -R is not explicitly supplied.

Also, as already suggested, please try adding:

[options]
         nocolor                         = yes

in your asterisk.conf file.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
             https://www.linkedin.com/in/steve-edwards-4244281


More information about the asterisk-users mailing list