The $ASTERISK is a variable set earlier in the script, on line 68. The do_asterisk_cli takes that variable and makes it into a full line that the shell expects. The variable in this case allows for the asterisk executable to be placed anywhere on the system, and each time the variable is called the shell will replace the variable name with the actual value. Since the asterisk program is called in many functions in the script, creating a variable makes it easier to change one line rather than many in the script, in case the location of the program changes.
So line 68 creates the variable:
which turns $ASTERISK -rvvv into
On Wed, Dec 12, 2018 at 9:57 AM Mike KB8JNM <groupio@...> wrote: