[SR-Users] How long (in bytes) is an AVP which reads an Integer from DB?

Daniel-Constantin Mierla miconda at gmail.com
Tue Nov 22 10:21:20 CET 2011


Hello,

On 11/21/11 4:33 PM, Iñaki Baz Castillo wrote:
> Hi, I need to read from a MySQL table a 32 bits long Integer column.
> My question is: how many bytes does Kamailio use for storing integer
> values fetched from a DB query? does it depend on the 32/64 bits
> architecture?
the integer is 4 bytes in all architectures. AVPs can hold only integer 
numbers, also the config file interpreter does arithmetic operations 
with integers. XAVPs can hold other types of numbers such as long and 
double.
Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list