<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Cisco router with FXO as an Asterisk gateway</title>
	<atom:link href="http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/</link>
	<description>Purging my mental dust bunnies</description>
	<lastBuildDate>Tue, 09 Mar 2010 14:55:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt Miller</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10950</link>
		<dc:creator>Matt Miller</dc:creator>
		<pubDate>Tue, 08 Sep 2009 04:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10950</guid>
		<description>You&#039;re correct on my setup.  I had played with the ephone-hunt command, but didn&#039;t think it would work given that the fxs ports aren&#039;t ephones.  I did discover the voice hunt-group command that in theory will do what I need.  I haven&#039;t had any luck confugiring it from home.  I&#039;ll have to drive over to that office and play with it when I get some time.  From what I could see from a debug voice dialpeer detail, it&#039;s trying to match an incoming and outgoing dialpeer and I never get transferred to Asterisk.  Asterisk never even shows an inbound SIP connection.   I tried a sequential hunt group, but there are several other types available now, so I&#039;ll have to mess with those.  If I get something to work, I&#039;ll post the configs in case someone else is looking to do something similar.</description>
		<content:encoded><![CDATA[<p>You&#8217;re correct on my setup.  I had played with the ephone-hunt command, but didn&#8217;t think it would work given that the fxs ports aren&#8217;t ephones.  I did discover the voice hunt-group command that in theory will do what I need.  I haven&#8217;t had any luck confugiring it from home.  I&#8217;ll have to drive over to that office and play with it when I get some time.  From what I could see from a debug voice dialpeer detail, it&#8217;s trying to match an incoming and outgoing dialpeer and I never get transferred to Asterisk.  Asterisk never even shows an inbound SIP connection.   I tried a sequential hunt group, but there are several other types available now, so I&#8217;ll have to mess with those.  If I get something to work, I&#8217;ll post the configs in case someone else is looking to do something similar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scott</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10944</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Tue, 08 Sep 2009 02:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10944</guid>
		<description>Matt, I&#039;m not real clear on what your setup is.  Sounds like you have PSTN lines on the FXO&#039;s and other SIP trunks from offices.  You have analog phones at that office on the FXS ports (not IP phones).  You want the Asterisk to only provide VM and get out of the way for regular calls if it&#039;s down.

Best bet is probably the hunt group like you suggested.  I don&#039;t have time to build that right now but basically the first hop in the hunt group is the FXS extension and the second is the Asterisk trunk to the VM.  If it gets to Asterisk it immediately goes to VM.  Just be sure to work through the hunt group logic to be sure you aren&#039;t black-holing the call if Asterisk is down.</description>
		<content:encoded><![CDATA[<p>Matt, I&#8217;m not real clear on what your setup is.  Sounds like you have PSTN lines on the FXO&#8217;s and other SIP trunks from offices.  You have analog phones at that office on the FXS ports (not IP phones).  You want the Asterisk to only provide VM and get out of the way for regular calls if it&#8217;s down.</p>
<p>Best bet is probably the hunt group like you suggested.  I don&#8217;t have time to build that right now but basically the first hop in the hunt group is the FXS extension and the second is the Asterisk trunk to the VM.  If it gets to Asterisk it immediately goes to VM.  Just be sure to work through the hunt group logic to be sure you aren&#8217;t black-holing the call if Asterisk is down.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Miller</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10942</link>
		<dc:creator>Matt Miller</dc:creator>
		<pubDate>Tue, 08 Sep 2009 01:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10942</guid>
		<description>&lt;a href=&quot;#comment-10941&quot; rel=&quot;nofollow&quot;&gt;@Matt Miller &lt;/a&gt; 
I should also add that the 1760 is not part of a larger call manager configuration.  All of the toll bypass is done with static SIP connections between phone systems.  I&#039;ve seen mention to STCAPP online, but only in reference to call manager, not call manager express (which is what&#039;s on the 1760).  It sounds like what I&#039;m trying to do, but I don&#039;t know that it&#039;s supported.</description>
		<content:encoded><![CDATA[<p><a href="#comment-10941" rel="nofollow">@Matt Miller </a><br />
I should also add that the 1760 is not part of a larger call manager configuration.  All of the toll bypass is done with static SIP connections between phone systems.  I&#8217;ve seen mention to STCAPP online, but only in reference to call manager, not call manager express (which is what&#8217;s on the 1760).  It sounds like what I&#8217;m trying to do, but I don&#8217;t know that it&#8217;s supported.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Miller</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10941</link>
		<dc:creator>Matt Miller</dc:creator>
		<pubDate>Tue, 08 Sep 2009 01:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10941</guid>
		<description>Hi.  I came across your page when trying to find a solution to my problem.  I&#039;ve got a 1760 (latest T-train IOS, max memory) with 4 FXO ports and 4 FXS ports.  I&#039;m currently using the 1760 to provide toll bypass to remote offices and I&#039;d like to use it to provide voicemail for an analog system whose voicemail component died (I&#039;d prefer to use Asterisk anyway, but the old one going is forcing me to push this to the top of my priority list).

The FXO ports are configured with:

connection plar opx 18005551212

There are voice dial peers configured with 18005551212 as the destination pattern, so when a call comes in, it rings the first available FXS port (and remote offices can place a sip call to the 1760&#039;s IP with the office&#039;s main number as the destination).  There are also dial peers configured for outbound calls to the analog lines as well as our remote locations.


Everything to this point has been working flawlessly.  I&#039;ve setup a dialpeer to asterisk, so when I dial 1191 from one of the analog ports, it routes to asterisk.  Again, this works.  The problem I have is that I&#039;m not sure how to configure call forward no answer for the FXO ports on the router.  I know I could do it if I had 2 ATAs to provide the FXO ports, but I don&#039;t want to invest in any more hardware.

I&#039;ve got a fix, but I&#039;m looking for a better solution.  Right now, I can use connection plar opx to send all incoming calls to 1191 (the sip connection to asterisk), then have asterisk place a sip call back to the 1760 to ring the FXS ports.  Asterisk would have the timeout built in to the dial command to divert the call to voicemail.  I&#039;d like to avoid this scenario because the Asterisk server is on older hardware and I do not want all incoming calls to be dependant on the Asterisk server.  
If the server were to fail, there is nobody at that location that could troubleshoot/repair the server and if it goes out, it would prevent all incoming calls from ringing.  I&#039;m hoping that someone on here might have an idea on how I can get this to work.  Maybe a hunt group, or something...  I&#039;m not sure how to do this since the dial-peer doesn&#039;t have the CFNA options that ephones have.</description>
		<content:encoded><![CDATA[<p>Hi.  I came across your page when trying to find a solution to my problem.  I&#8217;ve got a 1760 (latest T-train IOS, max memory) with 4 FXO ports and 4 FXS ports.  I&#8217;m currently using the 1760 to provide toll bypass to remote offices and I&#8217;d like to use it to provide voicemail for an analog system whose voicemail component died (I&#8217;d prefer to use Asterisk anyway, but the old one going is forcing me to push this to the top of my priority list).</p>
<p>The FXO ports are configured with:</p>
<p>connection plar opx 18005551212</p>
<p>There are voice dial peers configured with 18005551212 as the destination pattern, so when a call comes in, it rings the first available FXS port (and remote offices can place a sip call to the 1760&#8217;s IP with the office&#8217;s main number as the destination).  There are also dial peers configured for outbound calls to the analog lines as well as our remote locations.</p>
<p>Everything to this point has been working flawlessly.  I&#8217;ve setup a dialpeer to asterisk, so when I dial 1191 from one of the analog ports, it routes to asterisk.  Again, this works.  The problem I have is that I&#8217;m not sure how to configure call forward no answer for the FXO ports on the router.  I know I could do it if I had 2 ATAs to provide the FXO ports, but I don&#8217;t want to invest in any more hardware.</p>
<p>I&#8217;ve got a fix, but I&#8217;m looking for a better solution.  Right now, I can use connection plar opx to send all incoming calls to 1191 (the sip connection to asterisk), then have asterisk place a sip call back to the 1760 to ring the FXS ports.  Asterisk would have the timeout built in to the dial command to divert the call to voicemail.  I&#8217;d like to avoid this scenario because the Asterisk server is on older hardware and I do not want all incoming calls to be dependant on the Asterisk server.<br />
If the server were to fail, there is nobody at that location that could troubleshoot/repair the server and if it goes out, it would prevent all incoming calls from ringing.  I&#8217;m hoping that someone on here might have an idea on how I can get this to work.  Maybe a hunt group, or something&#8230;  I&#8217;m not sure how to do this since the dial-peer doesn&#8217;t have the CFNA options that ephones have.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank_Bauer</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10548</link>
		<dc:creator>Frank_Bauer</dc:creator>
		<pubDate>Thu, 27 Aug 2009 14:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10548</guid>
		<description>O.. I  have narrowed it down to the &quot;qualify=yes&quot; settings on the asterisk trunk and extension settings,asterisk is sending sip options to the gateway every 10 seconds by default, if no response is recieved in 2 seconds by default, then asterisk considers the peers / extensions unreachable. I have played arround with the default 10 seconds, for example &quot;qualify=3000&quot; which makes the sip connection last for 3000 seconds, but then it goes down again. I&#039;m looking into etending the time out, so I&#039;m guessing the next logical step is to extend the hold default hold timer of 2 seconds.</description>
		<content:encoded><![CDATA[<p>O.. I  have narrowed it down to the &#8220;qualify=yes&#8221; settings on the asterisk trunk and extension settings,asterisk is sending sip options to the gateway every 10 seconds by default, if no response is recieved in 2 seconds by default, then asterisk considers the peers / extensions unreachable. I have played arround with the default 10 seconds, for example &#8220;qualify=3000&#8243; which makes the sip connection last for 3000 seconds, but then it goes down again. I&#8217;m looking into etending the time out, so I&#8217;m guessing the next logical step is to extend the hold default hold timer of 2 seconds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank_Bauer</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10504</link>
		<dc:creator>Frank_Bauer</dc:creator>
		<pubDate>Tue, 25 Aug 2009 17:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10504</guid>
		<description>.. thanks will look into it and get back to you , leaving to go home from work now, talk to you soon .</description>
		<content:encoded><![CDATA[<p>.. thanks will look into it and get back to you , leaving to go home from work now, talk to you soon .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scott</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10503</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Tue, 25 Aug 2009 17:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10503</guid>
		<description>That&#039;s a tough one without more info.  Could be related to the timers in the sip-ua.  Debug is your friend!  Don&#039;t forget to open a debug console on Asterisk to see what it&#039;s trying to do.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a tough one without more info.  Could be related to the timers in the sip-ua.  Debug is your friend!  Don&#8217;t forget to open a debug console on Asterisk to see what it&#8217;s trying to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank_Bauer</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10501</link>
		<dc:creator>Frank_Bauer</dc:creator>
		<pubDate>Tue, 25 Aug 2009 15:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10501</guid>
		<description>Damnit.. spoke too soon, ok now the registration on the Gateway is timing out randomly.. any ideas ?</description>
		<content:encoded><![CDATA[<p>Damnit.. spoke too soon, ok now the registration on the Gateway is timing out randomly.. any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: scott</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10496</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Tue, 25 Aug 2009 14:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10496</guid>
		<description>Glad to hear it.  It&#039;s amazing how useful this post has been even though it&#039;s over 3 years old now!  I&#039;m just astounded by the age of it.</description>
		<content:encoded><![CDATA[<p>Glad to hear it.  It&#8217;s amazing how useful this post has been even though it&#8217;s over 3 years old now!  I&#8217;m just astounded by the age of it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank_Bauer</title>
		<link>http://www.thecruftofmybrain.com/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/comment-page-1/#comment-10495</link>
		<dc:creator>Frank_Bauer</dc:creator>
		<pubDate>Tue, 25 Aug 2009 13:54:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebrookes.com/blog/2006/03/14/cisco-router-with-fxo-as-an-asterisk-gateway/#comment-10495</guid>
		<description>Done it , worked ! :) You probably hear this all the time.. but.. LOVE YOUR WORK.... thanks man, really fast response, problem diagnosed and solved with a total VOIP novice....</description>
		<content:encoded><![CDATA[<p>Done it , worked ! <img src='http://www.thecruftofmybrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  You probably hear this all the time.. but.. LOVE YOUR WORK&#8230;. thanks man, really fast response, problem diagnosed and solved with a total VOIP novice&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
