<p dir="ltr">Should I make the same change to rtpproxy_offer?</p>
<p dir="ltr">    if (is_method(&quot;INVITE&quot;)) {           <br>
               if (isflagset(NAT)) {<br>
                      rtpproxy_offer(&quot;ro&quot;);<br>
               }                                              <br>
</p>
<div class="gmail_quote">On 14 Aug 2015 13:09, &quot;Bogdan-Andrei Iancu&quot; &lt;<a 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(&quot;ro&quot;);</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(&quot;application/sdp&quot;) )</tt><tt><br>
    </tt><tt>        rtpproxy_answer(&quot;ro&quot;);</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Regards,</tt><br>
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a 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 &#39;ringing&#39; 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, &quot;Bogdan-Andrei
        Iancu&quot; &lt;<a 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 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 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&#39;m trying to do is make
                a normal call with OpenSIPS. </p>
              <p dir="ltr">Please explain why I&#39;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,
                &quot;Bogdan-Andrei Iancu&quot; &lt;<a 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 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
                          &#39;rtpproxy_offer&#39; and &#39;rtpproxy_answer&#39; in the
                          config file but I don&#39;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 href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>