<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>