Last active
November 20, 2015 05:16
-
-
Save forestbaker/c58761c06b82a606591e to your computer and use it in GitHub Desktop.
extract all extensions, usernames and passwords from the asterisk sip.conf file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this will extract all extensions, usernames and passwords from the asterisk sip.conf file | |
# Remove the -- from egrep to see the relation of username to pass | |
egrep -B2 'username=....' /etc/asterisk/sip.conf | egrep -v 'host|vmexten|--' | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment