#!/bin/sh # # star69 script for IRLP v0.1 - Robert Pectol (kk7av) # Immediately disconnects from current node/reflector # and connects back to the calling node. # ######################################################## ################################ # USER CONFIGURABLE SETTINGS # ################################ # AUX line PTT support aux_line_ptt="no" aux_line="1" ############################## # END USER CONFIG SETTINGS # ############################## # ensure script is run as repeater user if [ `/usr/bin/whoami` != "repeater" ] ; then exit 1 fi # ensure the environment file has been sourced if [ "$RUN_ENV" != "TRUE" ] ; then . /home/irlp/custom/environment fi # for AUX line PTT support if [ "$aux_line_ptt" == "yes" ]; then tx_key=`echo "$BIN/aux$aux_line""on"` tx_unkey=`echo "$BIN/aux$aux_line""off"` else tx_key=`echo "$BIN/key"` tx_unkey=`echo "$BIN/unkey"` fi if [ -a $LOCAL/call_waiting ]; then the_node=`ls $LOCAL/call_waiting | tail -n 1` else the_node="" fi if [[ "$the_node" != "" && -f "$LOCAL"/active ]]; then if "$SCRIPT"/end; then text_out="" "$SCRIPT"/call $the_node &>/dev/null 2>&1 else text_out="Problem encountered while disconnecting. Resetting the node now." "$SCRIPT"/irlp_reset &>/dev/null 2>&1 fi else text_out="Not active or no calls waiting!" fi if [ "$text_out" != "" ]; then killall ispeaker > /dev/null 2>&1 $tx_key sleep .5 echo "$text_out" | festival --tts $tx_unkey $SCRIPT/sfswrapper > /dev/null 2>&1 fi exit 0