It seems many people are looking for ways to control gateways, resiliency of termination, and limit on connections easily in FS. Here are some of the thoughts I had, and I would like to hear what others think of this.<br><br>


In tradition phone hardware you would define lines, put them into a group, and then assign a route to go through that group. For resiliency you could group multiple routes together into a route list, if the first route failed, was all busy, or unavailable it would start to try the second route. If you go out a secondary route you can also play a warning tone to indicate this might be going out a more expensive connection. For example you may have an IP link between two boxes, then fail back to TDM if the IP links go down, the TDM would be more expensive so you would want to warn business users so they don&#39;t spend hours on the phone.<br>


<br>Inbound and outbound calls could both go on the lines so when a call comes in or goes out a route it takes up one slot.<br><br>My thought is, why don&#39;t we create something similar to this that will allow us to handle a lot of these cases without complex dialplans. We could create routes that are assigned to gateways and limit the number of incoming, outgoing, and total connections that can be on that route. We could also specify what cases we would consider as failure to move onto the next route if we are in a route list. Route lists would then be similar to using multiple limits, and failover, but in this case it would simply be a list.<br>


<br>The following is an example of how I think this could be prgrammed.<br><br>&lt;routes&gt;<br>   &lt;route id=&quot;route1&quot; gateway=&quot;provider1&quot; max-inbound=&quot;5&quot; max-outbound=&quot;5&quot; max-total=&quot;5&quot; countinue_on_fail=&quot;NORMAL_TEMPORARY_FAILURE,TIMEOUT,NO_ROUTE_DESTINATION&quot;/&gt;<br>

   &lt;route id=&quot;route2&quot; gateway=&quot;provider2&quot; max-inbound=&quot;0&quot; max-outbound=&quot;5&quot; max-total=&quot;5&quot; countinue_on_fail=&quot;NORMAL_TEMPORARY_FAILURE&quot;/&gt;<br>   &lt;route id=&quot;route3&quot; gateway=&quot;provider3&quot; max-inbound=&quot;5&quot; max-outbound=&quot;5&quot; max-total=&quot;10&quot; countinue_on_fail=&quot;NO_ROUTE_DESTINATION&quot;/&gt;<br>

&lt;/routes&gt;<br>&lt;route_lists&gt;<br>   &lt;route_list id=&quot;list1&quot;&gt;<br>          &lt;route id=&quot;route1&quot;/&gt;<br>
          &lt;route id=&quot;route2&quot; warning_tone=&quot;expensive.wav&quot;/&gt;<br>
          &lt;route id=&quot;route3&quot; warning_tone=&quot;really_expensive.wav&quot;/&gt;<br>   &lt;/route_list&gt;<br>&lt;/route_litsts&gt;<br><br>Then in your dialplan you would simply put:<br><br>&lt;extension name=&quot;outbound_rout&quot;&gt;<br>


   &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{10})$&quot;&gt;<br>
      &lt;action application=&quot;bridge&quot; data=&quot;route/route2/$1&quot;/&gt;<br>
   &lt;/condition&gt;<br>
&lt;/extension&gt;<br><br>OR<br><br>&lt;extension name=&quot;outbound_route&quot;&gt;<br>   &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d{10})$&quot;&gt;<br>      &lt;action application=&quot;bridge&quot; data=&quot;route_list/list1/$1&quot;/&gt;<br>

   &lt;/condition&gt;<br>&lt;/extension&gt;<br><br>   The module would need to track not only outbound calls, but also inbound calls that come in through the specified gateways. This would help track cases where you have say only two channels that can be used for both incoming and outgoing calls.<br>

<br>   I&#39;m not 100% sure if this is all feasable or if it would be that much of an improvement compaired to what is already there so I put it out to all of you for feedback.<br><br>Regards,<br>    Kevin Green<br><br>
JohnnyVoIP<br>
350 Legget Drive<br>Kanata, ON, Canada<br>K2K 2W7<br><br>Phone:   613 271 5993 Ext 1203<br>Fax:       613 271 9810<br>