<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <tt>Hi,</tt><tt><br>
    </tt><tt><br>
    </tt><tt>CANCEL message doesn't show up in "onsend_route".</tt><tt><br>
    </tt><tt>I'm only able to the the 200OK reply received from the
      device in "reply_route", I can probably get the via-branch from
      there, but I don't have access to the AVPs...</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Having a dedicate event route, or reuse an existing one,
      would be the best option.</tt><tt><br>
    </tt><tt><br>
    </tt><tt>Thanks</tt><tt><br>
    </tt><tt>Marco</tt><br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 2/26/20 10:28 AM, Daniel-Constantin
      Mierla wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:21f19d05-e9e4-ab9b-1a6e-c6768d72b728@gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hello,</p>
      <p>the last option to try is onsend_route and if the CANCEL shows
        up there, then use some string operations over $snd(buf) to get
        the Via branch, last value after "." being the branch index. I
        am not sure you can get the INVITE avps there, but you can try.</p>
      <p>Otherwise a new event route has to be added for this purpose.
        Probably not much coding, depends of what is wanted to be
        exposed there, as the cancel is generated locally, there is no
        incoming sip_msg_t structure.</p>
      <p>Cheers,<br>
        Daniel<br>
      </p>
      <div class="moz-cite-prefix">On 26.02.20 10:12, Marco Capetta
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:59d8e69e-3cbd-b2bb-fab7-9c2a98f19ee6@sipwise.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <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" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">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;" moz-do-not-send="true">
                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;" moz-do-not-send="true">
                +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;" moz-do-not-send="true">
                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;" moz-do-not-send="true"> 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>
        <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" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 9-11, 2020, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</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>