[App_rpt-users] Courtesy tones enabled / disabled COP command?
Buddy Brannan
buddy at brannan.name
Wed Dec 26 15:59:06 UTC 2012
The only rpt.conf is in /etc/asterisk
Macros are a little different. For the sort of thing that Kyle asked about, I do something like this:
First, I have several copies of rpt.conf that are all as much the same as needed, with whatever changes are desirable for whichever mode I want. You could set one up for daytime and another for nighttime and have a cron job set up to swap over at midnight and 7 AM, for instance. Anyway, in my case, I have an rpt.conf.use (for normal use); rpt.conf.net (different courtesy tones for net operation, no tail messages, no voice ID's), and rpt.conf.news (no telemetry delays, no courtesy tones, extremely short tail, morse ID, and no tail message, automagically drops connections to other things and connects to ARNews line).
In each of these, I have a command in the node stanza like this, or similar:
901638=cmd,/etc/asterisk/scripts/netmode
This runs a script that announces a mode change, i.e. "Net mode", "Resuming normal operation", "Stand by for news", whatever, sleeps 3 seconds to allow the announcement to complete, changes a symbolic link from one rpt.conf.something to rpt.conf (you could copy over, but why have two copies of the same file if you don't need to?), and reloads the configuration. Quick and dirty, net mode looks like this, without any failsafes, ugly, and as basic, quick, and dirty as it gets:
#!/bin/bash
asterisk -rx "rpt localplay 2331 netmode"
sleep 3
cp -fs /etc/asterisk/rpt.conf.net /etc/asterisk/rpt.conf
asterisk -rx "rpt reload"
exit 0
So I don't have any file actually named rpt.conf at all. rpt.conf is a symbolic link to some other repeater configuration, whichever mode I happen to be in.
Someone may have a cleaner way to do this, in which case, I'd love to know, but this seems to work.
--
Buddy Brannan, KB5ELV - Erie, PA
Phone: (814) 860-3194 or 888-75-BUDDY
On Dec 26, 2012, at 9:02 AM, Eric Guth <eric at efratnetworks.com> wrote:
> Buddy,
>
> In what directory is the rpt.conf that has the macro stanzas?
>
> 73,
>
> Eric
> 4Z5UG / WA6IGR
> Allstar Node: 28422
> 4Z5UG at guth.us
> Israel Direct: 077-950-9451
> USA Direct: +1-720-377-3840
>
>
>
> -----Original Message-----
> From: app_rpt-users-bounces at ohnosec.org [mailto:app_rpt-users-bounces at ohnosec.org] On Behalf Of Buddy Brannan
> Sent: Wednesday, December 26, 2012 2:51 PM
> To: Matt Roberts
> Cc: app_rpt; K&R Yoksh
> Subject: Re: [App_rpt-users] Courtesy tones enabled / disabled COP command?
>
> Just use the rpt.conf shuffle. I have a couple configurations called by scripts. They change all kinds of things, courtesy tones, tail length, ID's, with an asterisk -rx "rot reload" after moving files around.
> --
> Buddy Brannan, KB5ELV - Erie, PA
> Phone: (814) 860-3194 or 888-75-BUDDY
>
>
>
> On Dec 25, 2012, at 10:41 PM, Matt Roberts <n9gmr at me.com> wrote:
>
>> No COP commands exist for this!
>>
>> Matt Roberts
>> Phone: 386-679-1986
>> n9gmr at me.com
>>
>> Sent from my iPhone
>>
>> On Dec 25, 2012, at 10:27 PM, K&R Yoksh <yokshs at gmail.com> wrote:
>>
>>> Merry Christmas / Happy Holidays to everyone,
>>>
>>> I'm wondering if COP commands exist to enable/disable courtesy tones?
>>>
>>> I'd like to be able to set one controlstate for courtesy tones, and one without.
>>>
>>> Is this possible?
>>>
>>> Thanks. 73
>>>
>>> Kyle
>>> K0KN
>>>
>>> _______________________________________________
>>> App_rpt-users mailing list
>>> App_rpt-users at ohnosec.org
>>> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>> _______________________________________________
>> App_rpt-users mailing list
>> App_rpt-users at ohnosec.org
>> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>
More information about the App_rpt-users
mailing list