<div dir="ltr"><div>Thank you for your help.</div><div><br></div><div>We use TLS protocol from mobile networks.</div><div><br></div><div>In most cases we have no problems during the three way handshake (invite -> 200Ok -> ACK).<br></div><div><br></div><div>But sometimes, we didn't received the ACK of 200OK (the TCP connection appears broken during the three way handshake per example). In this case, we need to cancel the calls to avoid charging customers.</div><div><br></div><div>our goal is to use tpcops (tcp:closed, tcp:reset event routes), htable, dialog and tmx modules to cancel (t_reply_callid) or terminate(dlg_bye) these calls.<br></div><div><br></div><div>May be , is there a better solution?<br></div><div class="gmail_extra"><br clear="all"><div><div class="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 21:21 GMT+02:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><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>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="gmail-m_1484937868781368398moz-cite-prefix">On 19.07.18 19:20, Abdoul Osséni wrote:<br>
    </div>
    <blockquote type="cite">
      
      <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-m_1484937868781368398gmail_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">abdoul.osseni@gmail.com</a>></span>:<br>
            <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>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="gmail-m_1484937868781368398m_-6175642547482292682gmail_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">miconda@gmail.com</a>></span>:<br>
                      <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 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="gmail-HOEnZb"><font color="#888888"><span class="gmail-m_1484937868781368398HOEnZb"><font color="#888888"><br>
                            <span class="gmail-m_1484937868781368398m_-6175642547482292682HOEnZb"><font color="#888888"><br>
                                -- <br>
                                Daniel-Constantin Mierla -- <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
                                <a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a>
                                -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
                                Kamailio World Conference -- <a href="http://www.kamailioworld.com" rel="noreferrer" target="_blank">www.kamailioworld.com</a><br>
                                <br>
                              </font></span></font></span></font></span></blockquote><span class="gmail-HOEnZb"><font color="#888888">
                    </font></span></div><span class="gmail-HOEnZb"><font color="#888888">
                    <br>
                  </font></span></div><span class="gmail-HOEnZb"><font color="#888888">
                </font></span></div><span class="gmail-HOEnZb"><font color="#888888">
              </font></span></div><span class="gmail-HOEnZb"><font color="#888888">
            </font></span></blockquote><span class="gmail-HOEnZb"><font color="#888888">
          </font></span></div><span class="gmail-HOEnZb"><font color="#888888">
          <br>
        </font></span></div><span class="gmail-HOEnZb"><font color="#888888">
      </font></span></div><span class="gmail-HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="gmail-HOEnZb"><font color="#888888">
    <br>
    <pre class="gmail-m_1484937868781368398moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="gmail-m_1484937868781368398moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_1484937868781368398moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_1484937868781368398moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="gmail-m_1484937868781368398moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </font></span></div>

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