<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
That's what macro is useful for. Don't include these common contexts, but convert them to macros and call these macros from user's dialplan. Macros in asterisk dialplan are close to subroutines rather than to C-style #define.<BR>
<BR>
On Mon, 2005-11-14 at 07:44 +0000, Daniel Clark wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#000080">Thanks for the reply, it&#8217;s an approach I didn&#8217;t think of to simply include the information from the other contexts into where I would be including from. In most cases that would work, but not in my case. Each user of my system will be able to place outgoing calls using their own sip connection (as in one they create with sipgate or vonage etc). To ensure that each user can dial out with their own sip connection and nobody else&#8217;s they are each getting their own context and that context is the only place in the dialplan to dial that particular external sip connection. For a small amount of users it&#8217;s possible to include all the information in each context, however I&#8217;m dealing with 15,000 users and would like a database small enough to fit on the hard disk!</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">&nbsp;</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">Would it not be possible to do something with the Goto app? In each persons dialplan I can have an extension to catch internal numbers and then forward to another context using exten =&gt; 1,1,Goto(context2) or something like that?</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000080">&nbsp;</FONT></FONT>
</BLOCKQUOTE>
</BODY>
</HTML>