[arm-allstar] Global cw or voice played when local or specified node unkeys
Dave Petrie
wa2kjc at gmail.com
Fri Nov 5 12:25:48 EDT 2021
I worked with Patrick yesterday and got this working but there is a concern.
Any outside node that connects to the nodes running this change will hear
the global unkey cw or voice and seconds later they will hear their normal
link unkey tones, it can be confusing to outside nodes linking in.
But that's your choice, this is just a result of techies working together
to find an answer to a question. I will attach a pdf as well as copy and
paste here.
Dave
To playback globally a voice file or preferably a cw character
every time your local node receiver unkeys, or a specified connected node
unkeys,
here are two examples.
So here we go, example 1, receiver unkey example:
In: /etc/asterisk/rpt.conf ;just above ; Misc. settings in the node you want
events=events5086 ;replace 5086 with your node
; Misc. settings
Then in:
;Misc. settings
nounkeyct=1 ; Disable courtesy tones (=1)
Then further down in rpt.conf just above ; Define local nodes:
[events5086] ;replace 5086 with your node
COS = v|e|${RPT_RXKEYED}
*974 = f|t|COS ;replace *974 with your dtmf command you want to play
; Define local nodes
Then in [functions5086] ;5086 would be your node
974=playback,/etc/asterisk/local/c
Then make the audio file in /etc/asterisk/local and name it c.ul
Example 2 for a specified connected node unkeying:
If you want your HUB node to play when a specified connected node unkeys:
events=eventsHUB ;replace HUB with your hub node
; Misc. settings
Then in:
;Misc. settings
nounkeyct=1 ; Disable courtest tones (=1)
Then further down in rpt.conf just above ; Define local nodes:
[eventsHUB] ;replace hub with your hub node
P40198 = v|e|${RPT_ALINKS} =~ "\",40198[TRC]K\""
*974 = f|t|P40198
; Define local nodes
Explanation: ;P40198 tells the "*974 = f|t|P40198" line to play,
Explanation: ;"\",40198[TRC]K'"" ;40198 is the node unkeying, change this
Then in [functionsHUB] ;your hub node functions area
974=playback,/etc/asterisk/local/somefile
Then make the audio file in /etc/asterisk/local and name it somefile.ul
I have documents on how to make cw characters and nice voice files.
You have to turn off your courtesy tones or it will be confusing.
The HUB node would have both these examples if all your private nodes
connect to your hub and the specified node would be your regestered allstar
node.
The down side of this is any connecting node outside of this programming
effort
will have there linkunkeyct=ct20 turned on and they will hear the global
play
and then a few seconds later their normal linkunkeyed tones.
They could turn off their linkunkey, ;linkunkeyct=ct20 before they connect
to you,
or as long as everyone is aware of the extra delay and double courtesy
tones.
WA2KJC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Global Playback when unkeying.pdf
Type: application/pdf
Size: 118666 bytes
Desc: not available
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20211105/837e37d5/attachment.pdf>
More information about the ARM-allstar
mailing list