[App_rpt-users] Custom NodeNames
doug at crompton.com
Mon Aug 17 21:03:31 EDT 2015
Looks interesting. On systems that have either lsnodes or allmon the astdb.txt file should already exist and is updated daily. It might be better to use that file for the second script if it exists. That would avoid unnecessary reads from the database and having yet another astdb.php file on the system. The astdb.php file has changed recently also and has better error detection, retry support, and it sorts. Just a suggestion.
Also I have a simple combine script I include in the BBB and RPi2 release that simply combines the gsm files with like this
cat file1.gsm file2.gsm file3.gsm > node.gsm
As long as all files type are the same there is no need to do any conversion. So maybe ffmpeg is not needed?
Date: Mon, 17 Aug 2015 16:08:06 -0500
From: w0otm at w0otm.com
To: app_rpt-users at ohnosec.org
Subject: [App_rpt-users] Custom NodeNames
I have written a shell script to create custom node names to replace
the announcing of nodes by their node number to the "callsign"
configured for each node on the system. Its 2 parts. First uses a
php script to download all the AllStar Node data and saves as txt
file called nodenames.
I save mine as 'getnodes.php'. The code can be found here:
After this runs, I run the second script:
I save mine as 'nodenames.sh'. The code can be found here:
This script looks up the node number and finds the callsign, it then
creates a .ulaw file using the letters and digits found in the
AllStar systems. No TTS! It saves all the ####.ulaw files in /var/lib/asterisk/sounds/rpt/nodenames.
Now when a node connects or disconnects, its announces a callsign
instead of a node number.
.-- ----- --- - --
Ottumwa, IA EN31ta
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