[Asterisk-Users] Re: 7960 straight through?

Scott Laird scott at sigkill.org
Fri Jun 18 09:06:27 MST 2004


On Jun 18, 2004, at 8:56 AM, Randy Bush wrote:

>> Err, it works for me, with a 7940 and 6.3.  I've never bothered with
>> 'NewCall' or 'Dial'; you can get around them if you can set up a 
>> decent
>> dialplan.xml.
>
> aha.  ok.  thanks.  on to sorting out a dialplan.xml.  any simple
> one that sez "just give it all to asterisk?"

Here's mine.  It's not terrifically complicated.  If you remove 
everything but the last <TEMPLATE> line, then it'll timeout on 
everything after 5 seconds.

The single-digit lines are new; once I've had time to verify that they 
work, I'll remove the 425 and 206 entries.  I'm obviously not using 
'dial 9 for an outside line' here.

<DIALTEMPLATE>
   <TEMPLATE MATCH="22.." Timeout="0"/>
   <TEMPLATE MATCH="425......." Timeout="0"/>
   <TEMPLATE MATCH="206......." Timeout="0"/>
   <TEMPLATE MATCH="2........." Timeout="0"/>
   <TEMPLATE MATCH="3........." Timeout="0"/>
   <TEMPLATE MATCH="4........." Timeout="0"/>
   <TEMPLATE MATCH="5........." Timeout="0"/>
   <TEMPLATE MATCH="6........." Timeout="0"/>
   <TEMPLATE MATCH="7........." Timeout="0"/>
   <TEMPLATE MATCH="8........." Timeout="0"/>
   <TEMPLATE MATCH="9........." Timeout="0"/>
   <TEMPLATE MATCH="1.........." Timeout="0"/>
   <TEMPLATE MATCH="*" Timeout="5"/>
</DIALTEMPLATE>


Scott




More information about the asterisk-users mailing list