<div dir="ltr">Yes . This should happen . But I don&#39;t know the exact problem . What I explain is the way we are using rtpproxy .<div>This is clearly mention in the document also .. You can go through <a href="http://opensips.org">opensips.org</a> </div><div><br></div><div>This is what we are doing .  Rest I am not an expertise in opensips . </div><div><pre class="" style="color:rgb(0,0,0);border:1px solid rgb(153,204,204);padding-left:15pt;background-color:rgb(254,254,238)">route {
...
    if (is_method(&quot;INVITE&quot;)) {
        if (has_body(&quot;application/sdp&quot;)) {
            if (rtpproxy_offer())
                t_on_reply(&quot;1&quot;);
        } else {
            t_on_reply(&quot;2&quot;);
        }
    }
    if (is_method(&quot;ACK&quot;) &amp;&amp; has_body(&quot;application/sdp&quot;))
        rtpproxy_answer();
...
}

onreply_route[1]
{
...
    if (has_body(&quot;application/sdp&quot;))
        rtpproxy_answer();
...
}

onreply_route[2]
{
...
    if (has_body(&quot;application/sdp&quot;))
        rtpproxy_offer();
...
}</pre></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b><i>Thanks &amp; Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="gmail_quote">On Tue, May 31, 2016 at 6:32 PM, Max Mühlbronner <span dir="ltr">&lt;<a href="mailto:mm@42com.com" target="_blank">mm@42com.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi,<br>
      <br>
      <br>
      @Miha: Are you sure that it does not automatically set the
      rtpproxies for 200OK &amp; ACK? <br>
      <br>
      @Sasmita: According to the documentation it is not necessary to
      invoke engage_rtp_proxy() for replies as this is handled by the
      dialog module.<br>
      <br>
      <br>
      &quot;Function must only be called for the initial INVITE and
      internally takes care of rewriting the body of 200 OKs and ACKs. &quot;<br>
      <br>
      <br>
      <br>
      Best Regards<br>
      <br>
      Max M.<span class=""><br>
      <br>
      <br>
      On 31.05.2016 14:42, Miha wrote:<br>
    </span></div>
    <blockquote type="cite"><span class="">@Sasmita, totally clear :)
      <br>
      <br>
      I asked wrong question :)
      <br>
      <br>
      <br>
      What is the difference between using engage_rtp_proxy() or using
      rtpproxy_offer(), rtpproxy_answer()?
      <br>
      <br>
      <br>
      tnx
      <br>
      <br>
      miha
      <br>
      <br>
      <br>
      On 31/05/2016 14:39, Sasmita Panda wrote:
      <br>
      </span><blockquote type="cite"><span class="">        If you are using in INVITE , then
        it should be offer . Because firstly we are offering media to
        someone . If its 200 Ok then it will be answer because the 2nd
        party is answering the call .
        <br>
        <br>
              If there is no sdp in INVITE but in ACK , then it will get
        reversed . In 200 OK you should offer and in ACK you have to
        answer .
        <br>
        This can be done in loop .
        <br>
        <br>
             I hope I make you understand .
        <br>
        <br></span>
        */Thanks &amp; Regards/*
        <br>
        /Sasmita Panda/
        <br>
        /Network Testing and Software Engineer/
        <br>
        /3CLogic , ph:07827611765/
        <br><span class="">
        <br>
        On Tue, May 31, 2016 at 6:02 PM, Miha &lt;<a href="mailto:miha@softnet.si" target="_blank">miha@softnet.si</a>
        <a href="mailto:miha@softnet.si" target="_blank">&lt;mailto:miha@softnet.si&gt;</a>&gt; wrote:
        <br>
        <br>
            ok tnx. I understand documentation on wrong way.
        <br>
        <br>
            But then, what is the difference with  using rtpproxy offer,
        answer ?
        <br>
        <br>
        <br>
            br
        <br>
        <br>
            mia
        <br>
        <br>
        <br>
            On 31/05/2016 14:17, Sasmita Panda wrote:
        <br>
        </span><blockquote type="cite"><span class="">    If there is sdp in ACK and u wanted
          to engage rtp proxy , the
          <br>
               you have to write it inside ACK also ... By writing for
          INVITE
          <br>
              cant help you to update ACK also . For 200 OK , you must
          write it
          <br>
              in reply route .
          <br>
          <br></span>
              */Thanks &amp; Regards/*
          <br>
              /Sasmita Panda/
          <br>
              /Network Testing and Software Engineer/
          <br>
              /3CLogic , ph:07827611765/
          <br><span class="">
          <br>
              On Tue, May 31, 2016 at 5:35 PM, Johan De Clercq
          <br></span><span class="">
              &lt;<a href="mailto:johan@democon.be" target="_blank">johan@democon.be</a> <a href="mailto:johan@democon.be" target="_blank">&lt;mailto:johan@democon.be&gt;</a>&gt;
          wrote:
          <br>
          <br>
                  put it also in reply route.
          <br>
          <br>
                  2016-05-31 13:42 GMT+02:00 Miha &lt;<a href="mailto:miha@softnet.si" target="_blank">miha@softnet.si</a>
          <br></span>
                  <a href="mailto:miha@softnet.si" target="_blank">&lt;mailto:miha@softnet.si&gt;</a>&gt;:
          <br><span class="">
          <br>
                      HI
          <br>
          <br>
                      if I use engage_rtp_proxy(), I can use it only on
          initial
          <br>
                      INVITE and opensips should automatically rewritten
          also
          <br>
                      200 OK and ACK with SDP, right?
          <br>
                      But when I am using this function, I can see from
          trace
          <br>
                      that only SDP for initial invite is rewritten, 200
          ok
          <br>
                      with sdp is not changed. Must I do something else?
          <br>
          <br>
                      Rtpproxy is not running in bridge mode.
          <br>
          <br>
          <br>
                      tnx
          <br>
                      miha
          <br>
          <br>
          <br>
          <br>
                      _______________________________________________
          <br>
                      Users mailing list
          <br></span>
                      <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
          <a href="mailto:Users@lists.opensips.org" target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
          <br><span class="">
                     
          <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
          <br>
          <br>
          <br>
          <br>
                  _______________________________________________
          <br>
                  Users mailing list
          <br></span>
                  <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
          <a href="mailto:Users@lists.opensips.org" target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
          <br><span class="">
                 
          <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
          <br>
          <br>
          <br>
          <br>
          <br>
              _______________________________________________
          <br>
              Users mailing list
          <br></span>
              <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
          <a href="mailto:Users@lists.opensips.org" target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
          <br>
              <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
          <br>
        </blockquote>
        <br>
        <br>
            _______________________________________________
        <br>
            Users mailing list
        <br>
            <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
        <a href="mailto:Users@lists.opensips.org" target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
        <br><span class="">
            <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
        <br>
        <br>
        <br>
        <br>
        <br>
        _______________________________________________
        <br>
        Users mailing list
        <br>
        <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
        <br>
        <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
        <br>
      </span></blockquote><span class="">
      <br>
      <br>
      <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>
    </span></blockquote>
    <br>
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>