<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <tt>Hi Yuriy,<br>
      <br>
      thanks for the suggestion.<br>
      I tried both "event_route[tm:local-request]" and
      "event_route[tm:local-response]" but internally generated CANCEL
      messages are not captured by those event routes.<br>
      On the contrary, I can see that OPTIONS, NOTIFY and also PUBLISH
      messages are there.<br>
      <br>
      Do you have any other suggestion?<br>
      <br>
      Thanks<br>
      Regards<br>
      Marco<br>
    </tt><br>
    <div class="moz-cite-prefix">On 2/25/20 5:50 PM, Yuriy Gorlichenko
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABSP_VfnwT6bSxXBOQCUT6nKLh9i=6rP_iksnv1XaJxnaaiKQA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">You can try event_route[tm:local-request] for
        this. </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, 25 Feb 2020, 15:36
          Marco Capetta, <<a href="mailto:mcapetta@sipwise.com"
            moz-do-not-send="true">mcapetta@sipwise.com</a>> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
          <br>
          I have a question regarding call forking and how to access
          failed <br>
          branches: the ones for which kamailio sends out the CANCEL
          because on <br>
          another one a 200OK was received.<br>
          This is the scenario:<br>
            - A calls B<br>
            - 3 devices are registered on B, so a parallel forking is
          done to B1, <br>
          B2 and B3<br>
            - B1, B2, and B3 all reply with 180 Ringing<br>
            - B1 replies with 200OK<br>
            - Kamailio CANCELs the branches with B2 and B3<br>
          <br>
          What I need is access to each single CANCEL that Kamailio
          sends out to <br>
          B2 and B3.<br>
          In particular I need to know the branch-id and Via branch of
          all the <br>
          cancelled branches. Additionally it would be perfect to have
          them inside <br>
          the TM module, in order to have access also to internal AVPs.<br>
          <br>
          I tried with dedicated failure routes and also with per-branch
          failure <br>
          routes, but I was never able to access to those values.<br>
          I also didn't found a specific event-route that can help me
          solve this <br>
          problem.<br>
          <br>
          Does anyone have an idea?<br>
          <br>
          Kamailio version 5.2.5<br>
          <br>
          <br>
          Thanks<br>
          <br>
          Regards<br>
          Marco<br>
          <br>
          <br>
          _______________________________________________<br>
          Kamailio (SER) - Users Mailing List<br>
          <a href="mailto:sr-users@lists.kamailio.org" target="_blank"
            rel="noreferrer" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
          <a
            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
            rel="noreferrer noreferrer" target="_blank"
            moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <div style="line-height:16px; margin:6px 0; padding:8px 8px 8px
        8px; border-top:1px #aeb1a6 dotted; border-bottom:1px #aeb1a6
        dotted; font-family: 'Lucida Sans', Lucida Grande, Verdana,
        Arial, Sans-Serif; font-size:11px; color:#555555;"> <strong
          style="color:#333333; text-transform:uppercase;
          font-size:10px;"> Marco Capetta </strong> <br>
        VoIP Developer
        <p> <a href="http://www.sipwise.com" style="color:rgb(0, 136,
            204) !important; text-decoration:none !important;
            border-bottom:1px dotted #AAA;"> Sipwise GmbH </a> , Campus
          21/Europaring F15<br>
          AT-2345 Brunn am Gebirge </p>
        <p> Phone:  <a href="tel:+4313012044" style="color:rgb(0, 136,
            204) !important; text-decoration:none !important;
            border-bottom:1px dotted #AAA;"> +43(0)1 301 2044 </a> <br>
          Email:  <a href="mailto:mcapetta@sipwise.com"
            style="color:rgb(0, 136, 204) !important;
            text-decoration:none !important; border-bottom:1px dotted
            #AAA;"> mcapetta@sipwise.com </a> <br>
          Website:  <a href="http://www.sipwise.com"
            style="color:rgb(0, 136, 204) !important;
            text-decoration:none !important; border-bottom:1px dotted
            #AAA;"> www.sipwise.com </a> </p>
        <p>
          Particulars according Austrian Companies Code paragraph 14<br>
          "Sipwise GmbH" - Europaring F15 - 2345 Brunn am Gebirge<br>
          FN:305595f, Commercial Court Vienna, ATU64002206
        </p>
      </div>
    </div>
  </body>
</html>