<div dir="ltr">On 1 July 2013 12:22, Sunil Chandrasekharan <span dir="ltr"><<a href="mailto:sunil.kainat@gmail.com" target="_blank">sunil.kainat@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div>I could succesfully install Kamailio on Amazon EC2.</div>

<div>I used a sample android application to register with user on Kamailio.</div><div>Registration was succesful with UDP and TCP </div>
<div><br></div><div>But using application to send IM between two users, </div><div><br></div><div>a. I was able to send IM when on UDP</div><div>b. When using TCP, i get Request Time out error.</div>
<div><br></div></div></blockquote><div><br></div><div style>Hi</div><div style><br></div><div style>This might be due to the fact that EC2 uses SNAT  to map the private IP address of the actual instance to the public IP address clients use to connect. </div>

<div style><br></div><div style>To get around this you should use the "advertise" parameter to the listen directives, like:</div><div style><br></div><div style>listen=tcp:<your private IP address>:5060 advertise  <hostname or public IP address>:5060<br>

</div><div style>listen=udp:<your private IP address>:5060 advertise  <hostname or public IP address>:5060<br></div><div style><br></div><div style>So, if your ip address (as shown by ifconfig) is 10.212.129.99 and your external floating address is 107.22.60.14 you would do</div>

<div style><br></div><div style>listen=tcp:<a href="http://10.212.129.99:5060">10.212.129.99:5060</a> advertise <a href="http://107.22.60.14:5060">107.22.60.14:5060</a><br></div><div style>listen=udp:<a href="http://10.212.129.99:5060">10.212.129.99:5060</a> advertise <a href="http://107.22.60.14:5060">107.22.60.14:5060</a><br>

</div><div style><br></div><div style>Hope this helps.</div><div style><br></div><div style>-Barry Flanagan</div><div style><br></div><div style><br></div><div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div></div><div>I dont know why i get 408 Request TIme out.</div><div><br></div><div>Kindly support to solve the issue with TCP for sending IM. </div><div>My application intends to register and send IM with TCP on Amazon EC2.</div>


<div><br></div><div>Kindly support to achieve IM with TCP</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 6:22 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra">Hi All,<br><br>

</div><div class="gmail_extra">I have just started and installed Kamailio on EC2 Ubuntu instance.<br>
</div><div class="gmail_extra">I am going on with the steps provided in this link<br>
<a href="http://www.kamailio.org/wiki/install/4.0.x/git" target="_blank">http://www.kamailio.org/wiki/install/4.0.x/git</a><br><br></div><div class="gmail_extra">i have gone ahead and installed Kamailiio. I have just reached to Section no. 8 on the link.<br>



 But i am not sure if there is anything extra i need to take care.<br><br></div><div class="gmail_extra">Kindly let me know if any extra parameters / details need to be checked for Kamailio on EC2.<br><br></div><div><div>


<div class="gmail_extra">
<br><div class="gmail_quote">On Wed, Jun 26, 2013 at 6:00 PM, aft <span dir="ltr"><<a href="mailto:aftnix@gmail.com" target="_blank">aftnix@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">



What have you tried?<br>
<div><div><br>
On Wed, Jun 26, 2013 at 2:55 PM, Sunil Chandrasekharan<br>
<<a href="mailto:sunil.kainat@gmail.com" target="_blank">sunil.kainat@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I am trying to install Kamailio on Amazon EC2. I read out in web about some<br>
> people already achieved configuring Kamailio on EC2.<br>
><br>
> Kindly support on the pre-requisties to be installed before i go with<br>
> Kamailio installation..<br>
><br>
> My requirements ;<br>
><br>
> Kamailio to be installed with Presence module.<br>
><br>
> In the config file , i see that we have to use define with NAT and install<br>
> RTP proxy. Is it required?<br>
> Is there any module to be added to get MSRP working, so that i can share a<br>
> file.<br>
><br>
> Kindly support to get Kamailio running with register,presence,IM and MSRP on<br>
> Amazon EC<br>
><br>
><br>
</div></div>> _______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
<span><font color="#888888"><br>
<br><span class=""><font color="#888888">
<br>
--<br>
-Cheers<br>
-Arif<br>
<br>
_______________________________________________<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/cgi-bin/mailman/listinfo/sr-users</a><br>
</font></span></font></span></blockquote></div><span class=""><font color="#888888"><br></font></span></div></div></div></div>
</blockquote></div><br></div></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">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/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div>