Skip to content

Instantly share code, notes, and snippets.

SIP Gateway Compliance to RFC 3261 RFC 3262 and RFC 3264 Example
This section provides a configuration example to match the identified configuration tasks in the previous sections.
1w1d: %SYS-5-CONFIG_I: Configured from console by console
Building configuration...
Current configuration : 3326 bytes
!
!Last configuration change at 18:09:20 EDT Fri Apr 23 2004
!
version 12.3
@ctaloi
ctaloi / 5
Created December 20, 2016 21:09
no interface Async5/00
no interface Async5/01
no interface Async5/02
no interface Async5/03
no interface Async5/04
no interface Async5/05
no interface Async5/06
no interface Async5/07
no interface Async5/08
no interface Async5/09
@ctaloi
ctaloi / loop.sh
Created December 20, 2016 21:08
bash for loop
#!/bin/bash
for i in {0..9}
do
echo "no interface Async2/0$i"
echo "no interface Async3/0$i"
echo "no interface Async4/0$i"
done
for i in {10..107}
@ctaloi
ctaloi / conf
Created December 20, 2016 21:07
no interface Async3/00
no interface Async4/00
no interface Async3/01
no interface Async4/01
no interface Async3/02
no interface Async4/02
no interface Async3/03
no interface Async4/03
no interface Async3/04
no interface Async4/04
@ctaloi
ctaloi / conf
Created December 20, 2016 21:06
no interface Async2/00
no interface Async2/01
no interface Async2/02
no interface Async2/03
no interface Async2/04
no interface Async2/05
no interface Async2/06
no interface Async2/07
no interface Async2/08
no interface Async2/09
no interface Async2/1
no interface Async2/2
no interface Async2/3
no interface Async2/4
no interface Async2/5
no interface Async2/6
no interface Async2/7
no interface Async2/8
no interface Async2/9
no interface Async2/10
@ctaloi
ctaloi / main.yml
Created July 20, 2016 19:57 — forked from rothgar/main.yml
Generate /etc/hosts with Ansible
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']
@ctaloi
ctaloi / wcsroutes.md
Created May 19, 2016 15:11
WCS Routes Guide
@ctaloi
ctaloi / accountsValidate.js
Created September 3, 2015 13:59
Validate a new Meteor account based on email suffix
function checkEmailAddress(emailAddress) {
check(emailAddress, String);
suffix = emailAddress.split('@')[1];
if (suffix === "wcs.com")
{ return true } else { return false };
};
Accounts.validateNewUser(function (user) {
console.log(user);
if (checkEmailAddress(user.emails[0].address)) {
atom