<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>If state < 0, then practically the INVITE transaction is
      active, it needs to be cancelled or replied with t_reply(...) and
      a code >=400.</p>
    <p>From where you need to terminate this ongoing INVITE, from
      kamailio.cfg or from external app?<br>
    </p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 19.07.18 19:20, Abdoul Osséni wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABc7nxsxWfcAvTDP9c38T_N3KSYJQsvzQu7__rZNoRFvCUqM3g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div>ERRATUM.</div>
        <div><br>
        </div>
        <div class="gmail_extra">
          <div>What is the best way to end calls for states < 3 ?<br>
          </div>
          <br clear="all">
          <div>
            <div class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div><span style="font-size:12.8px">Abdoul
                            OSSENI</span><br>
                        </div>
                        <div>Ingénieur DevOps chez Néo-Soft</div>
                        <div>Co-Fondateur de ON SERVICES</div>
                        <div>Tél : +33 601 135 167</div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
          <div class="gmail_quote">2018-07-19 19:19 GMT+02:00 Abdoul
            Osséni <span dir="ltr"><<a
                href="mailto:abdoul.osseni@gmail.com" target="_blank"
                moz-do-not-send="true">abdoul.osseni@gmail.com</a>></span>:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="ltr">
                <div>Thank you Daniel.</div>
                <div>What is the best way to end calls for states 3 and
                  4 ?<br>
                </div>
                <div>
                  <div class="gmail_extra"><br>
                  </div>
                  <div class="gmail_extra">Regards</div>
                  <div class="gmail_extra"><br clear="all">
                  </div>
                  <div class="gmail_extra">
                    <div>
                      <div class="m_-6175642547482292682gmail_signature"
                        data-smartmail="gmail_signature">
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div><span style="font-size:12.8px">Abdoul
                                      OSSENI</span><br>
                                  </div>
                                  <div>Ingénieur DevOps chez Néo-Soft</div>
                                  <div>Co-Fondateur de ON SERVICES</div>
                                  <div>Tél : +33 601 135 167</div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                    <div class="gmail_quote">2018-07-19 18:49 GMT+02:00
                      Daniel-Constantin Mierla <span dir="ltr"><<a
                          href="mailto:miconda@gmail.com"
                          target="_blank" moz-do-not-send="true">miconda@gmail.com</a>></span>:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">Hello,<br>
                        <br>
                        <br>
                        On 19.07.18 18:15, Abdoul Osséni wrote:<br>
                        > Hello list,<br>
                        ><br>
                        > When the dialog state for a call is < 4,
                        is it possible to use<br>
                        > dlg_bye() function to end the call?<br>
                        ><br>
                        it should be possible to use it for states 3 and
                        4.<br>
                        <br>
                        Lower state than 3 means that the dialog was not
                        answered yet (no 200ok<br>
                        received). While SIP allows BYE at that stage to
                        end a particular branch<br>
                        of the call, dialog module needs the 200ok, as
                        it operates at dialog<br>
                        level, not at transaction/branch level.<br>
                        <br>
                        Cheers,<br>
                        Daniel<span class="HOEnZb"><font color="#888888"><br>
                            <span class="m_-6175642547482292682HOEnZb"><font
                                color="#888888"><br>
                                -- <br>
                                Daniel-Constantin Mierla -- <a
                                  href="http://www.asipto.com"
                                  rel="noreferrer" target="_blank"
                                  moz-do-not-send="true">www.asipto.com</a><br>
                                <a href="http://www.twitter.com/miconda"
                                  rel="noreferrer" target="_blank"
                                  moz-do-not-send="true">www.twitter.com/miconda</a>
                                -- <a
                                  href="http://www.linkedin.com/in/miconda"
                                  rel="noreferrer" target="_blank"
                                  moz-do-not-send="true">www.linkedin.com/in/miconda</a><br>
                                Kamailio World Conference -- <a
                                  href="http://www.kamailioworld.com"
                                  rel="noreferrer" target="_blank"
                                  moz-do-not-send="true">www.kamailioworld.com</a><br>
                                <br>
                              </font></span></font></span></blockquote>
                    </div>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>