<p>Hi Rumen,</p>
<p>Im sorry to have missed the chance to give you extended details earlier. As per my experience you&#39;ve to do the following:</p>
<p>1. Load the domain.so module. Point the domain names (DNS URLs) to your kamailio IP adress and add those domain names into the domain table.</p>
<p>2. Set the Registrar, Auth-db, and Usrloc module to use domain. (I dont remember these modules correctly)</p>
<p>3. Create users in Kamailio with their new realm/domain. I.e<br>
kamctl add 101@companyA.com passw0rd<br>
Kamctl add 101@companyB.com secr3t</p>
<p>Tell customers to log in using these domain names as their registrar server.</p>
<p>These should get what you are looking for. Make sure that your asterisks detect the domains and send out the calls back to kamailio with correcy domain parts.</p>
<p>Please add anything I might&#39;ve missed due to late night reply.</p>
<p>Best Regards,<br>
Sammy.<br>
</p>
<div class="gmail_quote">On Jan 8, 2013 12:07 AM, &quot;Rumen Mihailov&quot; &lt;<a href="mailto:zealas1662@gmail.com">zealas1662@gmail.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">
Hello Kamailio, VoIP and asterisk gurus,<br>
<br>
I have the following really complicated scenario to solve.<br>
<br>
I have CompanyA which has extensions 100-120<br>
I have CompanyB which has extensions 100-115<br>
I have CompanyC which has extensions 100-130<br>
<br>
Now I want to have all those extensions on a single kamailio box, but<br>
I want to achieve the following.<br>
CompanyA calls 110 and this rings CompanyA 110 not CompanyB or<br>
CompanyC. What I want to achive is multitenancy.<br>
<br>
I know how to make this in asterisk but I want to take advantage of<br>
Kamailio&#39;s load balancing and HA features.<br>
<br>
Sammy from the mailing lists advised that I use multidomain and<br>
actually I saw that this module is indeed intended to do that, however<br>
I have no clue how to use it.<br>
<br>
I mean do I have to setup a domain for all the companies ? For<br>
instance <a href="http://companya.itradebg.com" target="_blank">companya.itradebg.com</a>, <a href="http://companyb.itradebg.com" target="_blank">companyb.itradebg.com</a> and then advise<br>
the customers to register to their respective domain or what ?<br>
<br>
This concept is really a bit tough for me despite all the help from<br>
Sammy for which I am really greatful.<br>
<br>
I would greatly appreciate any tutorials or links to some useful<br>
documentation apart from the module documentation.<br>
<br>
Thank you in advance guys.<br>
<br>
Best regards,<br>
Rumen<br>
<a href="http://itradebg.com" target="_blank">http://itradebg.com</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>