[App_rpt-users] DTMF help
doug at crompton.com
Thu Sep 3 10:31:33 EDT 2015
Although this could be done within Allstar I often prefer to use bash scripts to control things. Anything you can do manually in Allsar or anywhere else in Linux you can do in a script.
The script would look like this. Store all your scripts in one place, like /etc/asterisk/local where they would be backed up with your Allstar configuration when you did that. You could call this script "whatever_disconnect" or any name of your liking. Once you create it make it executable - chmod 750 whatever_disconnect
# Example Script to control things in Allstar
# Replace node with the node you are controlling from
/usr/sbin/asterisk -rx "rpt fun <node> *127086"
# you can add more commands here if desired.
#end of script
Repeated for other commands.
Then in rpt.conf under the functions stanza -
Other stuff already there.....
A DTMF of *821 will then execute the script.
You also have the option of creating a cron that executes the script at a specific time.
crontab -e then enter the command. crontab -l to view cron's
30 12 * * * /etc/asterisk/local/whatever_disconnect
This would execute the script everyday at 12:30 PM.
When creating DTMF sequences make sure they are unique. Your example would not work as *1 or *3 are already used as single digit commands. You are generally safe in the *8xx range but check your functions stanza to see what is being used. Also any A, B, C, D prefix is usable as long as you have that capability on your handheld.
You can execute the script you create manually from the Linux prompt to test it. You must reload rpt or restart Asterisk when you change anything in that file - rpt reload or astres.sh.
Date: Thu, 3 Sep 2015 09:04:42 -0400
From: N1XBM at amsat.org
To: app_rpt-users at ohnosec.org
Subject: [App_rpt-users] DTMF help
I use a single repeater in my group of repeaters as a hub. I Then use that "RF hub" as my conduit to the "outside of Maine" connection.
What I'd like to do is enable on all of my repeaters that would disconnect or reconnect to my RF hub. Something simple like *12 / *13. That in turn would exucute *127086 and *327086. In my head I'm pretty sure in my head how to do it but unsure where to look to see an example of it.
Allstar Node # 27086, 41540, 41812, 42086
App_rpt-users mailing list
App_rpt-users at ohnosec.org
To unsubscribe from this list please visit http://ohnosec.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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the App_rpt-users