<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV>&nbsp;</DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV><FONT face="Times New Roman">I have noticed that 'kamctl monitor' displays 
corrupt statistics when kamailio is built for a 64 bit platform. <BR><BR>Further 
investigation has revealed that the reason is the underlying datatype is a long, 
whilst some of the wrapper functions (e.g. get_stat_val) return unsigned int. On 
a 32bit machine where a long and int are both the same size it is not a problem, 
but on a 64 bit machine they are different and hence the problem. <BR><BR>Some 
code uses the wrapper function, other does not, in the case of mi_get_stats it 
uses both, so depending on paramaters passed to the MI fifo it may work or 
produce garbage results. </FONT></DIV>
<DIV><BR>&nbsp;</DIV>
<DIV>Paul</DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>