[arm-allstar] dtmf macros for repeater control

Doug Crompton doug at crompton.com
Sun Dec 27 13:32:00 EST 2015


Rob,

When you say push the command out of your node radio do you mean originate from the actual radio or from your node. If it is the actual radio that would be specific to the radio you are using. There are radios that allow you to store DTMF sequences and send them out.

If you mean your node executing a command based on your sending a shorter DTMF sequence there are several way you can do it. You can define a macro in rpt.conf. Macros always start with a *5x  where x is the macro number as defined in the macro section of rpt.conf. There is already one defined in the image -

; Place command macros here

[macro]
;Macro number = command string (ea command separated by space) -end with HASH
1=*81 *80#    ; play time and voice ID
So if you execute the DTMF sequence  *51  you should hear the time followed by your ID.

If you created another macro like this -

2=*76 *3xxxxx *3yyyyy#

It would disconnect all nodes then connect to node xxxxx and node yyyyy
macros always end the command sequence with #

If you want more than 10 macros you need to use 2 digits - 501-599.

Another way to do it is to create scripts in Linux with the commands and then a function that calls the script. Using scripts you can do anything that can be done from the Linux command line.

A script like this -

#! /bin/bash
# Example Script showing connect to Alaska Morning Net
# Change the 'connect from node' to your node
# and the 'connect to' node to where you want to connect
# omit the < and >
# Run from a cron job that specifies the connect time
#
# This cron example shows how to enter into cron
# type crontab -e  and add the line, change as needed
#
# The example shows at 12:44 (times are 24 hour) on
# Monday through Saturday run the alaska_connect
# script in the /etc/asterisk/local directory
#
# Modify this script to your needs
#
# 44 12 * * 1-6 /etc/asterisk/wa3dsp/alaska_connect
#

/usr/sbin/asterisk -rx "rpt fun <yournode> *7327133"

# end script

The script you create has to be executable by Linux so -

chmod 750 script_name

Then you could assign a DTMF sequence to execute the script manually or as shown in the script use cron to execute it at certain times.

Assign 871 to execute script -

871=cmd,/etc/asterisk/local/alaska_connect

So *871 would execute this script.

Either way works. I prefer using scripts but putting the macros in rpt.conf is fine also.

If this is not clear to you let me know.

73 Doug
WA3DSP
http://www.crompton.com/hamradio


Date: Sun, 27 Dec 2015 10:17:05 -0600
From: n4wgy.ham at gmail.com
To: arm-allstar at hamvoip.org
Subject: [arm-allstar] dtmf macros for repeater control

Greetings to everyone.
My AllStar node radio is tuned to one of our local VHF repeater's UHF link radio frequencies. By inputting dtmf commands to the local VHF machine via it's input frequency or one of its UHF link radio frequencies a user can connect, disconnect or monitor link radio traffic to the VHF repeater.How might I create a macro that can push these repeater controlling dtmf commands out of my node radio?
Thank you for any/all advise.
-Rob ConklinN4WGY

_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2 web page - http://hamvoip.org 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20151227/8584c2bd/attachment.html>


More information about the arm-allstar mailing list