#!/bin/bash # # Script to play Allstar Voice ID, by K0KN 9/2012 # last revised 2/3/13 # # Usage - ID [node number] IDSCRIPT=/home/kyle/idrandom if [ "$1" == "" ] ; then echo "Usage - id [node number]"; exit fi # Play voice ID sleep 1.5 # Delay so that COS is dropped before ID plays. Otherwise # CWID will play also. Note CWID will also play if a remote # node is speaking when script ran asterisk -rx "rpt cmd $1 status 11 0" # Rotate voice IDs $IDSCRIPT # done exit 0 fi