home
|
pages
|
back
|
start
|
windows
|
SIP
|
pushover
|
esxi
|
linux-bash
|
linux-bash-fn
|
linux-bash-code
|
awk-sed
|
git
|
keepass
|
php
|
ipmi
|
openvpn
|
resolve-tel.t-online.de.sh #!/bin/bash IFS=$'\n' # telekom dns 194.25.0.70 , 194.25.0.62 for e in $(dig @ns6.edns.t-ipnet.de tel.t-online.de. NAPTR | grep "^tel.t-online.de" | awk {'print $10'}) do echo "NAPTR: $e" for s in $(nslookup -q=SRV $e | grep "^$e" | awk {'print $7'}) do #echo -e "\tSRV: $s" ip=$(nslookup $s | grep "Address: " | awk {'print $2'}) echo -en "\tSRV: $s $ip tcp/5060 " nc -z $ip 5060 if [ $? == 0 ] ; then echo "open"; else echo "unreachable"; fi done done asterisk -rx "pjsip show registrations" #asterisk -rx "pjsip send register *all"