Hi All,<br><br>i am stuck in NAT issue on ec2 cloud computing from last 2-3 days , may be some of you are doing setup and integration on cloud.<br>below is my setup details which may help you to suggest me solution.<br><br>
Asterisk version : 1.6.2.6<br><br>1) Kamailio server having public_ip as well local ip .i am using mediaproxy [also tried rtpproxy] .<br><br>2) Asterisk server having public_ip as well local ip.<br><br>setup:<br><br><b>UAC -----&gt; KAMAILIO -----&gt; ASTERISK</b><br>
<br>UAC  registered to kamailio registration is successful. once it dial PSTN number  i forwarded a call to asterisk server and then is created problem because i am not getting any media from asterisk server.<br><br>so basically UAC sends a registered request to kamailio public ip and kamailio and asterisk works on private ip , it sends data to asterisk private ip, i am getting sip signaling and it looks okay. i can provide it too if we required.<br>
<br>here is my asterisk sip.conf kamailio context looks like<br><br>[vmserver]<br>type=friend<br>context=default<br>host=***local_ip_of_kamailio***<br>; for below three i have tried all available options <br><b>directmedia=nonat<br>
directrtpsetup=yes<br>nat=yes<br></b> t1min=500<br>disallow=all<br>allow=g729<br>allow=ulaw<br>allow=alaw<br>allow=gsm<br>qualify=yes<br><br><br>let me know how to solve this nating issue also i opened all required ports for sip. and rtp <br>
<br><br>regards<br>Dhaval<br>