<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Brett,<br>
      <br>
      Yes, I'm quite positive that's your issue, and that rev &gt;= 9382
      has it fixed.<br>
      <br>
      Regards,<br>
      Vlad<br>
      <br>
      Pe 11/23/2012 5:50 PM, Brett Nemeroff a scris:<br>
    </div>
    <blockquote
cite="mid:CAPwC5wy+1i_owXRDJJUmucbkgQHG=rb+Hac+YcYBrxoOZdCZ5w@mail.gmail.com"
      type="cite">Vlad,
      <div>This is actually 8772. There is no question the CANCEL has a
        to-tag and no Route headers. So I suppose that would be the
        issue?</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div>Brett</div>
      <div><br>
        <br>
        <div class="gmail_quote">
          On Wed, Nov 21, 2012 at 4:15 PM, Vlad Paiu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:vladpaiu@opensips.org"
              target="_blank">vladpaiu@opensips.org</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <div>Hello,<br>
                <br>
                What is the OpenSIPS SVN version and revision that you
                are using ?<br>
                There was recently a bug found, where dialogs would get
                stuck for Cancels that had a To-Tag, and it was fixed in
                rev 9382 .<br>
                <br>
                Regards,<br>
                Vlad<br>
                <br>
                Pe 11/21/2012 9:19 PM, Brett Nemeroff a scris:<br>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">Hey All,
                    <div>I'm doing simple dialog based topo hiding and I
                      noticed that CANCELd dialogs are hanging around in
                      state 5. They are starting to stack up.&nbsp;</div>
                    <div><br>
                    </div>
                    <div>
                      <div>Here's an example of one of the dialogs.. I
                        kind of thought that when the timeout ran down,
                        the dialog would disappear, but it's not:</div>
                    </div>
                    <div><br>
                    </div>
                    <div>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial">dialog::

                        &nbsp;hash=1645:1160860947</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>state::
                        5</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>user_flags::

                        0</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>timestart::

                        0</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>timeout::

                        0</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>callid::
                        <a moz-do-not-send="true"
                          href="mailto:69126-1353462109-9996@1.2.3.4"
                          target="_blank">69126-1353462109-9996@1.2.3.4</a></p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>from_uri::

                        <a moz-do-not-send="true"
                          href="http://sip:14387649628@1.2.3.4:5060"
                          target="_blank">sip:14387649628@1.2.3.4:5060</a></p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>to_uri::
                        <a moz-do-not-send="true"
                          href="mailto:sip%3A50931111111@5.6.7.8"
                          target="_blank">sip:50931111111@5.6.7.8</a></p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>caller_tag::

                        201142122000875167015</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>caller_contact::

                        <a moz-do-not-send="true">sip:1.2.3.4:5060;transport=udp</a></p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>callee_cseq::

                        0</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>caller_route_set::&nbsp;</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>caller_bind_addr::

                        udp:<a moz-do-not-send="true"
                          href="http://5.6.7.8:5060" target="_blank">5.6.7.8:5060</a></p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>callee_tag::

                        2011411220122012615936129</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>callee_contact::

                        <a moz-do-not-send="true">sip:9.8.7.6:5060;transport=udp</a></p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><span
                          style="white-space:pre-wrap"> </span>caller_cseq::

                        1</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><br>
                      </p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial">
                        This has been around for about 18 hours! SIP
                        Trace looks pretty normal really.&nbsp;</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><br>
                      </p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial">To

                        properly support topo hiding, I've got this at
                        the top of the route processing:</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><br>
                      </p>
                      <p style="margin:0px">&nbsp; &nbsp; &nbsp; &nbsp; if (has_totag()) {</p>
                      <p style="margin:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        if(is_method("INVITE|ACK|BYE|UPDATE|CANCEL")) {</p>
                      <p style="margin:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        if(match_dialog()) {</p>
                      <p style="margin:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; t_relay();</p>
                      <p style="margin:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; exit;</p>
                      <p style="margin:0px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p>
                      <p style="margin:0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p>
                      <p style="margin:0px"><br>
                      </p>
                      <p style="margin:0px">I originally didn't include
                        CANCEL in the method check, but it caused
                        CANCELs to be ignored by one of the endpoints.
                        Granted, I know the endpoints are using switches
                        that arn't known for being very compliant. When
                        I added in CANCEL in this check, the sip traces
                        now look proper and both sides are happy with
                        the request being terminated, but the dialog
                        persists in memory.</p>
                      <p style="margin:0px"><br>
                      </p>
                      <p style="margin:0px">Any ideas why these dialogs
                        are not clearing out of opensips?</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><br>
                      </p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial">
                        <br>
                      </p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial">Thanks,</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial">Brett</p>
                      <p
                        style="margin:0px;font-size:13px;font-family:Arial"><br>
                      </p>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            Users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
              target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
            <br>
          </blockquote>
        </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>