<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BrainDeadProjects.com &#187; Cisco</title>
	<atom:link href="http://www.braindeadprojects.com/blog/category/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.braindeadprojects.com/blog</link>
	<description>A place for low-grade evil.</description>
	<lastBuildDate>Thu, 24 Nov 2011 02:28:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>GNS3 and Gentoo &#8211; fixing QEMU networking</title>
		<link>http://www.braindeadprojects.com/blog/what/gns3-and-gentoo-fixing-qemu-networking/</link>
		<comments>http://www.braindeadprojects.com/blog/what/gns3-and-gentoo-fixing-qemu-networking/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 02:54:22 +0000</pubDate>
		<dc:creator>Matthew Gillespie (admin)</dc:creator>
				<category><![CDATA[BrainDeadTip]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[GNS3]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[KVM]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=1289</guid>
		<description><![CDATA[I was hoping to have time to further familiarize myself with IPv6 this weekend -  but workplace emergencies, sleep, and a technical glitch slowed me down. Here&#8217;s the story of the technical glitch. GNS3/dynamips can handle emulation of a number of routers, and I was happy to see that it can emulate host PCs as [...]]]></description>
			<content:encoded><![CDATA[<p>I was hoping to have time to further familiarize myself with <a title="IPv6" href="http://en.wikipedia.org/wiki/IPv6" target="_blank">IPv6</a> this weekend -  but workplace emergencies, sleep, and a technical glitch slowed me down. Here&#8217;s the story of the technical glitch.</p>
<div id="attachment_1320" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/GNS3.png"><img class="size-medium wp-image-1320" title="GNS3" src="http://www.braindeadprojects.com/blog/wp-content/GNS3-300x88.png" alt="" width="300" height="88" /></a><p class="wp-caption-text">GNS3 - this thing rocks.</p></div>
<p><a title="GNS3" href="http://www.gns3.net/" target="_blank">GNS3</a>/<a title="Dynamips" href="http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator" target="_blank">dynamips</a> can handle emulation of a number of routers, and I was happy to see that it can emulate host PCs as well. Unfortunately networking in GNS3  is done via <em>UDP tunnels</em> &#8211; something that requires a <a title="Qemu" href="http://wiki.qemu.org/Main_Page" target="_blank">Qemu</a> patch to implement.</p>
<div id="attachment_1306" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/GNS3-IPv6-test.png"><img class="size-medium wp-image-1306" title="GNS3-IPv6-test" src="http://www.braindeadprojects.com/blog/wp-content/GNS3-IPv6-test-300x209.png" alt="" width="300" height="209" /></a><p class="wp-caption-text">For some reason QEMU won&#39;t really start if it&#39;s networked.</p></div>
<p>In <a title="Gentoo" href="http://www.gentoo.org/">Gentoo</a>, simply building GNS3 from the <a title="Sunrise Overlay" href="http://overlays.gentoo.org/proj/sunrise" target="_blank">Sunrise Overlay</a> doesn&#8217;t provide sufficient support for this requirement. Emulated routers (and I&#8217;m assuming switches) work fine when networked together. Emulated host machines work fine when NOT connected to anything. But once you network things together you&#8217;ll discover that your Qemu host won&#8217;t start.</p>
<p>Here&#8217;s why &#8211; when you start a Qemu host, this is essentially what GNS3 runs:</p>
<blockquote><p>/usr/bin/qemu -name QEMU1 -m 256  /mnt/virtualmachines/dynips/IPv6-tc/working/QEMU1/FLASH -hdb  /mnt/virtualmachines/dynamips/IPv6-tc/working/QEMU1/SWAP -enable-kvm  -net nic,vlan=0,macaddr=00:aa:00:8f:e4:00,model=rtl8139 <strong>-net  udp,vlan=0,sport=20000,dport=10006,daddr=127.0.0.1 </strong>-net  nic,vlan=1,macaddr=00:00:ab:fa:72:01,model=rtl8139 -serial  telnet:127.0.0.1:3000,server,nowait -no-acpi -vnc :0</p></blockquote>
<p>GNS3 attempts to use the <strong>-net udp</strong> option, something not offered in the default QEMU-KVM distribution. With no Gentoo <a title="USE flags" href="http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&amp;chap=2#doc_chap1" target="_blank">USE flags</a> to add the patch in either 0.13.0 or 0.14.50, I decided to simply upgrade to 0.14.50 and see if it was part of the default build:</p>
<blockquote><p># kvm &#8211;version<br />
QEMU emulator version 0.14.50 (qemu-kvm-devel), Copyright (c) 2003-2008 Fabrice Bellard<br />
# kvm &#8211;help | grep &#8220;net udp&#8221;<br />
#</p></blockquote>
<p>Nope, it&#8217;s not. So the next step is to remove app-emulation/qemu-kvm from your system and build it by hand.</p>
<p>First, remove kvm and download the source from kernel.org:</p>
<blockquote><p># emerge -C app-emulation/qemu-kvm</p>
<p># cd /usr/src/</p>
<p># wget http://mirrors.kernel.org/gentoo/distfiles/qemu-kvm-0.13.0.tar.gz</p></blockquote>
<p>Unpack and patch it, using the <a title="Patch" href="http://sourceforge.net/projects/gns-3/files/Qemu/qemu-0.13.0.patched.win32.zip/download" target="_blank">patch provided by the gns-3 team </a>.</p>
<blockquote><p># tar zxvpf qemu-kvm-0.13.0.tar.gz</p>
<p># cd qemu-kvm-0.13.0/</p></blockquote>
<p>Testing the patch, I ran into a handful of issues:</p>
<blockquote><p># patch &#8211;dry-run -p1 &lt; /mnt/nas/downloads/qemu-0.13.0-<br />
mcast-udp.patch<br />
patching file Makefile.objs<br />
Hunk #1 FAILED at 25.<br />
1 out of 1 hunk FAILED &#8212; saving rejects to file Makefile.objs.rej<br />
patching file block/raw-win32.c<br />
Hunk #1 FAILED at 93.<br />
Hunk #2 FAILED at 347.<br />
2 out of 2 hunks FAILED &#8212; saving rejects to file block/raw-win32.c.rej<br />
patching file hw/e1000.c<br />
Hunk #1 FAILED at 567.<br />
1 out of 1 hunk FAILED &#8212; saving rejects to file hw/e1000.c.rej<br />
patching file net/udp.c<br />
patching file net/udp.h<br />
patching file net.c<br />
Hunk #1 FAILED at 30.<br />
Hunk #2 FAILED at 1075.<br />
2 out of 2 hunks FAILED &#8212; saving rejects to file net.c.rej<br />
patching file net.h<br />
Hunk #1 FAILED at 33.<br />
1 out of 1 hunk FAILED &#8212; saving rejects to file net.h.rej<br />
patching file qemu-options.hx<br />
Hunk #1 FAILED at 996.<br />
1 out of 1 hunk FAILED &#8212; saving rejects to file qemu-options.hx.rej</p></blockquote>
<p>A quick modification and we&#8217;ve got <a title="Update Patch File" href="http://www.braindeadprojects.com/src/gentoo-qemu-0.13.0.gns3.patch" target="_blank">a new patch file</a>. This one applies nicely:</p>
<blockquote><p># patch &#8211;dry-run -p1 &lt; /mnt/nas/downloads/gentoo-qemu-0.13.0.gns3.patch<br />
patching file Makefile.objs<br />
patching file QMP/qmp-commands.txt<br />
patching file block/raw-win32.c<br />
patching file config-all-devices.mak<br />
patching file config-host.h<br />
patching file config-host.h-timestamp<br />
patching file config-host.ld<br />
patching file config-host.mak<br />
patching file hw/e1000.c<br />
patching file libdis/config.mak<br />
patching file libdis-user/config.mak<br />
patching file libhw32/config.mak<br />
patching file libhw64/config.mak<br />
patching file net/udp.c<br />
patching file net/udp.h<br />
patching file net.c<br />
patching file net.h<br />
patching file qemu-doc.html<br />
patching file qemu-img-cmds.texi<br />
patching file qemu-img.1<br />
patching file qemu-monitor.texi<br />
patching file qemu-nbd.8<br />
patching file qemu-options.hx<br />
patching file qemu-options.texi<br />
patching file qemu-tech.html<br />
patching file qemu.1<br />
patching file roms/seabios/config.mak<br />
patching file roms/vgabios/config.mak<br />
patching file x86_64-softmmu/config-devices.mak<br />
patching file x86_64-softmmu/config-devices.mak.old<br />
patching file x86_64-softmmu/config-target.mak<br />
vonnegut qemu-kvm-0.13.0 #</p></blockquote>
<p>So let&#8217;s apply it for real and then configure, build, and install our new Qemu:</p>
<blockquote><p># patch -p1 &lt; /mnt/nas/downloads/gentoo-qemu-0.13.0.gns3.patch</p>
<p>&#8230;</p>
<p># ./configure &#8211;prefix=/usr &#8211;target-list=i386-softmmu &#8211;enable-sdl</p>
<p># make &amp;&amp; make install</p></blockquote>
<p>A quick check to ensure UDP tunneling is compiled in:</p>
<blockquote><p># /usr/bin/qemu &#8211;version<br />
QEMU emulator version 0.13.0 (qemu-kvm-0.13.0), Copyright (c) 2003-2008 Fabrice Bellard<br />
# /usr/bin/qemu &#8211;help | grep &#8220;net udp&#8221;<br />
-net udp[,vlan=n]sport=sport,dport=dport,daddr=host<br />
#</p></blockquote>
<p>And voila &#8211; now not only does my host machine start when networked into my layout, it also has connectivity:</p>
<div id="attachment_1308" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/QEMU-working-host.png"><img class="size-medium wp-image-1308" title="QEMU-working-host" src="http://www.braindeadprojects.com/blog/wp-content/QEMU-working-host-300x177.png" alt="" width="300" height="177" /></a><p class="wp-caption-text">Yes, it finally works.</p></div>
<p>Next up &#8211; continue lab work with IPv6, and begin studying for my <a title="CCNP" href="http://www.cisco.com/web/learning/le3/le2/le37/le10/learning_certification_type_home.html" target="_blank">CCNP</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/gns3-and-gentoo-fixing-qemu-networking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with Hotlink Spam</title>
		<link>http://www.braindeadprojects.com/blog/what/fun-with-hotlink-spam/</link>
		<comments>http://www.braindeadprojects.com/blog/what/fun-with-hotlink-spam/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 16:47:46 +0000</pubDate>
		<dc:creator>Matthew Gillespie (admin)</dc:creator>
				<category><![CDATA[BrainDeadTip]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=753</guid>
		<description><![CDATA[I get a lot of hotlink spam to this site, and normally I don&#8217;t particularly care. But when Mercado Libre (an online sales forum similar to E-bay) started using the pictures of one of the switches from my CCNA lab for a posting &#8211; I decided I&#8217;d try my hand as a sales person. They [...]]]></description>
			<content:encoded><![CDATA[<p>I get a lot of hotlink spam to this site, and normally I don&#8217;t particularly care. But when <a href="http://www.mercadolibre.com.ec/" target="_blank">Mercado Libre</a> (an online sales forum similar to<a href="http://ebay.com" target="_blank"> E-bay</a>) started using the pictures of one of the <a href="http://www.braindeadprojects.com/blog/braindeadtip/ccna-certified/" target="_blank">switches from my CCNA lab</a> for a posting &#8211; I decided I&#8217;d try my hand as a sales person.</p>
<p>They could have at least resized the <a href="http://www.braindeadprojects.com/img/MyNewC2950.jpg" target="_blank">image</a> &#8211; but here&#8217;s a snippet of what the <a href="http://articulo.mercadolibre.com.ec/MEC-7061548-switch-cisco-catalyst-2950-de-24-port-10100-administrable-_JM" target="_blank">posting</a> looked like (note: since modern browsers cache imagery, you&#8217;ll likely have to hold down the shift button and hit refresh when looking at that post):</p>
<div id="attachment_755" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/before.png"><img class="size-medium wp-image-755" title="Before" src="http://www.braindeadprojects.com/blog/wp-content/before-300x225.png" alt="" width="300" height="225" /></a><p class="wp-caption-text">The actual switch is below the o-scope.</p></div>
<p style="text-align: center;">
<p>A few quick rewrite rules to tamper with that HTTP Referrer:</p>
<blockquote><p>RewriteEngine on</p>
<p>RewriteCond %{HTTP_REFERER} !^$<br />
RewriteCond %{HTTP_REFERER} ^.*articulo\.mercadolibre\.com\.ec.*$<br />
RewriteRule \.(gif|jpg|jpeg|png)$ hotlinkers/computer-thermite.jpg [L]</p></blockquote>
<p>And voila -</p>
<div id="attachment_756" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/after.png"><img class="size-medium wp-image-756" title="After" src="http://www.braindeadprojects.com/blog/wp-content/after-300x213.png" alt="" width="300" height="213" /></a><p class="wp-caption-text">The perfect computer for arsonists.</p></div>
<p>I hope I get a commission off the huge volume of sales this generates.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/fun-with-hotlink-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New Voice LAN</title>
		<link>http://www.braindeadprojects.com/blog/what/the-new-voice-lan/</link>
		<comments>http://www.braindeadprojects.com/blog/what/the-new-voice-lan/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 00:33:59 +0000</pubDate>
		<dc:creator>Matthew Gillespie (admin)</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[VLAN]]></category>
		<category><![CDATA[VOIP]]></category>
		<category><![CDATA[What?!]]></category>

		<guid isPermaLink="false">http://www.braindeadprojects.com/blog/?p=475</guid>
		<description><![CDATA[I&#8217;ve been meaning to look at the voice capabilities of the 1750&#8242;s I&#8217;d purchased while studying for my CCNA (In previous posts I misspoke and claimed they were 1751&#8242;s, they are in -fact 1750&#8242;s).  The Cisco 1750&#8242;s have a slot for Voice Interface Cards, something I&#8217;ve not worked with &#8211; and something that influenced my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to look at the voice capabilities of the 1750&#8242;s I&#8217;d purchased while studying for my <a href="http://">CCNA</a></p>
<p>(<em>In previous posts I misspoke and claimed they were 1751&#8242;s, they are in -fact 1750&#8242;s</em>).  The Cisco 1750&#8242;s have a slot for Voice Interface Cards, something I&#8217;ve not worked with &#8211; and something that influenced my purchase of the routers.</p>
<div id="attachment_485" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/dsc03224.jpg"><img class="size-medium wp-image-485" title="Bones of a 1750" src="http://www.braindeadprojects.com/blog/wp-content/dsc03224-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">PVDM module goes in the top empty slot, DIMM in the right empty slot</p></div>
<p>I quickly realized I&#8217;d need a Digital Signal Processor (<a href="https://supportforums.cisco.com/docs/DOC-5211/diff;jsessionid=EAB5487FBCDE5A8BC2DEF57AAF4CDA95.node0?secondVersionNumber=3" target="_blank">PVDM</a>) card (~$90 on ebay) in addition to the VICs &#8211; AND I didn&#8217;t have enough memory OR flash to run an appropriate IOS image. The Flash upgrade to 32M was appx $30.00, with memory running about the same. Things started to quickly add up.</p>
<div id="attachment_488" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/dsc03219.jpg"><img class="size-medium wp-image-488" title="Bottom of a 1750" src="http://www.braindeadprojects.com/blog/wp-content/dsc03219-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Right side is where the replaceable Flash goes</p></div>
<p>Which made me look at the Cisco 2621 also sitting on my work-bench.  Research quickly revealed I was looking at a much more affordable path.  I got a pretty good deal on an NM-2V with 2 FXO cards (ebay &#8211; about $115.00 &#8211; with the added bonus that the seller lives in my same city, so I saved on shipping and we met in an <a href="http://www.aldifoods.com/" target="_blank">Aldi&#8217;s </a> parking lot):</p>
<p>The NM-2V supports two VIC cards&#8230; the FXO (Foreign eXhange Office ~= PSTN origination/termination) and FXS (Foreign eXchange Service ~= provices dialtone service)  cards generally run about $50.00 on ebay, with the NM-2V averaging around $14-$45. So all in all, I paid at or below the average price for the entire package, and it all arrives at the same time. (There are other types of cards as well, but FXO and FXS are the only types I&#8217;m concerned with)</p>
<p>My first task is to get enough memory installed in my 2621 to support an IOS image with VOIP and ADSL capabilities. I&#8217;d searched around for some time before finding a site that I really like &#8211; <a href="http://www.parts-quick.com/cisco-2621-router-memory.html" target="_blank">www.parts-quick.com</a>. They provide full specs on each router, the  max and min memory capabilities, flash upgrades, etc.. and the prices aren&#8217;t bad either.</p>
<div id="attachment_482" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.braindeadprojects.com/blog/wp-content/dsc03217.jpg"><img class="size-medium wp-image-482" title="Inside the bones of a 2621" src="http://www.braindeadprojects.com/blog/wp-content/dsc03217-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">The Glowing Bones of a Cisco 2621</p></div>
<p>My overall goal is to have one device that handles everything related to the telephone line: DSL termination/bridging, PSTN gateway, and dialtone server &#8211; a device I&#8217;m affectionately calling &#8220;<a href="http://en.wikipedia.org/wiki/Beige_box_(phreaking)" target="_blank">beigebox</a>0&#8243;. This will allow me to replace my Zyxel DSL bridge and Linksys PAP-2T, plus actually hook the PBX  into the PSTN. My current layout (an Asterisk box + Linksys PAP-2T)  has only SIP origination/termination, leaving an unused POTS line coming into my house. The new setup will still utilize the Asterisk PBX for voicemail and dialplan processing (as well as long distance over SIP, and an IAX2 trunk to <a href="http://telephreak.org" target="_blank">Telephreak</a>) , but use the Cisco 2621 for local call termination (calls in my native ratecenter).</p>
<div id="attachment_513" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.braindeadprojects.com/blog/wp-content/new_voice_lan-3.png"><img class="size-medium wp-image-513" title="The New Voice LAN" src="http://www.braindeadprojects.com/blog/wp-content/new_voice_lan-3.png" alt="" width="450" height="337" /></a><p class="wp-caption-text">The New Voice Lan (We don&#39;t need no stinkin&#39; Visio)</p></div>
<p>Routing (and PPPoE) will still be handled by the <a href="http://www.braindeadprojects.com/blog/what/multiple-wan-linux-based-router/" target="_blank">Quagga router</a>.  The Quagga also has a Courier V.32 Voice modem connected to it for troubleshooting dialup POPs, <a href="http://www.softwink.com/iwar/" target="_blank">wardialing</a> the 900 or so phone numbers my company owns (for auditing purposes),  and adding a backup connection in the event the DSL line goes dead (of course if dialtone is gone also, I&#8217;m out of luck). The modem _could_ be moved over to the 2621&#8242;s AUX port, but as all routing occurs at the Quagga, this layout makes more sense.</p>
<p>The link between the 2621 and the PBX could have been done a number of different ways. In the end, I opted to treat the 2621 as being on the WAN side of things, and I am using its management IP for that SIP endpoint. This gives me the ability to filter traffic between the PBX and the &#8220;beigebox&#8221; at the router. Directly connecting the 2621 to the PBX would reduce hop-count, however also add another location where firewall rules need to be managed and monitored aggressively.</p>
<p>Calls made from the home phone hit the 2621 via the FXS port, and are SIP-ed over the FastEthernet interface through the router and to the PBX.  If the call is long-distance it heads  BACK out the router to my SIP provider, with local calls heading back to the 2621 for connection to the PSTN. <em>All</em> call routing (local and long distance) is determined at the PBX. (The one exception being 911, which is immediately bridged at beigebox0)</p>
<div id="attachment_521" class="wp-caption aligncenter" style="width: 460px"><a href="http://www.braindeadprojects.com/blog/wp-content/Call-flow.png"><img class="size-medium wp-image-521" title="Call flow" src="http://www.braindeadprojects.com/blog/wp-content/Call-flow.png" alt="" width="450" height="337" /></a><p class="wp-caption-text">Basic flow of an outbound call</p></div>
<p style="text-align: center;">
<p>Incoming calls from the PSTN (via the FXO voice-port)  will soon be  sent to the PBX for handling &#8211; which will initially sends the call back to beigebox0 to ring the home phone (via the FXS port), and following a number of rings sent to voicemail on the PBX.</p>
<p>So far, the layout has functioned perfectly. Next up &#8211; finish inbound handling of calls on the PBX (voicemail, etc)</p>
<p><strong>Cisco 2621 config snippet:<br />
</strong></p>
<blockquote><p>hostname beigebox0</p>
<p>voice rtp send-recv<br />
!<br />
voice service voip<br />
sip<br />
bind all source-interface FastEthernet0/0</p>
<p>voice-port 1/0/0<br />
description POTS line<br />
ring number 10<br />
!<br />
voice-port 1/0/1<br />
!<br />
voice-port 1/1/0<br />
description HomePhone<br />
timeouts call-disconnect 10<br />
!<br />
voice-port 1/1/1<br />
description ModemLine<br />
timeouts call-disconnect 10<br />
!</p>
<p>!<br />
!<br />
dial-peer voice 100 pots<br />
description Dialing 411<br />
destination-pattern ^411$<br />
port 1/0/0<br />
!<br />
dial-peer voice 101 pots<br />
description Dialing 911<br />
destination-pattern ^911$<br />
port 1/0/0<br />
!<br />
dial-peer voice 102 voip<br />
description TelePhreak<br />
destination-pattern ^666$<br />
session protocol sipv2<br />
session target sip-server<br />
session transport udp<br />
dtmf-relay rtp-nte<br />
codec g711ulaw<br />
no vad<br />
!<br />
dial-peer voice 200 pots<br />
description PBXManualCallRouting<br />
destination-pattern ^70001&#8230;&#8230;.$<br />
port 1/0/0<br />
forward-digits 7<br />
!</p>
<p>dial-peer voice 300 voip<br />
description PBXConnector<br />
destination-pattern .T<br />
session protocol sipv2<br />
session target sip-server<br />
session transport udp<br />
dtmf-relay rtp-nte<br />
codec g711ulaw<br />
no vad<br />
!<br />
sip-ua<br />
calling-info pstn-to-sip from name set beigebox<br />
calling-info pstn-to-sip from number set 70001<br />
sip-server ipv4:&lt;PBX IP&gt;:5060<br />
!<br />
!<br />
telephony-service</p></blockquote>
<p><strong>Asterisk sip.conf config snippet:</strong></p>
<blockquote><p><strong> </strong>[beigebox]<br />
type=friend<br />
host=&lt;2621 Management IP&gt;<br />
nat=no<br />
qualify=no<br />
insecure=invite<br />
canreinvite=no<br />
context=beigebox</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.braindeadprojects.com/blog/what/the-new-voice-lan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.braindeadprojects.com @ 2012-02-06 08:55:54 -->
