title: #include another dialplan - asterisk
body: <p>I have a dialplan that contains the IVR flow for a number of applications, all on different extensions. I am now trying to clean it up by moving some of them to separate <code>.conf</code> files. Here is how the external <code>.conf</code> files are being <code>#included</code> into <code>extensions.conf</code> at present. All the separate <code>.conf</code> files are present within <code>/etc/asterisk</code>:  </p>
  
  <p>In <code>extensions.conf</code>:  </p>
  
  <pre><code>#include "temp.conf"
  
  [globals]  
  ... 
  </code></pre>
  
  <p>The IVR in <code>temp.conf</code> works OK, but none of the other applications work. While the incoming dispatcher sends it to the appropriate functions, none of the global variables seem to be set up properly.   </p>
  
  <p>Is there a proper order that I must follow in order for all contexts to work correctly?</p>