<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi Dinusha,<br>
      <br>
      The dialog module cannot be used in the same time with the b2b
      module in the same instance. Mainly because the dialog module
      expects a "proxied call" while the b2b acts as end-point (user
      agent server or client)<br>
      <br>
      Best 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>
    <br>
    On 07/13/2012 10:00 AM, Dinusha Kannangara wrote:
    <blockquote
cite="mid:CADdEbb5fyyergt6Uoe6zo3JALaKrd-bRnduS9ak8dFO2pfQPcg@mail.gmail.com"
      type="cite">Hi, thanks for the info :) I did what you have told me
      and now and rtp seem to be working (I need to do more tests and
      look at the sip traces - and will let you know if I get into
      trouble again :P). <br>
      <br>
      There's one problem though, I'm seeing that dialogs are not
      getting deleted when the call ends (again this works fine when not
      using b2bua - I'm using dialog module - rr_param did to make this
      happen)<br>
      <br>
      Thanks again, for the responses and they really helped me a lot :)<br>
      <br>
      <div class="gmail_quote">On Thu, Jul 12, 2012 at 8:11 PM,
        Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:bogdan@opensips.org"
            target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000"> <tt>Hi Dinusha,<br>
              <br>
              What you have in route[1] has to go into local route. And
              from onreply_route, to the b2b_reply_route :).<br>
              <br>
              Regards,</tt>
            <div class="im"><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>
              <br>
            </div>
            <div>
              <div class="h5"> On 07/12/2012 03:13 PM, Dinusha
                Kannangara wrote:
                <blockquote type="cite">Thank you for the quick reply :)
                  and the REFER scenario is working fine without rtp.<br>
                  <br>
                  I'm sorry for being such a noob on this as I'm new to
                  opensips and even sip message handling :( I have tried
                  out adding code to local route and b2b_reply_route
                  sections but rtp is not working - I think it has to do
                  with how I've wrote the config.<br>
                  <br>
                  before adding the b2bua I had my rtpproxy_engage()
                  called on my route[1] before I call t_relay() and had
                  the fix_nated_contact on my onreply _route.<br>
                  <br>
                  here's a summarized version on my config. Can you
                  please look at it and tell me which methods should be
                  moved on to local route and b2b_reply_route.<br>
                  <br>
                  route<br>
                  {<br>
                  &nbsp; .....<br>
                  &nbsp; if(is_method("INVITE"))<br>
                  &nbsp; {<br>
                  &nbsp;&nbsp;&nbsp; do load balancing<br>
                  &nbsp;&nbsp;&nbsp; route(1);<br>
                  &nbsp; }<br>
                  }<br>
                  <br>
                  route[1]<br>
                  {<br>
                  &nbsp;&nbsp;&nbsp; .....<br>
                  &nbsp;&nbsp;&nbsp; .....<br>
                  &nbsp;&nbsp;&nbsp; if( is_method("INVITE"))<br>
                  &nbsp;&nbsp;&nbsp; {<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; engage_rtpproxy();<br>
                  &nbsp;&nbsp;&nbsp; }<br>
                  &nbsp;&nbsp;&nbsp; else if( is_method("BYE" || "CANCEL"))<br>
                  &nbsp;&nbsp;&nbsp; {<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unforce_rtpproxy();<br>
                  &nbsp;&nbsp;&nbsp; }<br>
                  }<br>
                  <br>
                  onreply_route[1]<br>
                  {<br>
                  &nbsp;&nbsp;&nbsp; if (isbflagset(6))<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log("\n\n\n-------ON REPLY ROUTE FIX
                  NATED CONTACT-------\n\n\n");<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  search_append('Contact:.*sip:[^&gt;[:cntrl:]]*',
                  ';nat=yes');<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fix_nated_contact();<br>
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
                  <br>
                  }<br>
                  <br>
                  <br>
                  <div class="gmail_quote">On Wed, Jul 11, 2012 at 8:19
                    PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:bogdan@opensips.org"
                        target="_blank">bogdan@opensips.org</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      <div bgcolor="#ffffff" text="#000000"> <tt>Move
                          to the "local" and "b2b_reply" routes only the
                          part regarding insertion of RTPproxy.<br>
                          <br>
                          Regards,<br>
                        </tt>
                        <div>
                          <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>
                          <br>
                        </div>
                        <div>
                          <div> On 07/11/2012 05:21 PM, Dinusha
                            Kannangara wrote:
                            <blockquote type="cite">Thanks for the
                              reply, I will try that for sure :)<br>
                              <br>
                              Just to clarify, so whatever I had on
                              request route and reply route (including
                              rtp proxy and nathelper methods) should be
                              written on b2b_request and b2b_reply,
                              right ?<br>
                              <br>
                              <div class="gmail_quote">On Tue, Jul 10,
                                2012 at 3:59 PM, Bogdan-Andrei Iancu <span
                                  dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:bogdan@opensips.org"
                                    target="_blank">bogdan@opensips.org</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote"
                                  style="margin: 0pt 0pt 0pt 0.8ex;
                                  border-left: 1px solid rgb(204, 204,
                                  204); padding-left: 1ex;">
                                  <div bgcolor="#ffffff" text="#000000">
                                    <tt>Hi Dinusha,<br>
                                      <br>
                                      How I see it is: do LB, after LB,
                                      trigger B2B with REFER-handling
                                      scenario, and on the outbound part
                                      of b2b (using local route for
                                      INVITE and b2b_reply for incoming
                                      replies) insert rtpproxy. <br>
                                      <br>
                                      Of course, I assume that LB and
                                      B2B are on the same instance of
                                      OpenSIPS.<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>
                                      <div> <br>
                                        On 07/06/2012 06:44 PM, Dinusha
                                        Kannangara wrote: </div>
                                    </div>
                                    <blockquote type="cite">
                                      <div>
                                        <div>Hi all,<br>
                                          <br>
                                          I currently have my opensips
                                          configured with a rtpproxy and
                                          uses the nathelper module and
                                          everything seem to be working
                                          fine.<br>
                                          <br>
                                          Now, I have a new requirement
                                          where my opensips should have
                                          to handle REFER messages
                                          generated from a media server
                                          and I'm not sure what I should
                                          do.<br>
                                          <br>
                                          I've seen that b2bua module is
                                          capable of this and I also had
                                          a look at the example done on
                                          <a moz-do-not-send="true"
                                            href="http://opensips.org"
                                            target="_blank">opensips.org</a>.<br>
                                          <br>
                                          Here's my scenario,<br>
                                          <br>
                                          User1(softphone) calls
                                          opensips server and opensips
                                          do load balancing and redirect
                                          the call to a Media Server.
                                          Then, Media Server will send a
                                          REFER message to opensips
                                          specifying a refer-to
                                          User2(another softphone) and
                                          the media server should remove
                                          itself from the call and let
                                          User1 and User2 connect to
                                          each other through opensips.<br>
                                          <br>
                                          Here are my questions :<br>
                                          <br>
                                          1) The rtpproxy module
                                          re-writes SDP and how does
                                          this affect if I use b2bua
                                          module to handle REFER
                                          messages ?<br>
                                          2) Will the work done by
                                          nathelper and rtpproxy be
                                          undone if I call
                                          b2b_init_request on the
                                          initial INVITE ?<br>
                                          3) Do I have to have a
                                          separate IP for b2bua server
                                          or is it ok to run it on the
                                          same ip which the opensips is
                                          running ?<br>
                                          4) I have seen some people
                                          block the INVITE's coming from
                                          b2bua server IP at initial
                                          INVITE.. do I have to do this
                                          too ?<br>
                                          <br>
                                          Thank You, :)<br>
                                          <br>
                                          Regards, <br>
                                          Dinusha. <br>
                                        </div>
                                      </div>
                                      <pre><fieldset></fieldset>
_______________________________________________
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>
                                  </div>
                                </blockquote>
                              </div>
                              <br>
                            </blockquote>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>