<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Darren,<br>
<br>
There is a cookbook available in the website that demonstrates all
the aspects of how routing can be done in Karoo Bridge. If you
want to use Karoo Bridge as a transparent SBC, all you need to do
is install and use it as an outbound proxy for your asterisk. It
should work out of the box. Cristians example has an extra layer
of checking where it checks the domain and manually set the target
address.<br>
<br>
Joegen<br>
<br>
On 07/24/2012 01:34 AM, Cristian Luna wrote:<br>
</div>
<blockquote
cite="mid:CAHmjmfD+7vEo+W2KmzKLhxkkUe6466UjMKL5SMxkY4tqrWR=yg@mail.gmail.com"
type="cite">Hi Darren,<br>
<br>
I'am user of karoo, in my environment DMZ(Karoo) -> Trust
(Sipx) my settings for upper reg is this:<br>
<br>
route.js<br>
<br>
function Route()<br>
{<br>
}<br>
<br>
Route.prototype = new RouteProfile();<br>
<br>
Route.prototype.isRoutable = function()<br>
{<br>
if (is_domain_routable(this))<br>
return true;<br>
else<br>
return false;<br>
}<br>
<br>
your.sip.domain.js<br>
<br>
function is_domain_routable(profile)<br>
{<br>
var ip = profile.sipMessage.getSourceAddress();<br>
var domain = profile.sipMessage.getFromHost();<br>
<br>
if (ip != "IP_Karoo" && domain == "<a
moz-do-not-send="true" href="http://sip.domain.com">sip.domain.com</a>")<br>
{<br>
profile.setTargetAddress("udp","IP_PBX","5060");<br>
return true;<br>
}else<br>
{<br>
return false;<br>
}<br>
}<br>
<br>
Good luck<br>
<br>
<br>
<div class="gmail_quote">2012/7/23 Darren Williams <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:darren@dmmhosting.co.uk" target="_blank">darren@dmmhosting.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there anywhere I can find any
sample config for a NAT
helper and upper registration to put in front of
Asterisk/FreePBX in the same
way that could be done with OpenSBC?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">TIA</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div>
<br>
_______________________________________________<br>
karoo-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:karoo-users@box685.bluehost.com">karoo-users@box685.bluehost.com</a><br>
<a moz-do-not-send="true"
href="http://box685.bluehost.com/mailman/listinfo/karoo-users_ossapp.com"
target="_blank">http://box685.bluehost.com/mailman/listinfo/karoo-users_ossapp.com</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
karoo-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:karoo-users@box685.bluehost.com">karoo-users@box685.bluehost.com</a>
<a class="moz-txt-link-freetext" href="http://box685.bluehost.com/mailman/listinfo/karoo-users_ossapp.com">http://box685.bluehost.com/mailman/listinfo/karoo-users_ossapp.com</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>