What are you trying to control, your local node? If so you don’t use *4. *3 is connect, *2 monitor and *1 disconnect, *4 is to control a remote node after you connect to it with *3.
Example to connect my node to node 2000 with over the air touch tones: *32000
Example with the Asterisk console *CLI>
rpt fun 25330 *32000
Example from a script:
asterisk -rx "rpt fun 25330 *32000"
You don’t need to use
asterisk -rx "whatever" except for scripting. You can access the asterisk console with
asterisk -r which will gives your a prompt *CLI> prompt. When done type
quit or cntrl-c
Example to control a remote node getting it’s status:
*CLI> rpt fun 25330 *32000 ; connect to 2000
*CLI> rpt fun 25330 *42000 ; responds with 'by your commnad'
*CLI> rpt fun 25330 *70 ; tell remote to play status
*CLI> rpt fun 25330 # ; exit control of node 2000
*CLI> rpt fun 25330 *12000 ; disconnect from 2000
Is that helpful?