On 1 July 2013 12:22, Sunil Chandrasekharan <sunil.kainat@gmail.com> wrote:
Hi All,

I could succesfully install Kamailio on Amazon EC2.
I used a sample android application to register with user on Kamailio.
Registration was succesful with UDP and TCP 

But using application to send IM between two users, 

a. I was able to send IM when on UDP
b. When using TCP, i get Request Time out error.


Hi

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. 

To get around this you should use the "advertise" parameter to the listen directives, like:

listen=tcp:<your private IP address>:5060 advertise  <hostname or public IP address>:5060
listen=udp:<your private IP address>:5060 advertise  <hostname or public IP address>:5060

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

listen=tcp:10.212.129.99:5060 advertise 107.22.60.14:5060
listen=udp:10.212.129.99:5060 advertise 107.22.60.14:5060

Hope this helps.

-Barry Flanagan



I dont know why i get 408 Request TIme out.

Kindly support to solve the issue with TCP for sending IM. 
My application intends to register and send IM with TCP on Amazon EC2.

Kindly support to achieve IM with TCP



On Wed, Jun 26, 2013 at 6:22 PM, Sunil Chandrasekharan <sunil.kainat@gmail.com> wrote:

Hi All,

I have just started and installed Kamailio on EC2 Ubuntu instance.
I am going on with the steps provided in this link
http://www.kamailio.org/wiki/install/4.0.x/git

i have gone ahead and installed Kamailiio. I have just reached to Section no. 8 on the link.
 But i am not sure if there is anything extra i need to take care.

Kindly let me know if any extra parameters / details need to be checked for Kamailio on EC2.


On Wed, Jun 26, 2013 at 6:00 PM, aft <aftnix@gmail.com> wrote:
What have you tried?

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



--
-Cheers
-Arif

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users