[OpenSIPS-Users] siptrace with microseconds accuracy

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jan 26 13:20:19 CET 2010


Hi Josip,

you need to make some changes in the sip_msg structure (to add a field 
to hold the received timestamp + usecs) and to add some code in the 
receive_msg() functions to set the time fields when the message is received.

Regards,
Bogdan

Josip Djuricic wrote:
> Hi,
>
> Tnx done it and it works as expected.
>
> Just a thought though...perhaps there is a way to get this time somehow when
> the message is really processed instead of taking current time? It would be
> more precise.
>
> Best regards,
>
> Josip
>
>
>
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org
> [mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
> Sent: Monday, January 25, 2010 2:41 PM
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] siptrace with microseconds accuracy
>
> Hi Josip,
>
> You need to change the code to make the siptrace module to insert in 
> table a new field, the microseconds (tv_usec field from gettimeofday() ).
>
> With pure scripting is not possible.
>
> Regards,
> Bogdan
>
> Josip Djuricic wrote:
>   
>> Hit there,
>>
>>  
>>
>> I'm thinking of implementing micorseconds accuracy for siptrace log. 
>> Any advice to kep it clean as possible?
>>
>>  
>>
>> Thought of using gettimeofday() function.
>>
>>  
>>
>> Best regards,
>>
>>  
>>
>> Josip
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>   
>>     
>
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list