<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>RE: [asterisk-users] Match a Numer - then continue with dialplan</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>If you have no statuc stuff in your dialplan, how do you use the 'include =&gt;' statement? We don't have users... we have companies. It's a hosted IPT service... and to make the problem even more insane, each company has multiple levels of organisational structure.<BR>
<BR>
Hardly, you're not required to use it ;-)<BR>
<BR>
You have heard of the s? I think in our hundreds of lines of dialplan, I think we have at most 10 lines that match extensions, the rest is all handled by s.<BR>
<BR>
What we have a lot is the following in extensions.conf<BR>
<BR>
include &lt;extensions/example.conf<BR>
<BR>
[default]<BR>
exten =&gt; _.,1,Goto(example-outgoing,s,1)<BR>
<BR>
And then in example.conf:<BR>
<BR>
[example-outgoing]<BR>
<BR>
exten =&gt; s,1,DoSomeStuff<BR>
exten =&gt; s,2,SetVar(outgoingCallerID=VALUE)<BR>
exten =&gt; s,3,Goto(example_real_outgoing,s,1)<BR>
<BR>
[example_real_outgoing]<BR>
exten =&gt; s,1,DoSomeMoreStuff<BR>
exten =&gt; s,2,*SET outgoign caller id*<BR>
exten =&gt; s,3,Dial()<BR>
</FONT>
</P>

</BODY>
</HTML>