#!/bin/bash # This is the custom decode file. Make sure all valid codes exit with "exit 1". if [ "$1" = "nnnnn" ] ; then "$SCRIPT"/disable ; exit 1 ; fi #IRLP DISABLE if [ "$1" = "nnnnn" ] ; then "$SCRIPT"/enable ; exit 1 ; fi #IRLP ENABLE if [ "$1" = "nnn" ] ; then "$W2YMM"/id ; exit 1 ; fi #SENDS W2YMM MORSE CODE ID if [ "$1" = "nnnnn" ] ; then "$ECHO_SCRIPT"/echo_disable ; exit 1 ; fi #ECHOLINK DISABLE if [ "$1" = "nnnnn" ] ; then "$ECHO_SCRIPT"/echo_enable ; exit 1 ; fi #ECHOLINK ENABLE if [ "$1" = "S1" ] ; then "$ECHO_SCRIPT"/echo_call 5203 ; exit 1 ; fi #LI_NY if [ "$1" = "S6" ] ; then "$ECHO_SCRIPT"/echo_call 119705 ; exit 1 ; fi #CARE_HUB if [ "$1" = "S66" ] ; then "$ECHO_SCRIPT"/echo_call 119705 notimeout ; exit 1 ; fi #CARE_HUB No Timeout if [ "$1" = "B1" ] ; then "$ECHO_SCRIPT"/echo_call 45717 ; exit 1 ; fi #K2SPD-R if [ "$1" = "B5" ] ; then "$SCRIPT"/connect_to_reflector ref9250 ; exit 1 ; fi #WESTERN REFLECTOR MAIN if [ "$1" = "B6" ] ; then "$SCRIPT"/connect_to_reflector ref9453 ; exit 1 ; fi # WIN SYSTEM if [ "$1" = "B7" ] ; then "$SCRIPT"/connect_to_reflector ref9058 ; exit 1 ; fi #NEW ENGLAND NETWORK if [ "$1" = "B8" ] ; then "$SCRIPT"/connect_to_reflector ref9008 ; exit 1 ; fi #VANCOUVER REFLECTOR if [ "$1" = "B9" ] ; then "$SCRIPT"/connect_to_reflector ref9450 ; exit 1 ; fi #DALLAS REFLECTOR if [ "$1" = "S99" ] ; then "$ECHO_SCRIPT"/echo_call 9999 ; exit 1 ; fi #ECHOTEST if [ "$1" = "SS99" ] ; then "$SCRIPT"/connect_to_reflector ref9990 ; exit 1 ; fi #ECHO REFLECTOR if [ "$1" = "S88" ] ; then "$ECHO_SCRIPT"/echo_status update; exit 1 ; fi #REFRESH ECHO STATUS # Commands for the Star 69 script if [ "$1" = "S69" ] ; then "$CUSTOM"/star69 ; exit 1 ; fi #List last call waiting, incoming and last outbound if [ "$1" = "S691" ] ; then "$CUSTOM"/star69 1 ; exit 1 ; fi #Call last call waiting if [ "$1" = "S692" ] ; then "$CUSTOM"/star69 2 ; exit 1 ; fi #Call last incoming call if [ "$1" = "S693" ] ; then "$CUSTOM"/star69 3 ; exit 1 ; fi #Call last outbound call # Echolink Prefix detector # If you change the EchoIRLP prefix, you must also change "num" below to the number of digits in the prefix. eval `echo $1 | awk -v num=1 '{ print "PRE="substr($1,1,num); print "NODE="substr($1,(num)+1,length($1))}'` #Call echolink conferences using star node method if [ "$PRE" = "S" ] ; then "$ECHO_SCRIPT"/echo_call $NODE ; exit 1 ; fi if [ "$1" = "73" ] ; then "$ECHO_SCRIPT"/echo_end ; exit 1 ; fi #DISCONNECT COMMAND if [ "$1" = "P" ] ; then "$ECHO_SCRIPT"/echo_end ; exit 1 ; fi #DISCONNECT COMMAND # Auxillary outputs on interface board. # Key and un-key the AUX2 output of the interface board. if [ "$1" = "nn" ] ; then "$BIN"/aux2on ; $SCRIPT/wavplay aux2on ; exit 1 ; fi if [ "$1" = "nnn" ] ; then "$BIN"/aux2off ; $SCRIPT/wavplay aux2off ; exit 1 ; fi # Key and un-key the AUX3 output of the interface board. if [ "$1" = "nn" ] ; then "$BIN"/aux3on ; $SCRIPT/wavplay aux3on ; exit 1 ; fi if [ "$1" = "nnn" ] ; then "$BIN"/aux3off ; $SCRIPT/wavplay aux3off ; exit 1 ; fi # Toggle enable/disable connect tone. if [ "$1" = "nnn" ] ; then "$CUSTOM"/ctone_on_off ; fi if [ "$1" = "311" ] ; then "$CUSTOM"/check_irlp ; exit 1 ; fi if [ "$1" = "08" ] ; then "$CUSTOM"/check_irlp ; exit 1 ; fi # call any EchoLink node if [ "$1" = "nnn" ] ; then $CUSTOM/random_ei_call 0 0 ; exit 1 ; fi # call any RF type node EchoLink or IRLP if [ "$1" = "nnn" ] ; then $CUSTOM/random_ei_call 2 1 ; exit 1 ; fi # call random echolink -R if [ "$1" = "nnn" ] ; then $CUSTOM/random_ei_call 0 2 ; exit 1 ; fi # call random echolink -L if [ "$1" = "nnn" ] ; then $CUSTOM/random_ei_call 0 3 ; exit 1 ; fi # call random echolink conference if [ "$1" = "nnn" ] ; then $CUSTOM/random_ei_call 0 4 ; exit 1 ; fi if [ "$1" = "411" ] ; then "$SCRIPT"/wavplay myid ; exit 1 ; fi if [ "$1" = "01" ] ; then "$SCRIPT"/wavplay confirm ; exit 1 ; fi if [ "$1" = "02" ] ; then "$SCRIPT"/wavplay confirm ; exit 1 ; fi if [ "$1" = "03" ] ; then "$SCRIPT"/wavplay confirm ; exit 1 ; fi #Speak Time if [ "$1" = "00" ] ; then "$CUSTOM"/speaktime ; exit 1 ; fi #Random Call IRLP if [ "$1" = "0120" ] ; then "$CUSTOM"/random_call ; exit 1 ; fi #Weather script if [ "$1" = "P96" ] ; then "$CUSTOM"/playWxRpt KHWV ; exit 1 ; fi # Brookhaven if [ "$1" = "P98" ] ; then "$CUSTOM"/playWxRpt KISP ; exit 1 ; fi # Islip if [ "$1" = "P99" ] ; then "$CUSTOM"/playWxRpt KFRG ; exit 1 ; fi # Farmingdale if [ "$1" = "P97" ] ; then "$CUSTOM"/playWxRpt KNYC ; exit 1 ; fi # NYC if [ "$1" = "P95" ] ; then "$CUSTOM"/playWxRpt KPOU ; exit 1 ; fi # Poughkeepsie # This will start up the txfan script and shut down the aux port if [ $1 = "nnn" ] ; then if [ -f ${CUSTOM}/txfan ] ; then ${CUSTOM}/txfan &>/dev/null & fi ${BIN}/aux3off exit 1 fi # This will kill any txfan process and turn on the aux port if [ $1 = "nnn" ] ; then if [ -f ${CUSTOM}/txfan ] ; then killall txfan &>/dev/null fi ${BIN}/aux3on exit 1 fi # Disable timeout if [ "$1" == "nnnnn" ] ; then ${CUSTOM}/timeout 0 V ; exit 1 ; fi # Enable timeout if [ "$1" == "nnnnn" ] ; then ${CUSTOM}/timeout 1 S ; exit 1 ; fi # Query timeout if [ "$1" == "nnnnn" ] ; then ${CUSTOM}/timeout ; exit 1 ; fi if [ "$1" = "nn" ] ; then touch $LOCAL/monitor_ only ; $SCRIPT/wavplay listen_only ; exit 1 ; fi # IRLP No Timeout Script - This will allow you to connect to a Node or # Reflector without timing out # NTOPFX="C" # notimeout prefix NODENO=${1#${NTOPFX}} # extract node number PFX=${1%${NODENO}} # extract prefix digit if [ "$PFX" == "$NTOPFX" ] && [ "${#NODENO}" -eq 4 ] ; then if [ "$NODENO" -lt 9000 ] ; then call stn${NODENO} notimeout else connect_to_reflector ref${NODENO} notimeout fi exit 1 fi # # End of No Timeout Script # exit 0