<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    have you re-installed rtpproxy from sources after applying the patch
    I provided the link to?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 7/2/13 3:33 PM, arun Jayaprakash
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1372772021.74952.YahooMailNeo@web125305.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;"><span>Hi Daniel, I get this error:</span></div>
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 16px; color: rgb(0, 0, 0); background-color:
          transparent; font-style: normal;"><span><br>
          </span></div>
        <div style="background-color: transparent;">rtpproxy -F -l
          10.164.62.166 -A 54.x.x.x -s <a class="moz-txt-link-freetext" href="udp:127.0.0.1:7722">udp:127.0.0.1:7722</a></div>
        <div style="background-color: transparent;">rtpproxy: invalid
          option -- 'A'</div>
        <div style="background-color: transparent;">usage: rtpproxy
          [-2fvFiPa] [-l addr1[/addr2]] [-6 addr1[/addr2]] [-s path]</div>
        <div style="background-color: transparent;">        [-t tos] [-r
          rdir [-S sdir]] [-T ttl] [-L nfiles] [-m port_min]</div>
        <div style="background-color: transparent;"><span></span></div>
        <div style="background-color: transparent;">        [-M
          port_max] [-u uname[:gname]] [-n timeout_socket] [-d
          log_level[:log_facility]]</div>
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;"><br>
        </div>
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;">
          <div style="font-family: 'times new roman', 'new york', times,
            serif; font-size: 12pt;">
            <div dir="ltr">
              <hr size="1"> <font face="Arial" size="2"> <b><span
                    style="font-weight:bold;">From:</span></b>
                Daniel-Constantin Mierla <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
                <b><span style="font-weight: bold;">To:</span></b> arun
                Jayaprakash <a class="moz-txt-link-rfc2396E" href="mailto:jayaprakasharun@yahoo.com"><jayaprakasharun@yahoo.com></a>; Kamailio
                (SER) - Users Mailing List
                <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a> <br>
                <b><span style="font-weight: bold;">Sent:</span></b>
                Tuesday, July 2, 2013 2:39 AM<br>
                <b><span style="font-weight: bold;">Subject:</span></b>
                Re: [SR-Users] Issue with RTP proxy....<br>
              </font> </div>
            <div class="y_msg_container"><br>
              <div id="yiv7724724747">
                <div> Hello,<br>
                  <br>
                  <br>
                  <div class="yiv7724724747moz-cite-prefix">On 7/1/13
                    5:48 PM, arun Jayaprakash wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div style="color: rgb(0, 0, 0); background-color:
                      rgb(255, 255, 255); font-family: 'times new
                      roman', 'new york', times, serif; font-size:
                      12pt;">
                      <div>Hello, I have enabled RTP proxy on my machine
                        (ec2 instance) by running the following script:
                          <br>
                      </div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;"><span style="
                          font-weight:bold;">rtpproxy -F -l <span
                            style="font-style:italic;">mypublicip</span> 
                          -s <a moz-do-not-send="true" rel="nofollow"
                            class="yiv7724724747moz-txt-link-freetext"
                            href="">udp:localhost:7722</a></span></div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;">but I keep getting this
                        error. The phones ring but there is no audio:</div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;"><span style="
                          font-weight:bold;">3(4144) ERROR: rtpproxy
                          [rtpproxy.c:2647]: force_rtp_proxy():
                          incorrect port 0 in reply from rtp proxy</span></div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;"><br>
                      </div>
                      <div style="color: rgb(0, 0, 0); font-size: 16px;
                        font-family: 'times new roman', 'new york',
                        times, serif; background-color: transparent;
                        font-style: normal;">can someone let me know
                        what this error means? <br>
                      </div>
                    </div>
                  </blockquote>
                  you cannot get rtpproxy listening on the ec2 public
                  ip, which does not exist on the network interface.<br>
                  <br>
                  You will have to use a patched rtpproxy, that adds
                  advertising address support. I had such patch for my
                  own usage, now I polished it a bit and push it to
                  github:<br>
                  <br>
                  -
                  <a moz-do-not-send="true" rel="nofollow"
                    class="yiv7724724747moz-txt-link-freetext"
                    target="_blank"
href="https://github.com/miconda/rtpproxy/commit/41f6d9d9084a6fad52a6483a0593d4b25e0de8ca">https://github.com/miconda/rtpproxy/commit/41f6d9d9084a6fad52a6483a0593d4b25e0de8ca</a><br>
                  <br>
                  Give it a try, hope I haven't broken it with last
                  polishing, if does not work let me know.<br>
                  <br>
                  You should be able to apply it to latest rtpproxy
                  stable release. Once you compile and install, then run
                  rtpproxy with:<br>
                  <br>
                  <br>
                  rtpproxy -F -l localip -A publicip  -s <a
                    moz-do-not-send="true" rel="nofollow"
                    class="yiv7724724747moz-txt-link-freetext" href="">udp:localhost:7722</a><br>
                  <br>
                  Cheers,<br>
                  Daniel<br>
                  <br>
                  <pre class="yiv7724724747moz-signature">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" rel="nofollow" class="yiv7724724747moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a>
<a moz-do-not-send="true" rel="nofollow" class="yiv7724724747moz-txt-link-freetext" target="_blank" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" rel="nofollow" class="yiv7724724747moz-txt-link-freetext" target="_blank" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
</pre>
                </div>
              </div>
              <br>
              <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
</pre>
  </body>
</html>