[karoo-users] Documentation

Cristian Luna lunacristian at gmail.com
Mon Jul 23 11:34:49 MDT 2012


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")
      {
            profile.setTargetAddress("udp","IP_PBX","5060");
            return true;
      }else
      {
            return false;
      }
}

Good luck


2012/7/23 Darren Williams <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
> 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/20120723/df1491d4/attachment-0001.html>


More information about the karoo-users mailing list