<p>Hi</p>
<p>Have you seen thirdlane?<br>
Thirdlane has a multitenant version.</p>
<p>Regards</p>
<div class="gmail_quote">On Aug 11, 2012 11:11 AM, &quot;Carlos Alvarez&quot; &lt;<a href="mailto:carlos@televolve.com">carlos@televolve.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote">On Sat, Aug 11, 2012 at 3:16 AM, Kannan <span dir="ltr">&lt;<a href="mailto:vasdeveloper@gmail.com" target="_blank">vasdeveloper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>I am planning a multi-tenant VoIP services system with Asterisk, using configuration tweaks. Having all the tenant configurations in one configuration file is overwhelming. I would like to segment the configuration files and include them in the main configuration file. Is it possible?</div>


<div><br></div><div>For e.g. I would like to have the main extenstions.conf file to include tenant01_extenstions.conf, tenant02_extensions.conf. By this way it is easy to manage the configurations of each tenant.</div><div>


<br></div></blockquote><div><br></div><div>We put each tenant&#39;s sip and extensions config files in /etc/asterisk/accounts and then do an include for that directory in the main files.<div><br></div><div>We keep all the voicemail.conf in one because changes to passwords will NOT be saved to included files.  We used to use includes for voicemail but that meant no password changes.<br>

</div></div><div><br></div><div>The main file has a list of all phone numbers in the system in numerical order where we set the account name, and then we send them to the proper context like this:</div><div><br></div><div>

exten =&gt; 12015551212,1,Set(CDR(accountcode)=johnsmith)</div><div>........</div><div><br></div><div>exten =&gt; _X.,n(cont),Goto(${CDR(accountcode)}#did,${EXTEN},1)</div><div><br></div><div>There&#39;s a bunch of other stuff in there where we do line counting and such.</div>

</div><div><br></div>-- <br><div>Carlos Alvarez</div><div>TelEvolve</div><div>602-889-3003</div><div><br></div><br>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div>