<p>Hi there,<br>
we are using kamailio as Registrar and Dispatcher.<br>
Running   <code>modparam("auth_db", "use_domain", MULTIDOMAIN) //with MULTIDOMAIN = 1</code><br><br>
In our <code>route[AUTH]</code><br><br>
I call <code>if (!auth_check("$fd", "subscriber", "1")) {</code><br><br>
to filter unwanted Guests and and brute-force attacks to the blacklist.</p>

<p>strangely auth_check fails under the following conditions:<br>
1 UserAgent(Phone) with 2 SipAccounts with the same user-name but different realm<br><br>
The first account can REGISTER without a problem.<br>
for the second Account REGISTER fails with -2.<br>
If I disable the first one the second one Registered.</p>

<p>Could it be that auth_check is not multidomain-safe in one user-agent thread?  </p>

<p>Hope to here from you...</p>

<p>PS: I like kamailio =).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/548">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZTT2GMySssiYJ-SJJRFrFJ43hBmWks5pv_0IgaJpZM4H2JXE.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/548"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>