<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hi Alexnader,<br>
        <br>
        The dialog is not destroyed by the received negative replies,
        but when opensips forwards the negative reply back to the caller
        side.<br>
        <br>
        So, in your case, the dialog will be ended when the 487 reply is
        sent from OpenSIPS to FS. That following ACK (from FS) is not a
        in-dialog ACK, but a hop-by-hop transactional ACK and it should
        hit TM in your script. <br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 19.05.2014 08:19, Alexander Mustafin wrote:<br>
    </div>
    <blockquote
      cite="mid:7B0F811C-B1CA-4942-9531-4BFBB4D69622@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Good day!
      <div><br>
      </div>
      <div>I’ve a problem with negative replies retransmission. Dialog
        is destroyed at this moment by upstream negative reply. How to
        prevent this behaviour?</div>
      <div><br>
      </div>
      <div>
        <div>                    FS      OpenSIPS     AST1      AST2</div>
        <div>0.000000       |---------&gt;|                        |    
              |        INVITE <a moz-do-not-send="true"
            href="sip:1234567890@sbc.ops.lan">sip:1234567890@sbc.ops.lan</a>
          | +SDP [0s]</div>
        <div>0.351449       |&lt;---------|                        |    
              |        100 Giving a try [0.35s]</div>
        <div>0.351919       |             |------------------&gt;|      
            |        INVITE <a moz-do-not-send="true"
            href="sip:1234567890@192.168.0.155">sip:1234567890@192.168.0.155</a>
          | +SDP [0.35s]</div>
        <div>0.354767       |             |&lt;------------------|      
            |        100 Trying [0.35s]</div>
        <div>1.309592       |             |&lt;------------------|      
            |        603 [1.31s]</div>
        <div>1.310000       |             |------------------&gt;|      
            |        ACK <a moz-do-not-send="true"
            href="sip:1234567890@192.168.0.155">sip:1234567890@192.168.0.155</a>
          [1.31s]</div>
        <div>1.886184       |            
          |--------------------------&gt;|       INVITE <a
            moz-do-not-send="true" href="sip:1234567890@192.168.0.199">sip:1234567890@192.168.0.199</a>
          | +SDP [1.89s]</div>
        <div>1.951046       |            
          |&lt;--------------------------|       100 Trying [1.95s]</div>
        <div>6.725141       |            
          |&lt;--------------------------|       183 Progress | +SDP
          [6.73s]</div>
        <div>6.726316       |&lt;---------|                            
               |       183 Progress | +SDP [6.73s]</div>
        <div>6.799651       |            
          |&lt;--------------------------|       180 Ringing [6.8s]</div>
        <div>6.800444       |&lt;---------|                            
               |      180 Ringing [6.8s]</div>
        <div>13.996213     |---------&gt;|                              
             |       CANCEL <a moz-do-not-send="true"
            href="sip:1234567890@sbc.ops.lan">sip:1234567890@sbc.ops.lan</a>
          [14s]</div>
        <div>14.259989     |            
          |---------------------------&gt;|      CANCEL <a
            moz-do-not-send="true" href="sip:1234567890@192.168.0.199">sip:1234567890@192.168.0.199</a>
          [14.26s]</div>
        <div>14.321767     |            
          |&lt;---------------------------|      200 OK [14.32s]</div>
        <div>14.322271     |            
          |&lt;---------------------------|     487 Request Terminated
          [14.32s]</div>
        <div>14.322748     |            
          |---------------------------&gt;|      ACK <a
            moz-do-not-send="true" href="sip:1234567890@192.168.0.199">sip:1234567890@192.168.0.199</a>
          [14.32s]</div>
        <div>14.323271     |&lt;---------|                              
              |     487 Request Terminated [14.32s]</div>
        <div>14.323859     |---------&gt;|                              
              |     ACK <a moz-do-not-send="true"
            href="sip:1234567890@sbc.ops.lan">sip:1234567890@sbc.ops.lan</a>
          [14.32s]</div>
        <div>14.825038     |&lt;---------|                              
              |     487 Request Terminated [14.83s]</div>
        <div>14.825669     |---------&gt;|                              
              |     ACK <a moz-do-not-send="true"
            href="sip:1234567890@sbc.ops.lan">sip:1234567890@sbc.ops.lan</a>
          [14.83s]</div>
        <div>15.826212     |&lt;---------|                              
              |     487 Request Terminated [15.83s]</div>
        <div>15.826901     |---------&gt;|                              
              |     ACK <a moz-do-not-send="true"
            href="sip:1234567890@sbc.ops.lan">sip:1234567890@sbc.ops.lan</a>
          [15.83s]</div>
        <div>17.821087     |&lt;---------|                              
              |     487 Request Terminated [17.82s]</div>
        <div>17.821674     |---------&gt;|                              
              |     ACK <a moz-do-not-send="true"
            href="sip:1234567890@sbc.ops.lan">sip:1234567890@sbc.ops.lan</a>
          [17.82s]</div>
        <div>21.827427     |&lt;---------|                              
              |     487 Request Terminated [21.83s]</div>
        <div>21.828124     |---------&gt;|                              
              |     ACK <a moz-do-not-send="true"
            href="sip:1234567890@sbc.ops.lan">sip:1234567890@sbc.ops.lan</a>
          [21.83s]</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div apple-content-edited="true">
          <div style="color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: -webkit-auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            <div>Best regards,</div>
            <div>Alexander Mustafin</div>
            <div><a moz-do-not-send="true"
                href="mailto:mustafin.aleksandr@gmail.com">mustafin.aleksandr@gmail.com</a></div>
            <div><br>
            </div>
          </div>
          <br class="Apple-interchange-newline">
          <br class="Apple-interchange-newline">
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>