{"id":475,"date":"2010-06-20T20:33:59","date_gmt":"2010-06-21T00:33:59","guid":{"rendered":"http:\/\/www.braindeadprojects.com\/blog\/?p=475"},"modified":"2010-06-20T20:36:03","modified_gmt":"2010-06-21T00:36:03","slug":"the-new-voice-lan","status":"publish","type":"post","link":"http:\/\/www.braindeadprojects.com\/blog\/what\/the-new-voice-lan\/","title":{"rendered":"The New Voice LAN"},"content":{"rendered":"<p>I&#8217;ve been meaning to look at the voice capabilities of the 1750&#8217;s I&#8217;d purchased while studying for my <a href=\"http:\/\/\">CCNA<\/a><\/p>\n<p>(<em>In previous posts I misspoke and claimed they were 1751&#8217;s, they are in -fact 1750&#8217;s<\/em>).\u00a0 The Cisco 1750&#8217;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>\n<figure id=\"attachment_485\" aria-describedby=\"caption-attachment-485\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03224.jpg\"><img loading=\"lazy\" decoding=\"async\" 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\" srcset=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03224-300x225.jpg 300w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03224-1024x768.jpg 1024w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03224.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-485\" class=\"wp-caption-text\">PVDM module goes in the top empty slot, DIMM in the right empty slot<\/figcaption><\/figure>\n<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>\n<figure id=\"attachment_488\" aria-describedby=\"caption-attachment-488\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03219.jpg\"><img loading=\"lazy\" decoding=\"async\" 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\" srcset=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03219-300x225.jpg 300w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03219-1024x768.jpg 1024w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03219.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-488\" class=\"wp-caption-text\">Right side is where the replaceable Flash goes<\/figcaption><\/figure>\n<p>Which made me look at the Cisco 2621 also sitting on my work-bench.\u00a0 Research quickly revealed I was looking at a much more affordable path.\u00a0 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>\n<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)\u00a0 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>\n<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\u00a0 max and min memory capabilities, flash upgrades, etc.. and the prices aren&#8217;t bad either.<\/p>\n<figure id=\"attachment_482\" aria-describedby=\"caption-attachment-482\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03217.jpg\"><img loading=\"lazy\" decoding=\"async\" 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\" srcset=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03217-300x225.jpg 300w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03217-1024x768.jpg 1024w, http:\/\/www.braindeadprojects.com\/blog\/wp-content\/dsc03217.jpg 2048w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-482\" class=\"wp-caption-text\">The Glowing Bones of a Cisco 2621<\/figcaption><\/figure>\n<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\u00a0 into the PSTN. My current layout (an Asterisk box + Linksys PAP-2T)\u00a0 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>\n<figure id=\"attachment_513\" aria-describedby=\"caption-attachment-513\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/new_voice_lan-3.png\"><img loading=\"lazy\" decoding=\"async\" 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><figcaption id=\"caption-attachment-513\" class=\"wp-caption-text\">The New Voice Lan (We don&#39;t need no stinkin&#39; Visio)<\/figcaption><\/figure>\n<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>.\u00a0 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),\u00a0 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&#8217;s AUX port, but as all routing occurs at the Quagga, this layout makes more sense.<\/p>\n<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>\n<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.\u00a0 If the call is long-distance it heads\u00a0 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>\n<figure id=\"attachment_521\" aria-describedby=\"caption-attachment-521\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.braindeadprojects.com\/blog\/wp-content\/Call-flow.png\"><img loading=\"lazy\" decoding=\"async\" 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><figcaption id=\"caption-attachment-521\" class=\"wp-caption-text\">Basic flow of an outbound call<\/figcaption><\/figure>\n<p style=\"text-align: center;\">\n<p>Incoming calls from the PSTN (via the FXO voice-port)\u00a0 will soon be\u00a0 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>\n<p>So far, the layout has functioned perfectly. Next up &#8211; finish inbound handling of calls on the PBX (voicemail, etc)<\/p>\n<p><strong>Cisco 2621 config snippet:<br \/>\n<\/strong><\/p>\n<blockquote><p>hostname beigebox0<\/p>\n<p>voice rtp send-recv<br \/>\n!<br \/>\nvoice service voip<br \/>\nsip<br \/>\nbind all source-interface FastEthernet0\/0<\/p>\n<p>voice-port 1\/0\/0<br \/>\ndescription POTS line<br \/>\nring number 10<br \/>\n!<br \/>\nvoice-port 1\/0\/1<br \/>\n!<br \/>\nvoice-port 1\/1\/0<br \/>\ndescription HomePhone<br \/>\ntimeouts call-disconnect 10<br \/>\n!<br \/>\nvoice-port 1\/1\/1<br \/>\ndescription ModemLine<br \/>\ntimeouts call-disconnect 10<br \/>\n!<\/p>\n<p>!<br \/>\n!<br \/>\ndial-peer voice 100 pots<br \/>\ndescription Dialing 411<br \/>\ndestination-pattern ^411$<br \/>\nport 1\/0\/0<br \/>\n!<br \/>\ndial-peer voice 101 pots<br \/>\ndescription Dialing 911<br \/>\ndestination-pattern ^911$<br \/>\nport 1\/0\/0<br \/>\n!<br \/>\ndial-peer voice 102 voip<br \/>\ndescription TelePhreak<br \/>\ndestination-pattern ^666$<br \/>\nsession protocol sipv2<br \/>\nsession target sip-server<br \/>\nsession transport udp<br \/>\ndtmf-relay rtp-nte<br \/>\ncodec g711ulaw<br \/>\nno vad<br \/>\n!<br \/>\ndial-peer voice 200 pots<br \/>\ndescription PBXManualCallRouting<br \/>\ndestination-pattern ^70001&#8230;&#8230;.$<br \/>\nport 1\/0\/0<br \/>\nforward-digits 7<br \/>\n!<\/p>\n<p>dial-peer voice 300 voip<br \/>\ndescription PBXConnector<br \/>\ndestination-pattern .T<br \/>\nsession protocol sipv2<br \/>\nsession target sip-server<br \/>\nsession transport udp<br \/>\ndtmf-relay rtp-nte<br \/>\ncodec g711ulaw<br \/>\nno vad<br \/>\n!<br \/>\nsip-ua<br \/>\ncalling-info pstn-to-sip from name set beigebox<br \/>\ncalling-info pstn-to-sip from number set 70001<br \/>\nsip-server ipv4:&lt;PBX IP&gt;:5060<br \/>\n!<br \/>\n!<br \/>\ntelephony-service<\/p><\/blockquote>\n<p><strong>Asterisk sip.conf config snippet:<\/strong><\/p>\n<blockquote><p><strong> <\/strong>[beigebox]<br \/>\ntype=friend<br \/>\nhost=&lt;2621 Management IP&gt;<br \/>\nnat=no<br \/>\nqualify=no<br \/>\ninsecure=invite<br \/>\ncanreinvite=no<br \/>\ncontext=beigebox<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been meaning to look at the voice capabilities of the 1750&#8217;s I&#8217;d purchased while studying for my CCNA (In previous posts I misspoke and claimed they were 1751&#8217;s, they are in -fact 1750&#8217;s).\u00a0 The Cisco 1750&#8217;s have a slot for Voice Interface Cards, something I&#8217;ve not worked with &#8211; and something that influenced my &hellip; <a href=\"http:\/\/www.braindeadprojects.com\/blog\/what\/the-new-voice-lan\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">The New Voice LAN<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,20,16,19,1],"tags":[],"class_list":["post-475","post","type-post","status-publish","format-standard","hentry","category-asterisk","category-cisco","category-vlan","category-voip","category-what"],"_links":{"self":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/475"}],"collection":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/comments?post=475"}],"version-history":[{"count":114,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/475\/revisions"}],"predecessor-version":[{"id":695,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/posts\/475\/revisions\/695"}],"wp:attachment":[{"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/media?parent=475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/categories?post=475"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.braindeadprojects.com\/blog\/wp-json\/wp\/v2\/tags?post=475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}