<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Hi Kingsley,<br>
      <br>
      According to the docs [1], the "-1" ret code means "No  SIP
      message". Do you see any parsing errors in the logs, while doing
      the validation?<br>
      <br>
      <br>
      [1]
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/3.1.x/sipmsgops.html#func_sipmsg_validate">https://opensips.org/html/docs/modules/3.1.x/sipmsgops.html#func_sipmsg_validate</a><br>
      <br>
      Regards,<br>
    </font>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 2021 
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2021/">https://opensips.org/training/OpenSIPS_eBootcamp_2021/</a></pre>
    <div class="moz-cite-prefix">On 10/18/21 5:25 PM, Kingsley Tart
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:9c10b750b1a3266d0b6225dc3a1fc7e9f0b1d690.camel@dns99.co.uk">
      <pre class="moz-quote-pre" wrap="">Hi,

Using OpenSIPS 3.1.5 I'm getting validate_dialog() returning $rc=-1 on
re-invites.


I have this in opensips.cfg:

modparam("dialog", "dlg_match_mode", 1)


The top of route() looks like this:

route {
        if (has_totag()) {
                if (is_method("ACK") && t_check_trans()) {
                        t_relay();
                        exit;
                }

                if (!loose_route()) {
                        send_reply(404, "Not here");
                        exit;
                }

                if (!validate_dialog()) {
                        xlog("L_WARN", "Ignoring $rm from $si due to invalid dialog; rc=$rc\n");
                }


I've attached an (anonymised) SIP trace. OpenSIPS isn't responding to
the reinvites as I'm seeing "Ignoring INVITE from (address) due to
invalid dialog: rc=-1" (as per the xlog above).

Is there something wrong with these re-invite messages, or something
I'm doing wrong in OpenSIPS?

Cheers,
Kingsley.
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>