<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.E-mailStijl17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTML-voorafopgemaaktChar
        {mso-style-name:"HTML - vooraf opgemaakt Char";
        mso-style-priority:99;
        mso-style-link:"HTML - vooraf opgemaakt";
        font-family:"Courier New";
        mso-fareast-language:NL-BE;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NL-BE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">I’m building a setup with FreeSWITCH and Kamailio 5.2 but I’m having troubles in handling the registrations for multiple domains.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">So far I have in my config these related settings:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><i><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:gray;mso-fareast-language:NL-BE"><br>
# Disable database completely<br>
</span></i><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:blue;mso-fareast-language:NL-BE">modparam("usrloc", "db_mode", 0)<br>
</span></b><i><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:gray;mso-fareast-language:NL-BE"># Take domain into account when saving<br>
</span></i><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:blue;mso-fareast-language:NL-BE">modparam("usrloc", "use_domain", 1)<br>
</span></b><i><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:gray;mso-fareast-language:NL-BE"># Preload location table<br>
</span></i><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:blue;mso-fareast-language:NL-BE">modparam("usrloc", "preload", "location")</span></b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Courier New";color:black;mso-fareast-language:NL-BE"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I’m using the app_python module; when performing the registrar save like this:<o:p></o:p></span></p>
<pre style="background:white"><span lang="EN-GB" style="color:black">KSR.registrar.save(KSR.pv.get(</span><b><span lang="EN-GB" style="color:green">'$fd'</span></b><span lang="EN-GB" style="color:black">), </span><span lang="EN-GB" style="color:blue">1</span><span lang="EN-GB" style="color:black">)<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">It fails, the debug shows that it cannot find the domain that the SIP user has here.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">When I use:<o:p></o:p></span></p>
<pre style="background:white"><span lang="EN-GB" style="color:black">KSR.registrar.save(</span><b><span lang="EN-GB" style="color:green">'location'</span></b><span lang="EN-GB" style="color:black">, </span><span lang="EN-GB" style="color:blue">1</span><span lang="EN-GB" style="color:black">)<o:p></o:p></span></pre>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">The phone registers just fine; however I’m bothered by the fact that the documentation states that you should specify the domain as a parameter. Is it OK if everything is in one ‘location’ domain? How can I let Kamailio
 know what domains exist (where does Kamailio get this information from)? We have a unique domain for every customer, like g123.ctx.ourcompany.tld.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kind regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Maarten Ureel<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
</div>
</body>
</html>