<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>HI</p>
    <p>engage_rtp_proxy() work ok. I was having some other issue with
      dialog. Tnx to @Bogdan I figure it out.</p>
    <p><br>
    </p>
    <p>br</p>
    <p>miha<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 31/05/2016 15:54, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALf-Q44AgEqT6k=-1Yb3Od5UiRQb5T8OH-XXc83RYyBYc_568w@mail.gmail.com"
      type="cite">
      <div dir="ltr">In my case its working great . So I haven't done
        such experiments to know what is happening with dialog module  .
        We are using this form years . 
        <div><br>
        </div>
        <div>     If you got to know then let me know also . That may
          help me in future .</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:56 PM, Miha <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:miha@softnet.si" target="_blank">miha@softnet.si</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">
              <p>@Sasmita I had writen cfg script like this and it
                works. I tried than with engage_rtp_proxy() but did not
                work automatically, that is why i asked :)</p>
              <p>So, can be some issue with dialog module? Not
                configured properly?</p>
              <p><br>
              </p>
              <p>tnx</p>
              <span class="HOEnZb"><font color="#888888">
                  <p>miha<br>
                  </p>
                </font></span>
              <div>
                <div class="h5">
                  <p><br>
                  </p>
                  <div>On 31/05/2016 15:21, Sasmita Panda wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Yes . This should happen . But I
                      don'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 moz-do-not-send="true"
                          href="http://opensips.org" target="_blank">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 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("INVITE")) {
        if (has_body("application/sdp")) {
            if (rtpproxy_offer())
                t_on_reply("1");
        } else {
            t_on_reply("2");
        }
    }
    if (is_method("ACK") &amp;&amp; has_body("application/sdp"))
        rtpproxy_answer();
...
}

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

onreply_route[2]
{
...
    if (has_body("application/sdp"))
        rtpproxy_offer();
...
}</pre>
                      </div>
                    </div>
                    <div class="gmail_extra"><br clear="all">
                      <div>
                        <div 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
                            moz-do-not-send="true"
                            href="mailto:mm@42com.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:mm@42com.com">mm@42com.com</a></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>
                              "Function must only be called for the
                              initial INVITE and internally takes care
                              of rewriting the body of 200 OKs and ACKs.
                              "<br>
                              <br>
                              <br>
                              <br>
                              Best Regards<br>
                              <br>
                              Max M.<span><br>
                                <br>
                                <br>
                                On 31.05.2016 14:42, Miha wrote:<br>
                              </span></div>
                            <blockquote type="cite"><span>@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>        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> <br>
                                  On Tue, May 31, 2016 at 6:02 PM, Miha
                                  &lt;<a moz-do-not-send="true"
                                    href="mailto:miha@softnet.si"
                                    target="_blank">miha@softnet.si</a>
                                  <a moz-do-not-send="true"
                                    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>    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> <br>
                                        On Tue, May 31, 2016 at 5:35 PM,
                                    Johan De Clercq <br>
                                  </span><span>     &lt;<a
                                      moz-do-not-send="true"
                                      href="mailto:johan@democon.be"
                                      target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:johan@democon.be">johan@democon.be</a></a>
                                    <a moz-do-not-send="true"
                                      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 moz-do-not-send="true"
                                      href="mailto:miha@softnet.si"
                                      target="_blank">miha@softnet.si</a>
                                    <br>
                                  </span>         <a
                                    moz-do-not-send="true"
                                    href="mailto:miha@softnet.si"
                                    target="_blank"><a class="moz-txt-link-rfc2396E" href="mailto:miha@softnet.si">&lt;mailto:miha@softnet.si&gt;</a></a>&gt;:
                                  <br>
                                  <span> <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
                                    moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></a>
                                  <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
                                  <br>
                                  <span>             <a
                                      moz-do-not-send="true"
                                      href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                      target="_blank"><a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></a>
                                    <br>
                                    <br>
                                    <br>
                                    <br>
                                           
                                    _______________________________________________
                                    <br>
                                            Users mailing list <br>
                                  </span>         <a
                                    moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a></a>
                                  <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
                                  <br>
                                  <span>         <a
                                      moz-do-not-send="true"
                                      href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                                      target="_blank"><a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></a>
                                    <br>
                                    <br>
                                    <br>
                                    <br>
                                    <br>
                                       
                                    _______________________________________________
                                    <br>
                                        Users mailing list <br>
                                  </span>     <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="mailto:Users@lists.opensips.org"
                                    target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
                                  <br>
                                      <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>
                                  <br>
                                </blockquote>
                                <br>
                                <br>
                                   
                                _______________________________________________
                                <br>
                                    Users mailing list <br>
                                    <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="mailto:Users@lists.opensips.org"
                                  target="_blank">&lt;mailto:Users@lists.opensips.org&gt;</a>
                                <br>
                                <span>     <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>
                                  <br>
                                  <br>
                                  <br>
                                  <br>
                                  <br>
_______________________________________________ <br>
                                  Users mailing list <br>
                                  <a moz-do-not-send="true"
                                    href="mailto:Users@lists.opensips.org"
                                    target="_blank">Users@lists.opensips.org</a>
                                  <br>
                                  <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>
                                  <br>
                                </span></blockquote>
                              <span> <br>
                                <br>
                                <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>
                              </span></blockquote>
                            <br>
                            <br>
                          </div>
                          <br>
_______________________________________________<br>
                          Users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:Users@lists.opensips.org"
                            target="_blank">Users@lists.opensips.org</a><br>
                          <a moz-do-not-send="true"
                            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>
                    <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>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>