Allstar functions are defined in the [functions] stanza in
/etc/asterisk/rpt.conf. The function definitions map DTMF key
sequences to an action. In all BBB and RPi2 images a core set of
definitions are configured.
DTMF sequences are often mapped to the internal Allstar COP, STATUS,
or ILINK commands but they can also directly execute a script. Below
is a list of the basic commands in every BBB and RPi2 image. The
number following functions is the node it is associated with. This is
mapped by the functions statement within the node definition stanza.
If your node was 1998 it would be:
functions=functions1998
Meaning the functions for this node are controlled by the
[functions1998] stanza. Each node can have its own [functions] stanza
defined by the above statement but often one stanza serves all nodes
on one server in which case they would all be mapped to that one
function stanza.
Reference the COP, STATUS, and ILINK tables below to understand the mapping of the commands in the default rpt.conf file. A user can change commands but it is highly recommended to keep the core functions (1-78 below) the same for uniformity.
Default BBB/RPi2 Functions stanza
[functions1998]
1=ilink,1
2=ilink,2
3=ilink,3
4=ilink,4
5=macro,1
70=ilink,5
71=ilink,11
72=ilink,12
73=ilink,13
75=ilink,15
76=ilink,6
77=ilink,16
78=ilink,18
; disconnect link = *1<node>
; monitor link = *2<node>
; connect link transceive = *3<node>
; remote command = *4<node>
; execute macro = *5<macro#>
; system status
; disconnect permanently connected link =
*71<node>
; connect link permanent monitor = *72<node>
; connect link permanent transceive = *73<node>
; play full system status
; disconnect all links
; reconnect previously disconnected links
; permanently monitor link – local only = *77<node>
80=status,11 ; ID (local play only)
81=status,12 ; Time of Day (local play only)
; Say 24 hour time - change to your node
82=cmd,/usr/local/sbin/say24time.pl 1998
61=autopatchup,context=pbx_server,noct=1,farenddisconnect=1,dialtime=
20000,quiet=1 ; Autopatch up
0=autopatchdn
; Autopatch down
; Play a Node announcement example
;920=localplay,/etc/asterisk/local/some-file
980=status,3
99=cop,6 ; PPT on, # = release
; Example functions to call scripts
; These are commented out. Remove ';' and change function
; command and node number to one your choice
; Note that halting the system remotely would require
; a power cycle to recover.
;
;A1=cmd,/usr/local/sbin/sayip.sh 1998
radio
;A3=cmd,/usr/local/sbin/saypublicip.sh 1998
;B1=cmd,/usr/local/sbin/halt.sh 1998
;B3=cmd,/usr/local/sbin/reboot.sh 1998
;B6=cmd,/usr/local/sbin/astres.sh
No comments:
Post a Comment
.
Allstar // AllstarLink -
https://groups.io/g/Allstar
.