<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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<br>
<br>
profile.setTargetAddress(<br>
"udp",<br>
"209.121.111.211",<br>
"5070"); <br>
<br>
<br>
Attach /var/logs/karoo/sbc.log when reporting issues. <br>
<br>
On 08/29/2015 06:43 PM, jam li wrote:<br>
</div>
<blockquote
cite="mid:CAM+TZT3YMZ1-5QuABmaZqCBgE8oeOJjeevZU6Tw7q+eDMG9ydw@mail.gmail.com"
type="cite">
<div><br>
</div>
<div>
<div>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.<br>
<br>
</div>
<div>Below are my karoo configuration details:<br>
<br>
<br>
</div>
<div>I configured karoo by reading the tutorial given in <a
moz-do-not-send="true"
href="http://www.ossapp.com/karoo/Cookbook.pdf"
target="_blank"><a class="moz-txt-link-freetext" href="http://www.ossapp.com/karoo/Cookbook.pdf">http://www.ossapp.com/karoo/Cookbook.pdf</a></a><br>
</div>
<div><br>
<br>
<b><span style="color:rgb(0,0,255)">I configured karoo as
follows:<br>
<br>
</span></b></div>
<div><b><span style="color:rgb(0,0,255)">my
/etc/karoo.conf.d/config/sip.cfg file looks as follows.</span></b><br>
<br>
listeners : <br>
{<br>
interfaces = (<br>
{<br>
default = true; // Set to true if you want peripheral
services to use this transport as the default interface. <br>
ip-address = "209.121.111.211"; // The Host IP
Address <br>
//external-address = ""; // (Optional) External IP
address if the virtual IP is behind a port mapped firewall<br>
tcp-enabled = true; // Enable TCP transport<br>
udp-enabled = true; // Enable UDP Transport<br>
//ws-enabled = true; // Enable WebSocket Transport<br>
//tls-enabled = true; // Enable TLS Transport<br>
sip-port = 5060; // Port for TCP and UDP<br>
//tls-port = 5061; // Port for TLS<br>
//ws-port = 5062; // Port for WebSocket<br>
//subnets = "<a moz-do-not-send="true"
href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a>"; //
(Optional) Comma delimited subnets reachable by this transport<br>
} );<br>
<span style="color:rgb(0,0,255)"><b><br>
</b></span></div>
<div><span style="color:rgb(0,0,255)"><b>rest all in this file
is same.</b></span><br>
<br>
-----------------------------------------------------------------------------------------------------------<br>
</div>
<div><span style="color:rgb(0,0,255)"><br>
<b>i created a new file abc.js in /etc/karoo.con.d/routes/
directory and added this funtion to it.</b></span><br>
</div>
<div><br>
function is_mysipdomain_routable(profile)<br>
{<br>
var ip = profile.sipMessage.getSourceAddress();<br>
var domain = profile.sipMessage.getFromHost();<br>
if (ip != "209.121.111.211" && domain ==
"209.121.111.211")<br>
{<br>
profile.setTargetAddress(<br>
"udp",<br>
"209.121.111.211",<br>
"5060");<br>
return true;<br>
}else<br>
{<br>
return false;<br>
}<br>
}<br>
<span style="color:rgb(7,55,99)"><br>
</span></div>
<span style="color:rgb(0,0,255)"><b>below is what i added to
route.js file after commenting the all-ready existing
isRoutable function.</b><br>
</span><br>
Route.prototype.isRoutable = function()<br>
{<br>
if (is_mysipdomain_routable(this))<br>
return true;<br>
else<br>
return false;<br>
}<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
karoo-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:karoo-users@ossapp.com">karoo-users@ossapp.com</a>
<a class="moz-txt-link-freetext" href="http://www.ossapp.com/mailman/listinfo/karoo-users_ossapp.com">http://www.ossapp.com/mailman/listinfo/karoo-users_ossapp.com</a></pre>
</blockquote>
<br>
</body>
</html>