<p>When using the dialog module to end a dialog, the remote UA refusing the BYE after a PRACK in the dialog.</p>

<pre><code>---- INVITE ( CSeq: 1 INVITE ) --->
<--- 100 ( CSeq: 1 INVITE ) -------
<--- 183 ( CSeq: 1 INVITE ) -------
---- PRACK ( CSeq: 2 PRACK ) ----->
<--- 200 OK ( CSeq: 2 PRACK ) -----
<--- 200 OK ( CSeq: 1 INVITE ) ----
---- ACK ( CSeq: 1 ACK ) --------->

{      Mi: dlg.end_dlg()      }

<--- BYE (CSeq: 1 BYE) 
     BYE ( CSeq: 2 BYE) ---------->
<--- 500 (Bad CSeq number) --------
</code></pre>

<p>error in the remote log "remote cseq lower than previous ones - refusing request".</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/409">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZR6flfOLdMuEGp3gCpGIijqh7nXhks5pIxrKgaJpZM4Gnjg5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/409"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>