<div dir="ltr">Hi All<br><div class="gmail_extra"><br></div><div class="gmail_extra">Today i could find some information from the logs.<br></div><div class="gmail_extra">When i tested the command :<br><br></div><div class="gmail_extra">
sudo kamcmd core.tcp_list <br><br></div><div class="gmail_extra">I get 2 connection ( with 2 users regitred with TCP)<br><br></div><div class="gmail_extra">But when i try to send message from User 2 to User 1, i see that 1 more connection is added.<br>
</div><div class="gmail_extra">But here the port is confusing. becuase the other 2 tcp connection shows the rport of the users. But with the 3rd connection the port is shown as 5060..<br></div><div class="gmail_extra"><br>
</div><div class="gmail_extra">I feel Kamailio is adding a new TCP connection instead of using the existing connection between the client and Kamailio with the rport number.<br><br></div><div class="gmail_extra">I read that we can use (force_rport()) , but i could not understand how to use it . Alo when i gave <br>
<br></div><div class="gmail_extra">force_rport=yes inside the global parameter of Kamaili.cfg file, i still face the same issue. <br><br>This issue exists even when User 2 try to call/IM to User 1.<br><br></div><div class="gmail_extra">
my laptop is User 1. But i can send IM/Call User 2 succeessfully. I dont understand how my machine can send IM/call successfully, and why no other user can do the same?<br><br></div><div class="gmail_extra">Kindly support me <br>
</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 20, 2013 at 5:27 PM, Sunil Chandrasekharan <span dir="ltr"><<a href="mailto:sunil.kainat@gmail.com" target="_blank">sunil.kainat@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi All,<br><br></div>I tested again today by disabling the presence module.<br><br></div>
Still i could not make TCP based IM working with Kamailio.<br><br></div><div>I checked the tcp-connection-lifetime =3605.<br>
</div><div>Still i get 480 Temperory un available.<br><br></div><div>Step 1 : login/register on two lin phones ( on differnt PC)<br></div><div>Step 2: from PC 1 (user A) send message to user B <br></div><div>Step 3: user B receive the mesage.<br>

</div><div>Step 4. Send message from User B to User A<br><br></div><div>Result : 480 Temperory unavailable.<br><br></div><div>1. I feel user A connection is getting closed . Hence not able to reach user A.<br><br></div><div>

2. I also see User A and User B message contruct has 2 Via headers.<br><br></div><div>There is no change or anything abnormal happening.<br><br></div><div>Kindly help me forward to get tcp based IM working between two clients.<br>

<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 2:27 PM, Sunil Chandrasekharan <span dir="ltr"><<a href="mailto:sunil.kainat@gmail.com" target="_blank">sunil.kainat@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi ,<br><br></div>I used open internet,  i really doubt if there is any NAT issue here.<br>

<br></div>But my config file(kamailio.cfg) shows : tcp-connection-lifetime=3605<br></div>
But i dont know what is the registration expire time . How can i see the registration expire time?<br></div>also my lin phone sends keep alive right?<br><br></div>can you please help me how can i see connection close parameter during forward/reply? i dont know where to set them?<br>


<br></div>Please suggest me the correct link to find tcp paremeter and cook book.<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 2:06 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<div><div><br>
<br>
On 6/17/13 7:09 AM, Sunil Chandrasekharan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Hi All,<br>
<br>
I have set up Kamailio 3.3 on Ubuntu machine.I created two user test 1 and test 2.<br>
I could use Presence and also i was able to register to Kamailio server and exchange presence status with each other.<br>
<br>
Details- I used TCP protocol .<br>
<br>
testing methods - Linphone, a sample application.<br>
<br>
I am able to register succesfully with (TCP) on to kamailio server using Lin phone and sample application.<br>
I am able to update presence status of the users.<br>
<br>
Issue :<br>
<br>
When i try to send messages between two users ( using TCP )<br>
<br>
1. from Sample application, when i try to send message, i get 420 temporarily Unavailable error from server.<br>
2. from Lin phone 3.5.2, i was able to send messages ( sue TCP) but when the other user try to reply back , i get same error<br>
<br>
480 Temporarily Unavailable. error from server.<br>
<br>
I want a support to understand why i get error while sending messages with TCP via Kamailio server.<br>
<br>
I am able to succeesfully send and receive messages when i use UDP from my sample application and Lin phone.<br>
</blockquote></div></div>
if the phones are behind nat, be sure the tcp connection lifetime is higher than the registration expire and that you don't set connection close after forward/reply. Look at core cookbook for the appropriate tcp parameter and config functions.<br>



<br>
Cheers,<br>
Daniel<span><font color="#888888"><br>
<br>
-- <br>
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013<br>
  * <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a> *<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>