/usr/share/svxlink/events.d/Module.tcl is in svxlink-server 14.08.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | ###############################################################################
#
# Generic module event handlers
#
###############################################################################
#
# This is the namespace in which all functions and variables below will exist.
#
namespace eval Module {
#
# Executed when a module is being activated
#
proc activating_module {module_name} {
playMsg "Default" "activating";
playSilence 100;
playMsg $module_name "name";
playSilence 200;
}
#
# Executed when a module is being deactivated.
#
proc deactivating_module {module_name} {
playMsg "Default" "deactivating";
playSilence 100;
playMsg $module_name "name";
playSilence 200;
}
#
# Executed when the inactivity timeout for a module has expired.
#
proc timeout {module_name} {
playMsg "Default" "timeout";
playSilence 100;
}
#
# Executed when playing of the help message for a module has been requested.
#
proc play_help {module_name} {
playMsg $module_name "help"
playSubcommands $module_name help_subcmd "sub_commands_are"
}
# End of namespace
}
#
# This file has not been truncated
#
|