<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Daniel,<br>
      <br>
      The issue was fixed and backported to the maintained versions too.
      See the fixes on the master branch:<br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/095dc57300b9665b090e999a540db8b391f8d22e">https://github.com/OpenSIPS/opensips/commit/095dc57300b9665b090e999a540db8b391f8d22e</a><br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/a61fa8646e6f865b347b3e725c6362dc15d4e57b">https://github.com/OpenSIPS/opensips/commit/a61fa8646e6f865b347b3e725c6362dc15d4e57b</a><br>
         
<a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/commit/ed12eb97c06a23491c8b831124600361b0b63f2f">https://github.com/OpenSIPS/opensips/commit/ed12eb97c06a23491c8b831124600361b0b63f2f</a><br>
      <br>
      Again, many thanks for the report, this was an awesome catch - and
      if you plan to participate to the OpenSIPS Summit, keep it mind
      you have a free seat form us ;)<br>
      <br>
      Best 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>
OpenSIPS Summit 2018
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
    <div class="moz-cite-prefix">On 01/29/2018 11:54 PM, Bogdan-Andrei
      Iancu wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:46a86fb4-a107-a56a-f0de-1bb873e16759@opensips.org">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <tt>Hi Daniel,<br>
        <br>
        Thanks for the report. Hard to believe but this may actually
        happen if you run OpenSIPS for long time under heavy load,
        making the id counter (per hash entry) to overflow the signed
        int.<br>
        <br>
        Let me investigate more.<br>
        <br>
        Best 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" moz-do-not-send="true">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam" moz-do-not-send="true">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
      <div class="moz-cite-prefix">On 01/26/2018 07:32 PM, Daniel
        Zanutti wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAN0jgiMLLg1p+jxiut4L8ZLKG=T3z1GQULdcJoeS7mbk3OtJCQ@mail.gmail.com">
        <div dir="ltr">
          <div><span style="color:rgb(38,50,56);font-size:13px">Hey</span></div>
          <div><span style="color:rgb(38,50,56);font-size:13px"><br>
            </span></div>
          <div><span style="color:rgb(38,50,56);font-size:13px">I got
              this error on Opensips:</span></div>
          <span style="color:rgb(38,50,56);font-size:13px"><b>/sbin/opensips[9189]:
              ERROR:dialog:parse_dlg_rr_param: invalid hash id
              'efd60008'</b></span>
          <div><font color="#263238"><br>
            </font></div>
          <div><font color="#263238">Checking the failling function:</font></div>
          <div><font color="#263238">
              <div>inline static int reverse_hex2int( char *c, int len )</div>
              <div>{</div>
              <div>        char *pc;</div>
              <div>        int r;</div>
              <div>        char mychar;</div>
              <div><br>
              </div>
              <div>        r=0;</div>
              <div>        for (pc=c+len-1; len>0; pc--, len--) {</div>
              <div>                r <<= 4 ;</div>
              <div>                mychar=*pc;</div>
              <div>                if ( mychar >='0' &&
                mychar <='9') r+=mychar -'0';</div>
              <div>                else if (mychar >='a' &&
                mychar <='f') r+=mychar -'a'+10;</div>
              <div>                else if (mychar  >='A' &&
                mychar <='F') r+=mychar -'A'+10;</div>
              <div>                else return -1;</div>
              <div>        }</div>
              <div>        return r;</div>
              <div>}</div>
              <div><br>
              </div>
            </font>Converting manually, looks like it passed int limit:
            efd60008 = 4023779336 > Limit 2147483647<font
              color="#263238">
              <div><br>
              </div>
              <div>The doubt is: Shouldn't this function return
                "unsigned int" instead of "int"? Is this the problem or
                am I seeing something wrong?<br>
              </div>
              <div><br>
              </div>
              <div>I'm using opensips 1.11.9.</div>
              <div><br>
              </div>
              <div>Thanks</div>
            </font><font color="#263238">
              <div><br>
              </div>
            </font>
            <div><span style="color:rgb(38,50,56);font-size:13px"><br>
              </span></div>
            <div><span style="color:rgb(38,50,56);font-size:13px"><br>
              </span></div>
          </div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org" moz-do-not-send="true">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>