What are the Linux and Asterisk command-line commands to send DTMF commands to a node? Thanks, Bob K6ECM 73
I use this macro ... you must set NODE= to your node number. I keep it in /usr/local/bin ...STeve - KF5VH #!/bin/bash # ################################################################## # filename: rpt / KF5VH-Send-RPT-Command # # description: Type a RPT FUN NODE Cmd from Shell Prompt # # 10/16/2016 Version 1.0 SJM - KF5VH initial attempt # 10/17/2016 Version 1.1 SJM - KF5VH added "auto-STAR" # ################################################################## # # set -x # The following is needed to easily allow "*" non-processing # on the command line set -o noglob NODE=4XXXX WORK=/tmp cd $WORK if [ $# -ne 1 ]; then /bin/echo "Usage: rpt DTMF-command-to-execute" exit 0 fi CMD="$1" FC="${CMD:0:1}" FIXED=$CMD STAR="*" # echo Entire ... "$CMD" # echo Cut ...... "$FC" # echo Fixed .... "$FIXED" # echo Star ..... "$STAR" if [ $FC != $STAR ]; then FIXED=$STAR$CMD fi # echo Fixed .... "$FIXED" /usr/sbin/asterisk -rx "rpt fun $NODE $FIXED " 2>>/dev/null exit 0 On 2/24/2018 11:12 AM, Bob Pyke wrote:
What are the Linux and Asterisk command-line commands to send DTMF commands to a node?
Thanks, Bob K6ECM 73
_______________________________________________ App_rpt-users mailing list App_rpt-users@lists.allstarlink.org http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
asterisk -rx "rpt fun <your node number> <your touch tones>" On Sat, Feb 24, 2018 at 9:12 AM, Bob Pyke <k6ecm1@gmail.com> wrote:
What are the Linux and Asterisk command-line commands to send DTMF commands to a node?
Thanks, Bob K6ECM 73
_______________________________________________ App_rpt-users mailing list App_rpt-users@lists.allstarlink.org http://lists.allstarlink.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://lists.allstarlink.org/ cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
-- Tim WD6AWP
participants (3)
-
Bob Pyke -
Steve Mahler -
Tim Sawyer