[arm-allstar] Message Playback following Timeout-Timer reset?
Chuck
bbb at nbcog.com
Thu Dec 13 09:57:04 EST 2018
It can be done in with the event subsystem (capability has been there for a
very long time) and some tiny shell scripts.
I have it working on my system.
This is more than what is necessary, but I also have other scripts that use
these temp files.
There are probably several other better ways to do this.
; the below 4 lines are in the events section of rpt.conf
/usr/local/bin/weunkey.sh = s|f|RPT_RXKEYED
/usr/local/bin/wekey.sh = s|t|RPT_RXKEYED
/usr/local/bin/wetxunkey.sh = s|f|RPT_TXKEYED
/usr/local/bin/wetxkey.sh = s|t|RPT_TXKEYED
cat wekey.sh
#!/bin/sh
touch /tmp/key27383
cat wetxkey.sh
#!/bin/sh
touch /tmp/txkey27383
cat wetxunkey.sh
#!/bin/sh
rm -f /tmp/txkey27383
cat weunkey.sh
#!/bin/sh
rm -f /tmp/key27383
if [ ! -f /tmp/txkey27383 ]
then {
/usr/bin/asterisk -rx "rpt localplay 27383 ha/reset"
} fi
That's all it takes. Be sure to do a "rpt reload" or restart asterisk
after editing the rpt.conf file.
Also create the scripts and make them executable before adding the lines to
the rpt.conf file.
On Thu, Dec 13, 2018 at 4:12 AM "Randy Neals via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:
> Cool, thanks!
>
> On Wed, Dec 12, 2018 at 9:01 PM David McGough <kb4fxc at inttek.net> wrote:
>
> >
> > Randy,
> >
> > Agreed, that would be a useful feature. I'll put it on the list. That
> > actually probably isn't too hard to implement.
> >
> >
> > 73, David KB4FXC
> >
> >
> > On Wed, 12 Dec 2018, "Randy Neals via ARM-allstar" wrote:
> >
> > > We would like to playback a message on reset of tx_timeoute timer.
> > >
> > > I didn't see an obvious way to do that, and didn't uncover anything
> with
> > a
> > > search of this list.
> > > Hoping someone has figured this out and might throw a clue our way...
> > >
> > > The use case is to play a message when a long-winded user releases
> their
> > > PTT, following expiry of the Time Out Timer. In hardware controllers it
> > > might say "Time Out Timer Reset".
> > > Upon release of PTT, this tells the user that they timed out the
> repeater
> > > and they will need to say part of their transmission again.
> > >
> > > Thanks,
> > > Randy, W3RWN
> > > Seattle, WA
> > > _______________________________________________
> > >
> > > ARM-allstar mailing list
> > > ARM-allstar at hamvoip.org
> > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > >
> > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > >
> >
> >
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
More information about the ARM-allstar
mailing list