Get useragent version
Aus metasec wiki
Getting the Softwareversion / Useragent of all Users
#!/bin/bash for i in $(echo "select ae_ext from ast_users where ae_phone like ('snom%')"|mysql zphone); do echo -n "DW: $i "; asterisk -rx "sip show peer $i"|grep Useragent; done
vi get_version.sh cut'n'paste script
chmot +x get_version.sh ./get_version.sh
done :->