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

Iñaki Baz Castillo ibc at aliax.net
Tue Nov 22 10:27:24 CET 2011


2011/11/22 Daniel-Constantin Mierla <miconda at gmail.com>:
> 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.

Thanks Daniel. For now I just need 4 bytes long integers :)

-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-users mailing list