<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>yes, you should.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 14.08.2015 18:06, Nabeel wrote:<br>
    </div>
    <blockquote
cite="mid:CA+vx6KKGEH+2X8hHJ7U=RTx4YCY=41oXXfz13ct_AXeeJKC9Gg@mail.gmail.com"
      type="cite">
      <p dir="ltr">Should I make the same change to rtpproxy_offer?</p>
      <p dir="ltr">    if (is_method("INVITE")) {           <br>
                       if (isflagset(NAT)) {<br>
                              rtpproxy_offer("ro");<br>
                       }                                              <br>
      </p>
      <div class="gmail_quote">On 14 Aug 2015 13:09, "Bogdan-Andrei
        Iancu" &lt;<a moz-do-not-send="true"
          href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF"> <tt>I see....you have
              a </tt><tt>onreply_route[handle_nat] in your script,
              doing:</tt><tt><br>
            </tt><tt><br>
            </tt><tt>    if ( isflagset(NAT) )</tt><tt><br>
            </tt><tt>        rtpproxy_answer("ro");</tt><tt><br>
            </tt><tt><br>
            </tt><tt>Change that to :</tt><tt><br>
            </tt><tt><br>
            </tt><tt>    if ( isflagset(NAT) &amp;&amp;
              has_body("application/sdp") )</tt><tt><br>
            </tt><tt>        rtpproxy_answer("ro");</tt><tt><br>
            </tt><tt><br>
            </tt><tt>Regards,</tt><br>
            <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
            <div>On 14.08.2015 15:04, Nabeel wrote:<br>
            </div>
            <blockquote type="cite">
              <p dir="ltr">The 'ringing' stage of a call is when the
                error occurs.  Why should 180 Ringing lead to an error?
              </p>
              <div class="gmail_quote">On 14 Aug 2015 12:47,
                "Bogdan-Andrei Iancu" &lt;<a moz-do-not-send="true"
                  href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;

                wrote:<br type="attribution">
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi,<br>
                      <br>
                      ACK request or 180 ringing reply are part of a
                      call and they do not have a body.<br>
                      <br>
                      It depends on your scripting to see when the
                      rtpproxy are called (for what sip message).<br>
                      <br>
                      You may use the script_trace() function :<br>
                          <a moz-do-not-send="true"
href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42"
                        target="_blank">http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42</a><br>
                      to see which sip messages to generate the err log.<br>
                      <br>
                      Regards,<br>
                    </tt>
                    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                    <div>On 14.08.2015 14:15, Nabeel wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <p dir="ltr">Hi Bogdan,</p>
                      <p dir="ltr">Thanks, but I had no intentions of
                        using a SIP message without a body; all I'm
                        trying to do is make a normal call with
                        OpenSIPS. </p>
                      <p dir="ltr">Please explain why I'm getting a SIP
                        message without a body and how do I fix it? </p>
                      <div class="gmail_quote">On 14 Aug 2015 11:12,
                        "Bogdan-Andrei Iancu" &lt;<a
                          moz-do-not-send="true"
                          href="mailto:bogdan@opensips.org"
                          target="_blank">bogdan@opensips.org</a>&gt;
                        wrote:<br type="attribution">
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">
                          <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi
                              Nabeel,<br>
                              <br>
                              You may get this error when calling the
                              rtpproxy functions for a SIP message
                              without a body.<br>
                              <br>
                              Regards,<br>
                            </tt>
                            <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                            <div>On 14.08.2015 09:58, Nabeel wrote:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="ltr">Hi,
                                <div><br>
                                </div>
                                <div>I am getting this error when making
                                  some calls:</div>
                                <div><br>
                                </div>
                                <div>
                                  <div>ERROR:rtpproxy:force_rtp_proxy:
                                    Unable to parse body</div>
                                </div>
                                <div><br>
                                </div>
                                <div>I think this may be related to
                                  'rtpproxy_offer' and 'rtpproxy_answer'
                                  in the config file but I don't know
                                  how to fix it.  I am using the default
                                  OpenSIPS config.</div>
                                <div><br>
                                </div>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                              <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>