<div dir="ltr">OK. I think I found the issue.<div><br></div><div>The key is to add</div><div><br></div><div>rtp_symmetric=yes</div><div><br></div><div>Here's what my final configuration looks like:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><p class=""><font face="monospace, monospace">[transport-udp]</font></p></div><div><p class=""><font face="monospace, monospace">type=transport</font></p></div><div><p class=""><font face="monospace, monospace">protocol=udp</font></p></div><div><p class=""><font face="monospace, monospace">bind=0.0.0.0</font></p></div><div><p class=""><font face="monospace, monospace">;; for within EC2</font></p></div><div><p class=""><font face="monospace, monospace">local_net=<a href="http://172.31.32.0/20">172.31.32.0/20</a></font></p></div><div><p class=""><font face="monospace, monospace">;; For softphones within EC2</font></p></div><div><p class=""><font face="monospace, monospace">local_net=<a href="http://192.168.1.0/24">192.168.1.0/24</a></font></p></div><div><p class=""><font face="monospace, monospace">external_media_address=<publicIPOfEC2Instance></font></p></div><div><p class=""><font face="monospace, monospace">external_signaling_address=<publicIPOfEC2Instance></font></p></div><div><p class=""><font face="monospace, monospace">;Templates for the necessary config sections</font></p></div><div><p class=""><font face="monospace, monospace"><br></font></p></div><div><p class=""><font face="monospace, monospace">[endpoint_internal](!)</font></p></div><div><p class=""><font face="monospace, monospace">type=endpoint</font></p></div><div><p class=""><font face="monospace, monospace">context=from-internal</font></p></div><div><p class=""><font face="monospace, monospace">disallow=all</font></p></div><div><p class=""><font face="monospace, monospace">allow=!all,ulaw</font></p></div><div><p class=""><font face="monospace, monospace">direct_media=no</font></p></div><div><p class=""><font face="monospace, monospace">rtp_symmetric=yes</font></p></div></blockquote><div>
<p class=""><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 5:52 PM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank">sonny.rajagopalan@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">Hello All,<div><br></div><div>I have an Asterisk server v13.1.0 running on EC2 and I am able to connect and register SIP devices and "see" them on the asterisk CLI. I am also able to place calls, but I am not able to hear any audio on either end after the call is picked up.</div><div><br></div><div>I was wondering if you can tell me what a minimal configuration for Asterisk on EC2 looks like. My current<font face="monospace, monospace" color="#ff9900"> pjsip.conf </font>configuration looks like this:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace, monospace" color="#ff9900">type=transport</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">protocol=udp</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">bind=0.0.0.0</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">local_net=<a href="http://172.31.32.0/20" target="_blank">172.31.32.0/20</a></font></div></div><div><div><font face="monospace, monospace" color="#ff9900">; In the following two lines, replace "<publicIP>" with the output of</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">; curl -s <a href="http://169.254.169.254/latest/meta-data/public-ipv4" target="_blank">http://169.254.169.254/latest/meta-data/public-ipv4</a></font></div></div><div><div><font face="monospace, monospace" color="#ff9900">external_media_address=<publicIP> </font></div></div><div><div><font face="monospace, monospace" color="#ff9900">external_signaling_address=<publicIP> </font></div></div><div><font face="monospace, monospace" color="#ff9900"><br></font></div><div><div><font face="monospace, monospace" color="#ff9900">[endpoint_internal](!)</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">type=endpoint</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">context=from-internal</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">disallow=all</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">allow=ulaw</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">direct_media=no</font></div></div><div><div><font face="monospace, monospace" color="#ff9900"><br></font></div></div><div><div><font face="monospace, monospace" color="#ff9900">[auth_userpass](!)</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">type=auth</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">auth_type=userpass</font></div></div><div><div><font face="monospace, monospace" color="#ff9900"><br></font></div></div><div><div><font face="monospace, monospace" color="#ff9900">[aor_dynamic](!)</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">type=aor</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">max_contacts=1</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">remove_existing=yes</font></div></div><div><div><font face="monospace, monospace" color="#ff9900">;Definitions for our phones, using the templates above</font></div></div><div><font face="monospace, monospace" color="#ff9900"><br></font></div><div><font face="monospace, monospace" color="#ff9900">;; usernames and passwords etc. below</font></div><div><font face="monospace, monospace" color="#ff9900"><br></font></div><div><font face="monospace, monospace" color="#ff9900"><br></font></div></blockquote><div>My security group configuration allows TCP, UDP posrt 5060 inbound, outbound from/to <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a> and TCP, UDP ports 10000-20000 from/to <a href="http://0.0.0.0/0" target="_blank">0.0.0.0/0</a>.</div><div><br></div><div>Should I turn on STUN for my zoiper softphones? Any specific flavor?<br></div><div><br></div><div>What am I doing wrong? Any help appreciated.</div><div><br></div></div>
</blockquote></div><br></div>