<p>Hi Matt,</p>
<p>That&#39;s somewhat closer to what I do in my dialplan as well. But Dan apparantly wants to add new contexts in his `extensions` table.<br></p>
<p>Zeeshan A Zakaria</p>
<p>--<br>
<a href="http://www.ilovetovoip.com">www.ilovetovoip.com</a></p>
<p><blockquote type="cite">On 2010-08-18 6:02 PM, &quot;Matt Riddell&quot; &lt;<a href="mailto:lists@venturevoip.com">lists@venturevoip.com</a>&gt; wrote:<br><br>We don&#39;t use a context for that.<br>
<br>
We set up dialplan code in a non asterisk part of MySQL called &quot;routing<br>
types&quot;.<br>
<br>
When a customer selects a DDI number they can choose a routing type to<br>
use with it.<br>
<br>
These routing types allow for variable substitution - i.e. if someone<br>
adds the routing type &quot;Direct Routing With Failover&quot;, there is a<br>
variable with this type called failover routing.<br>
<br>
The call is then sent to their SIP or IAX2 device (if not on the same<br>
machine that has the DDI number it uses DUNDI to find the appropriate<br>
machine).  If somebody is unavailable on all machines, it sets the<br>
account code to the customer and goes to the outbound context for dialling.<br>
<br>
The difference is that in the routing type we don&#39;t use extensions (just<br>
applications).<br>
<br>
When someone adds the routing type to their DDI realtime extensions are<br>
created with extension 5551234 (or whatever their DDI number is) and<br>
priorities which increase.  It makes some things a bit harder, but you<br>
can always use labels and the read application.<br>
<br>
--<br>
Cheers,<br>
<br>
Matt Riddell<br>
_______________________________________________<br>
<br>
<a href="http://www.venturevoip.com/news.php" target="_blank">http://www.venturevoip.com/news.php</a> (Daily Asterisk News)<br>
<a href="http://www.venturevoip.com/exchange.php" target="_blank">http://www.venturevoip.com/exchange.php</a> (Full ITSP Solution)<br>
<a href="http://www.venturevoip.com/st.php" target="_blank">http://www.venturevoip.com/st.php</a> (SmoothTorque Predictive Dialer)<br>
<font color="#888888"><br>
--<br>
</font><p><font color="#500050">_____________________________________________________________________<br>-- Bandwidth and Colocation Pr...</font></p></blockquote></p>