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?
Thanks a lot.
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
2011/11/22 Daniel-Constantin Mierla miconda@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 :)