<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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">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/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">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>