<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you can have a condition like:<br>
<br>
if($fd != $rd) {<br>
send_reply("403", "Inter domain not allowed");<br>
exit;<br>
}<br>
<br>
You can place it after authentication.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 09/04/15 20:33, Bruno Emer wrote:<br>
</div>
<blockquote
cite="mid:CANSN5OUp+0D97VmtT_uX1P_oY_ok3HBHQmVXG9S1FvFnFMuOTA@mail.gmail.com"
type="cite">
<div dir="ltr">Hello all!
<div><br>
</div>
<div>I have a scenario here where I need to put more than two
companies into the same Kamailio server and to accomplish this
I'm using a multi-domain configuration.</div>
<div><br>
</div>
<div>For now, I am able to create users in different domains and
register all of them. The users are able to place and receive
internal calls (as I am using this just to get internal
communications working), so I am ok with this part of my
configuration.</div>
<div><br>
</div>
<div>The problem that I'm facing now is that users from domain
"A" are able to place calls to users from domain "B". I need
to deny calls between different domains, and I don't know the
best way to achieve this.</div>
<div><br>
</div>
<div>Here are my domains create (output from "kamctl domain
show"):</div>
<div><br>
</div>
<div>
<div>domain:: <a moz-do-not-send="true"
href="http://enterprise.com">enterprise.com</a></div>
<div><span class="" style="white-space:pre"> </span>did:: <a
moz-do-not-send="true" href="http://enterprise.com">enterprise.com</a></div>
<div>domain:: <a moz-do-not-send="true"
href="http://enterprise2.com">enterprise2.com</a></div>
<div><span class="" style="white-space:pre"> </span>did:: <a
moz-do-not-send="true" href="http://enterprise2.com">enterprise2.com</a></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>And here are my users created:</div>
<div><br>
</div>
<div>username: bob<br>
</div>
<div>domain: <a moz-do-not-send="true"
href="http://enterprise.com">enterprise.com</a></div>
<div><br>
</div>
<div>username: alice</div>
<div>domain: <a moz-do-not-send="true"
href="http://enterprise2.com">enterprise2.com</a></div>
<div><br>
</div>
<div><br>
</div>
<div>So, can you please help me to get this?</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>