[karoo-users] Documentation
Joegen E. Baclor
joegen at ossapp.com
Mon Jul 23 19:34:53 MDT 2012
Darren,
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.
Joegen
On 07/24/2012 01:34 AM, Cristian Luna wrote:
> Hi Darren,
>
> I'am user of karoo, in my environment DMZ(Karoo) -> Trust (Sipx) my
> settings for upper reg is this:
>
> route.js
>
> function Route()
> {
> }
>
> Route.prototype = new RouteProfile();
>
> Route.prototype.isRoutable = function()
> {
> if (is_domain_routable(this))
> return true;
> else
> return false;
> }
>
> your.sip.domain.js
>
> function is_domain_routable(profile)
> {
> var ip = profile.sipMessage.getSourceAddress();
> var domain = profile.sipMessage.getFromHost();
>
> if (ip != "IP_Karoo" && domain == "sip.domain.com
> <http://sip.domain.com>")
> {
> profile.setTargetAddress("udp","IP_PBX","5060");
> return true;
> }else
> {
> return false;
> }
> }
>
> Good luck
>
>
> 2012/7/23 Darren Williams <darren at dmmhosting.co.uk
> <mailto:darren at dmmhosting.co.uk>>
>
> Hi,
>
> 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?
>
> TIA
>
>
> _______________________________________________
> karoo-users mailing list
> karoo-users at box685.bluehost.com
> <mailto:karoo-users at box685.bluehost.com>
> http://box685.bluehost.com/mailman/listinfo/karoo-users_ossapp.com
>
>
>
>
> _______________________________________________
> karoo-users mailing list
> karoo-users at box685.bluehost.com
> http://box685.bluehost.com/mailman/listinfo/karoo-users_ossapp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ossapp.com/pipermail/karoo-users_ossapp.com/attachments/20120724/837dff3f/attachment-0001.html>
More information about the karoo-users
mailing list