Skip to content

Instantly share code, notes, and snippets.

@hostmaster
Created February 20, 2012 12:06
Show Gist options
  • Save hostmaster/1868941 to your computer and use it in GitHub Desktop.
Save hostmaster/1868941 to your computer and use it in GitHub Desktop.
sipnet account id
$ ACCOUNT_ID=$(curl --silent --user $SIP_USER:$SIP_PASS "https://customer.voipexchange.ru/cgi-bin/Exchange.dll/MTK" \
| gzip -dc - | awk '/uid=/ { gsub(/[^0-9.]/, "", $2); print $2 }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment