[arm-allstar] Scripts to convert echolink calls to nodes and nodes to calls

Doug Crompton wa3dsp at gmail.com
Fri Nov 22 12:02:31 EST 2019


Here are two scripts to convert Echolink node#'s to calls and Calls to
node#'s.

#!/bin/bash
# Script name - echo_call2name
# Convert Echolink Call to node number
# D. Crompton, WA3DSP 11/2019

if [ -z "$1" ]
   then
      echo -e "\nFormat - echo_call2node <call>\n"
      exit
fi
asterisk -rx "echolink dbdump" > /tmp/echo.list
echo -ne "\nCall - $1 is Node# - "
grep ${1^^} /tmp/echo.list | cut -d\| -f1
echo

---------------------------------------------------------------------------------------

#!/bin/bash
# Script name echo_node2call
# Convert Echolink node# to call
# D. Crompton, WA3DSP 11/2019

if [ -z "$1" ]
   then
      echo -e "\nFormat - echo_node2call <node>\n"
      exit
fi
asterisk -rx "echolink dbdump" > /tmp/echo.list
echo -ne "\nNode - $1 is call - "
grep $1 /tmp/echo.list | cut -d\| -f2
echo



*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


More information about the ARM-allstar mailing list