[karoo-users] karoo config problem
jam li
ctshyd218 at gmail.com
Sat Aug 29 04:43:09 MDT 2015
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"; // (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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://box685.bluehost.com/pipermail/karoo-users_ossapp.com/attachments/20150829/46ebb32a/attachment.html>
More information about the karoo-users
mailing list