[App_rpt-users] Changing Courtesy Tones, and SSHing into the computer
Tim Sawyer
tim.sawyer at mac.com
Sat May 3 14:33:11 UTC 2014
You don’t need an audio file to announce the time as app_has a command for it. You can run it at the Asterisk CLI:
*CLI> rpt cmd <yournode> status 12 0
Scripting is one of the main reasons to have a Linux based repeater controller. I’m not sure what level your Linux knowledge is so pardon me if I start at too basic of a level. Scripting is a big subject but lets see if we can get you started. First google cron. Cron runs Linux programs or scripts based on a set of time rules. This cron entry calls a script once every 3 hours between 6am and 9pm.
00 6-21/3 * * * /root/bin/time.sh
The command crontab -e is how you add a cron entry. By default crontab uses the vi editor. Vi has a steep learning curve but you might as well learn it if you want to become a for real Linux guy. <esc>:wq and <esc>:q! are two vi commands you’ll want to learn right away. Google vi.
Then you will need to create a script with one of the Linux editors. Newbies generally use the nano editor but it you have got this far you already have a bit of vi under your belt so keep up the good work. The script looks like this:
#! /bin/bash
/usr/sbin/asterisk -rx "rpt cmd <yournode> status 12 0"
After you create the script you need to mark it as executable. Again google is your friend, google chmod:
chmod +x /root/bin/time.sh
Having said all that, you don’t have to use scripting to do a time announcement. You can do it with the app_rpt scheduler. But I’ve not used it so I’ll leave it up to others to jump in here and explain the scheduler. There are comments in rpt.conf that may be sufficient.
BTW, when changing subjects best practice is to start a new thread. Tailgating leads to forever threads with no relation to the subject line.
--
Tim
:wq
On May 3, 2014, at 6:01 AM, Skyler F <electricity440 at gmail.com> wrote:
> Thank you Geoff for the help, that makes sense.
>
> Does anybody know how to have an hourly announcement with an audio file? I have heard of scripts or something, but I don't know how to script for it, where can I get started with scripting in ACID?
>
>
>
> 73
>
>
> On Thu, May 1, 2014 at 4:40 PM, Geoff <ars.w5omr at gmail.com> wrote:
>
> On 04/18/2014 12:06 PM, Skyler Fennell wrote:
>> I did not restart the sshd after I changed port 222 to 22. I did reboot the computer, but Maybe that's not enough. So just run "/etc/rc3.d/S55sshd restart"?
>>
>> I got really confused with all of those random numbers under telemetry section, but I guess they are all frequencies for the Courtesy tone.
>>
>> On audacity, I just did file > export then I chose other uncompressed format and did Microsoft wav, ULAW. I also made sure the project rate was at 8000.
>>
>> When I get home, I will check the files, and test the telephone portal.
>>
>
> I know I'm late to this party, but I was outta town...
>
> First off, know that there's really only 3 courtesy tones you need to be concerned with...
>
> unlinkedct=ct2 ;Courtesy tone sound the node makes when not linked
> remotect=ct3 ;Courtesy tone sound the node makes when linked
> linkunkeyct=ct8 ;Courtesy tone sound the node makes when a remote linked system unkeys
>
> Then, further down in rpt.conf
>
> ct2=|t(0,0,10,0)(350,440,10,2048)(0,0,10,0)(350,440,10,2048)(0,0,10,0)(350,440,10,2048)(0,0,10,0)(350,440,100,2048)
> ct3=|t(0,0,10,0)(880,440,150,2048)(0,0,10,0)(440,660,150,2048)
> ct8=|t(0,0,10,0)(880,440,50,2048)(0,0,50,0)(350,440,50,2048)
> remotetx=|t(500,0,10,1048)(0,0,10,0)(1000,0,10,1048)
> remotemon=|t(1009,0,50,2048)
> cmdmode=|icm ;(220,247,262,294,330,350,392,2048)
>
> As far as what the numbers mean,
> (0.0.10.0)
> | | | |-------amplitude
> | | |-----------duration
> | |--------------Tone 2
> |----------------Tone 1
>
> So, with 0,0,10,0 That says No Tone1, No Tone2, 10ms duration, 0 Amplitude. (I use it for a delay. Fine tuning for how long before telemetry is sent, in conjunction with the telemdelay parameter)
>
> The numbers, like 350,440,10,2048 are 350Hz, 440Hz, 10ms delay, amplitude of 2048.
>
> When you 'remote' into a friends node (with their permission) by using *4{nodenumber} that's the time you hear the tone defined in remotetx.
>
>
>
> Hope that clears it up for you.
>
> -Geoff/W5OMR
>
>
>
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>
> 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.
>
>
>
> --
> Skyler Fennell
> amsatnet.info
> KDØWHB
> electricity440 at gmail.com
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>
> 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...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20140503/54366ad6/attachment.html>
More information about the App_rpt-users
mailing list