<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Ideally, such processing should be done before pushing the call into
    B2B - first you are sure you have all the data and only then you
    jump into action :)<br>
    <br>
    What kind of data you want to push into the outbound call ?<br>
    <br>
    Regards,<br>
    Bogdan<br>
    <br>
    On 03/29/2012 06:51 PM, Nick wrote:
    <blockquote
cite="mid:CAJOe1EMYdk2ynmrOFb1f7QHUkHcQirAcDyMyAyZMWNmwebrsFg@mail.gmail.com"
      type="cite">
      <div>I have a real case, when I need to break b2b dialog.</div>
      <div><br>
      </div>
      For example. Before send b2b packet, I read values from cachedb
      and add tags in INVITE. If cachedb don't answer or value not
      found, I should break dialog and send reply back. But I cannot.
      Maybe it would be helpful, if I would call some command, which
      deletes (breaks) b2b dialog.
      <div>
        <br clear="all">
        --<br>
        Nick<br>
        <br>
        <div class="gmail_quote">2012/3/29 Bogdan-Andrei Iancu <span
            dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Hi Nick,<br>
            <br>
            Once again - do you have a real case of a such error or
            dialog broken you want to "fix" ? I'm just asking because
            the approach you are looking for does not seem natural for
            me :)<br>
            <br>
            Regards,<br>
            Bogdan
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                On 03/28/2012 09:03 AM, Nick wrote:<br>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  I need to drop some packets in local route due to
                  internal errors,<br>
                  when b2b dialog already broken.<br>
                  <br>
                  It would be great possibility also to generate replies
                  from local<br>
                  route in that cases.<br>
                  <br>
                  --<br>
                  Nick<br>
                  <br>
                  <br>
                  <br>
                  2012/3/23 Bogdan-Andrei Iancu&lt;<a
                    moz-do-not-send="true"
                    href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;:<br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    Hi Nick,<br>
                    <br>
                    The b2b_request|reply routes are used to see the
                    inbound traffic (related to<br>
                    the b2bua sessions) and they do not allow you to
                    drop the messages.<br>
                    <br>
                    Now, why do you want to route in locale route ?
                    routing (in regards to b2b)<br>
                    should be done in the scenario of the b2b - you
                    should not try to drop<br>
                    requests / replies generated by b2b as that will
                    break the internal logic of<br>
                    the b2b.<br>
                    <br>
                    Maybe you can detail a bit what you try to
                    accomplish and might advice on a<br>
                    better way to do it.<br>
                    <br>
                    Regards,<br>
                    Bogdan<br>
                    <br>
                    <br>
                    <br>
                    On 03/23/2012 11:09 AM, Nick wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      When I'd like drop something, that generated by
                      b2b_logic module. I<br>
                      don't know can I drop such packet in b2b_request
                      route or not (I think<br>
                      that answer is no), but I need to drop it in local
                      route, where placed<br>
                      all of my b2b routing logic because I need to
                      change $du, but $du<br>
                      changed in b2b_request route ignored and I change
                      it in local route.<br>
                      <br>
                      --<br>
                      Nick<br>
                      <br>
                      <br>
                      2012/3/23 Bogdan-Andrei Iancu&lt;<a
                        moz-do-not-send="true"
                        href="mailto:bogdan@opensips.org"
                        target="_blank">bogdan@opensips.org</a>&gt;:<br>
                      <blockquote class="gmail_quote" style="margin: 0pt
                        0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                        204, 204); padding-left: 1ex;">
                        Hi Nick,<br>
                        <br>
                        Theoretically speaking, something like that
                        would be possible to<br>
                        implement -<br>
                        but can you give me an example of why you should
                        do that ?<br>
                        <br>
                        Regards,<br>
                        Bogdan<br>
                        <br>
                        <br>
                        On 03/23/2012 07:19 AM, Nick wrote:<br>
                        <br>
                        drop() command doesn't work in local route. Is
                        it possible to add this?<br>
                        <br>
                        --<br>
                        Nick<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>
                        <br>
                        <br>
                        <br>
                        --<br>
                        Bogdan-Andrei Iancu<br>
                        OpenSIPS Founder and Developer<br>
                        <a moz-do-not-send="true"
                          href="http://www.opensips-solutions.com"
                          target="_blank">http://www.opensips-solutions.com</a><br>
                      </blockquote>
                    </blockquote>
                    <br>
                    <br>
                    --<br>
                    Bogdan-Andrei Iancu<br>
                    OpenSIPS Founder and Developer<br>
                    <a moz-do-not-send="true"
                      href="http://www.opensips-solutions.com"
                      target="_blank">http://www.opensips-solutions.com</a><br>
                    <br>
                  </blockquote>
                </blockquote>
                <br>
                <br>
                -- <br>
                Bogdan-Andrei Iancu<br>
                OpenSIPS Founder and Developer<br>
                <a moz-do-not-send="true"
                  href="http://www.opensips-solutions.com"
                  target="_blank">http://www.opensips-solutions.com</a><br>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <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>
  </body>
</html>