#!/bin/bash


asteriskPid=`sudo cat /run/asterisk/asterisk.pid`

openfiles=`sudo lsof -p ${asteriskPid} | grep "UDP.*:[1-2]....." |wc -l`


echo ${openfiles}

