On 3/21/2018 11:12 AM, Bryan D. Boyle wrote: CORRECTION:
You could get even fancier, though I haven't tried it, where you pass both the node numbers AND the command to the script:
***deletia***
/usr/sbin/asterisk -rx "rpt fun $1 $2$3#"
Should be /usr/sbin/asterisk -rx "rpt fun $1 *$2$3#" which makes the command line (for instance, to connect): dtmf1=cmd,/etc/asterisk/scripts/command.sh 12345 3 56789 to connect node 12345 to node 56789 to disconnect... dtmf2=cmd,/etc/asterisk/scripts/command.sh 12345 1 56789 One shell. Multiple uses. Cleans out the cruft in all our local script directories (if we have them...and you should...) note...you need the first node and the command...if you leave off the second node, it drops through and executes the command on the node1. I'm sure it could be juiced up a bit with some error checking and logging and such...(which I'll do to send stuff to my local QRadar instance here looking at my home network), but, you get the drift. EXPERIMENT folks...you won't break anything. Bryan WB0YLE/W2FUV Morrisville PA