[Kamailio-Devel] why setting int val to pvar also sets str val?

Juha Heinanen jh at tutpro.com
Wed Sep 3 10:34:54 CEST 2008


Daniel-Constantin Mierla writes:

 > it was there from beginning, as the PVs were moved out of the xlog 
 > module where everything was needed as string. The penalty is low, at 
 > some point each PV callback function had a parameter for flags intended 
 > to use it for such purpose, convert to str only if expressly asked. It 
 > was removed to move that at application level, but here comes code 
 > review for each PV.

ok, perhaps a comment about this should be added in pvar.h where
pv_value_t is defined.

-- juha



More information about the Devel mailing list