<div dir="ltr"><div>Hi Daniel,</div><div><br></div><div>Thanks for your analysis.</div><div><br></div><div>In failure route, I just save response code in a dlg_var and write this dlg_var into cdr to understand that how the call is ended.</div><div>Simple event_route execution solves my issue. </div><div><br></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 22, 2018 at 12:17 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>so I looked at the code and the patch was catching the case of no
      outgoing branches even for suspended transaction, to be coherent
      with the case when the transaction is not suspended. Practically
      there are two checks to detect these cases -- it is the code block
      at:</p>
    <p>  *
<a class="gmail-m_2865603211584064502moz-txt-link-freetext" href="https://github.com/kamailio/kamailio/blob/master/src/modules/tm/t_fwd.c#L1276-L1295" target="_blank">https://github.com/kamailio/kamailio/blob/master/src/modules/tm/t_fwd.c#L1276-L1295</a></p>
    <p>Why would you need a failure_route execution in this case? Being
      a cancelled transaction by UAC, it should not be forwarded
      anymore.</p>
    <p>I am trying to figure out if there is need to do a (rather
      complex) failure_route execution, or better introduce a (more
      lightweight) event_route for these cases (both with and without
      suspend).</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="gmail-m_2865603211584064502moz-cite-prefix">On 20.12.18 15:39, Daniel-Constantin
      Mierla wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="auto">Hello,
        <div dir="auto"><br>
        </div>
        <div dir="auto">Thanks for digging in further and providing the
          hints. I will look at it with the first chance. </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Cheers, </div>
        <div dir="auto">Daniel </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, 20 Dec 2018, 13:39 Koray Vatansever <<a href="mailto:koray.vatansever@gmail.com" target="_blank">koray.vatansever@gmail.com</a> wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">Hi Daniel,
                <div><br>
                </div>
                <div>After some debugging I realized that when the
                  following commit removed, failure route is executed as
                  expected:</div>
                <div>
                  <div><a href="https://github.com/kamailio/kamailio/commit/e36eebf36b72819b1b23c39469d60206f5df2bcf" rel="noreferrer" target="_blank">https://github.com/kamailio/kamailio/commit/e36eebf36b72819b1b23c39469d60206f5df2bcf</a><br>
                  </div>
                  <div><br>
                  </div>
                  <div>I would appreciate if you help me on this issue.</div>
                </div>
                <div><br>
                </div>
                <div>Regards,</div>
                <div>Koray</div>
              </div>
            </div>
            <br>
            <div class="gmail_quote">
              <div dir="ltr">On Mon, Nov 12, 2018 at 11:15 AM
                Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" rel="noreferrer" target="_blank">miconda@gmail.com</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                <div bgcolor="#FFFFFF">
                  <p>Hello,</p>
                  <p>I didn't get the chance to look at it so far. Also
                    this week is very busy, but when I get a chance, I
                    will check it.</p>
                  <p>Cheers,<br>
                    Daniel<br>
                  </p>
                  <br>
                  <div class="gmail-m_2865603211584064502m_3443112186426963015m_-3240552154412603802m_5368012189046228066gmail-m_-6558834171613651949moz-cite-prefix">On
                    12.11.18 07:58, Koray Vatansever wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi Daniel,
                      <div><br>
                      </div>
                      <div>Did you have a chance to have a look at the
                        logs that I provided to you?</div>
                      <div><br>
                      </div>
                      <div>If there is anything that I can do, just let
                        me know.</div>
                      <div><br>
                      </div>
                      <div>Regards,</div>
                      <div>Koray</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                    </div>
                    <br>
                    <div class="gmail_quote">
                      <div dir="ltr">On Wed, Nov 7, 2018 at 3:29 PM
                        Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" rel="noreferrer" target="_blank">miconda@gmail.com</a>>
                        wrote:<br>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
                        <br>
                        <br>
                        On 07.11.18 06:46, Koray Vatansever wrote:<br>
                        > Hi all,<br>
                        ><br>
                        > I'm trying to upgrade kamailio from 4.2.7
                        to 5.1.5 and I realized that<br>
                        > when CANCEL is received for a suspended
                        INVITE, failure route is not<br>
                        > executed in release 5.1.5. <br>
                        > In 4.2.7 failure route is executed for this
                        scenario.<br>
                        ><br>
                        > Is this the expected behaviour or am I
                        missing something?<br>
                        failure_route should be executed. Can you
                        reproduce with debug=3 and<br>
                        send all the logs related to this call, from
                        receiving the INVITE till<br>
                        the CANCEL is processed?<br>
                        <br>
                        Cheers,<br>
                        Daniel<br>
                        <br>
                        -- <br>
                        Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer
                          noreferrer" target="_blank">www.asipto.com</a><br>
                        <a href="http://www.twitter.com/miconda" rel="noreferrer noreferrer" target="_blank">www.twitter.com/miconda</a>
                        -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
                        Kamailio World Conference -- <a href="http://www.kamailioworld.com" rel="noreferrer noreferrer" target="_blank">www.kamailioworld.com</a><br>
                        Kamailio Advanced Training, Nov 12-14, 2018, in
                        Berlin -- <a href="http://www.asipto.com" rel="noreferrer noreferrer" target="_blank">www.asipto.com</a><br>
                        <br>
                      </blockquote>
                    </div>
                  </blockquote>
                  <br>
                  <pre class="gmail-m_2865603211584064502m_3443112186426963015m_-3240552154412603802m_5368012189046228066gmail-m_-6558834171613651949moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="gmail-m_2865603211584064502m_3443112186426963015m_-3240552154412603802m_5368012189046228066gmail-m_-6558834171613651949moz-txt-link-abbreviated" href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a>
<a class="gmail-m_2865603211584064502m_3443112186426963015m_-3240552154412603802m_5368012189046228066gmail-m_-6558834171613651949moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_2865603211584064502m_3443112186426963015m_-3240552154412603802m_5368012189046228066gmail-m_-6558834171613651949moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="gmail-m_2865603211584064502m_3443112186426963015m_-3240552154412603802m_5368012189046228066gmail-m_-6558834171613651949moz-txt-link-abbreviated" href="http://www.kamailioworld.com" rel="noreferrer" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="gmail-m_2865603211584064502m_3443112186426963015m_-3240552154412603802m_5368012189046228066gmail-m_-6558834171613651949moz-txt-link-abbreviated" href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a></pre>
                </div>
              </blockquote>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <pre class="gmail-m_2865603211584064502moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="gmail-m_2865603211584064502moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_2865603211584064502moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_2865603211584064502moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_2865603211584064502moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="gmail-m_2865603211584064502moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a></pre>
  </div>

</blockquote></div></div>