[karoo-users] karoo config problem

Joegen E. Baclor joegen at ossapp.com
Sat Aug 29 17:12:28 MDT 2015


I assume you have freeswitch running on a different port other than 
5060?  Let's assume FS is ilstening on port 5070 on the same box as 
karoo, then you must set the target as follows

profile.setTargetAddress(
                 "udp",
                 "209.121.111.211",
                 "5070");


Attach /var/logs/karoo/sbc.log when reporting issues.

On 08/29/2015 06:43 PM, jam li wrote:
>
> I installed karoo on my centos 64 bit server,  and have freeswitch 
> server also installed on the same machine, but when i try to login 
> freeswtich user(sip users) from my android softphone i am unable to 
> login. can you please guide me what could be the problem.
>
> Below are my karoo configuration details:
>
>
> I configured karoo by reading the tutorial given in 
> http://www.ossapp.com/karoo/Cookbook.pdf
>
>
> *I configured karoo as follows:
>
> *
> *my /etc/karoo.conf.d/config/sip.cfg file looks as follows.*
>
> listeners :
> {
>     interfaces = (
>     {
>         default = true; // Set to true if you want peripheral services 
> to use this transport as the default interface.
>         ip-address = "209.121.111.211"; // The Host IP Address
>         //external-address = "";  // (Optional) External IP address if 
> the virtual IP is behind a port mapped firewall
>         tcp-enabled = true;  // Enable TCP transport
>         udp-enabled = true; // Enable UDP Transport
>         //ws-enabled = true; // Enable WebSocket Transport
>         //tls-enabled = true; // Enable TLS Transport
>         sip-port = 5060; // Port for TCP and UDP
>         //tls-port = 5061; // Port for TLS
>         //ws-port = 5062; // Port for WebSocket
>         //subnets = "0.0.0.0/0 <http://0.0.0.0/0>"; // (Optional) 
> Comma delimited subnets reachable by this transport
>     } );
> *
> *
> *rest all in this file is same.*
>
> -----------------------------------------------------------------------------------------------------------
>
> *i created a new file abc.js in /etc/karoo.con.d/routes/ directory and 
> added this funtion to it.*
>
> function is_mysipdomain_routable(profile)
> {
>     var ip = profile.sipMessage.getSourceAddress();
>     var domain = profile.sipMessage.getFromHost();
>     if (ip != "209.121.111.211" && domain == "209.121.111.211")
>         {
>             profile.setTargetAddress(
>                 "udp",
>                 "209.121.111.211",
>                 "5060");
>             return true;
>         }else
>         {
>         return false;
>     }
> }
>
> *below is what i added to route.js file after commenting the all-ready 
> existing isRoutable function.*
>
> Route.prototype.isRoutable = function()
> {
>     if (is_mysipdomain_routable(this))
>     return true;
>     else
>     return false;
> }
>
>
> _______________________________________________
> karoo-users mailing list
> karoo-users at ossapp.com
> http://www.ossapp.com/mailman/listinfo/karoo-users_ossapp.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ossapp.com/pipermail/karoo-users_ossapp.com/attachments/20150830/6a3e15ae/attachment-0001.html>


More information about the karoo-users mailing list