Created
February 2, 2012 23:07
-
-
Save ksexton/1726351 to your computer and use it in GitHub Desktop.
Free SIP extensions
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
# Free SIP extensions | |
# Usage: freesip /etc/asterisk/sip.conf 200 299 | |
freesip() { | |
comm -2 <(seq $2 $3) <(cat $1 | grep ^\\[ | sort | uniq | tr -d \[ | tr -d \]) | grep ^[[:digit:]] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment