On 3/20/2018 9:59 PM, Sam Nabkey wrote:
!#/bin/bash
LOCALNODE="2000" REMOTENODE="2001" /usr/sbin/asterisk -rx "rpt fun ${LOCALNODE} *3${REMOTENODE}"
Should work? Or, if you want to call a single script from multiple DTMF commands; for instance, a shell called connect.sh:
#! /bin/bash /usr/sbin/asterisk -rx "rpt fun $1 *3$2#" for instance, to connect, being called from the DTMF functions: dtmf1=cmd,/etc/asterisk/scripts/connect.sh node1 node2 dtmf2=cmd,/etc/asterisk/scripts/connect.sh node1 node3 where dtmf1 = some valid dtmf sequence node 1 = the node you're sending the command to node2 = the target you want to connect to etc. You could get even fancier, though I haven't tried it, where you pass both the node numbers AND the command to the script: #! /bin/bash /usr/sbin/asterisk -rx "rpt fun $1 $2$3#" in rpt.conf: dtmf1=cmd,/etc/asterisk/scripts/command.sh node1 command node2 such that dtmf1 = some valid dtmf sequence node1 = node you're sending the command to command = the app_rpt command node2 = the target You won't break anything...so experimentation is fun... Bryan WB0YLE/W2FUV Morrisville PA