timer problem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi ,

In pjsip project, when we are using code for transaction layer  we need to
call  function that is :
                       pjsip_tsx_layer_init_module(g_endpt);

this is for initializing transaction layer, i have a doubt  inside  this
function  it is calculating time i am not getting how ?
that lines are:
    t1_timer_val.sec  = pjsip_cfg()->tsx.t1 / 1000;
    t1_timer_val.msec = pjsip_cfg()->tsx.t1 % 1000;
    t2_timer_val.sec  = pjsip_cfg()->tsx.t2 / 1000;
    t2_timer_val.msec = pjsip_cfg()->tsx.t2 % 1000;
    t4_timer_val.sec  = pjsip_cfg()->tsx.t4 / 1000;
    t4_timer_val.msec = pjsip_cfg()->tsx.t4 % 1000;
    td_timer_val.sec  = pjsip_cfg()->tsx.td / 1000;
    td_timer_val.msec = pjsip_cfg()->tsx.td % 1000;
    timeout_timer_val.sec  = (64 * pjsip_cfg()->tsx.t1) / 1000;
    timeout_timer_val.msec = (64 * pjsip_cfg()->tsx.t1) % 10

can anyone tell me how it is getting value for timer.....
and also what is the meaning of when it will give error timeout...
is it giving this error according  to timer

Regards,
New_bie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081204/10eaa660/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux