There has been the odd time where I'd like to be able to enable and disable 
the DTMF command processing on a node by remote control (re-enabling DTMF 
when it's disabled?  Sound like a neat trick? :) ).  Read on. :)

The system relies on some careful modification to the custom_decode script 
(and the fact it's a script is why this works here), as well as two simple 
custom scripts and two WAV files.

I have uploaded the scripts and WAV files into the files area.

The mods to the custom_decode script are as follows:

Place these lines as the _first_ commands in the file (more information below).

if [ "$1" = "1200P" ] ; then "$CUSTOM"/dtmf_enable ; exit 1 ; fi
if [ -f $LOCAL/nodtmf ] ; then exit 1 ; fi
if [ "$1" = "1200S" ] ; then "$CUSTOM"/dtmf_disable ; exit 1 ; fi

How it works:  The first line contains the command used to enable the DTMF 
commands.  In this case, this is the only command that will work when DTMF 
is disabled.

The second line is the secret.  If the $LOCAL/nodtmf file exists, the 
custom_decode script exits with "1" status, which tells the IRLP system to 
stop processing DTMF commands, which effectively disables the DTMF commands.

Any other commands needed while in disabled mode should be placed above the 
line that checks for the nodtmf file.

Enjoy! :)



73 de Tony, VK3JED
http://www.qsl.net/vk3jed