I have noticed that 'kamctl monitor' displays
corrupt statistics when kamailio is built for a 64 bit platform.
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.
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.
Paul