[Freeswitch-users] Mod_skinny: Call for testing!

Michael Jerris mike at jerris.com
Tue May 25 08:08:59 PDT 2010


On May 25, 2010, at 9:30 AM, Steve Underwood wrote:

> On 05/25/2010 08:57 PM, Michael Jerris wrote:
>> On May 25, 2010, at 3:42 AM, Mathieu Parent wrote:
>> 
>> 
>>> On Tue, May 25, 2010 at 2:11 AM, Michael Jerris<mike at jerris.com>  wrote:
>>> 
>>>> Mathieu, we have a define for the printf specifier for switch_size_t, because it is different on different os's:
>>>> 
>>>> switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Session %" SWITCH_SIZE_T_FMT " (%s) Ended\n",
>>>> 
>>>> you can use it like that, or optionally, if appropriate, cast the value to the right type when passing it to printf style commands.
>>>> 
>>>> 
>>> Thanks Mike. I thought I had already done this but can find where it went.
>>> 
>>> I also need a function for big-endian platforms to convert native
>>> integer to little endian and the reverse. Those are simple to
>>> implement and I can do this, but I don't know where to put them
>>> (switch_utils.{h,c}?) and how to name them (switch_htol32,
>>> switch_ltoh32? or switch_native_to_little_endian,
>>> switch_to_little?...) ; or maybe they already exists?
>>> 
>> we just use ntohl and htonl (see switch_rtp.c)
>> 
> Whjat happens when a long is 64 bits?

We have not actually needed one so far I guess is the real answer, and yes, switch_utils.c is the right place for them.


>>> Patrick, his is solved on a2ceff1. Can you test again? For reference,
>>> this is MODSKINNY-5 on Jira.
>>> 
>>> Mathieu
>>> 
> Steve
> 




More information about the FreeSWITCH-users mailing list