Changeset 3203 for pjproject/trunk


Ignore:
Timestamp:
Jun 15, 2010 5:14:10 AM (14 years ago)
Author:
bennylp
Message:

Re #1068 (Misc Fixes): changed timeout timer value initialization in sip_transaction.c to copy the value from TD timer value instead of calculating it directly from T1. This would enable customization of the timeout value by changing PJSIP_TD_TIMEOUT macro. Previously the only way to modify this is to change the T1 value, which is undesireable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r3188 r3203  
    452452    td_timer_val.sec  = pjsip_cfg()->tsx.td / 1000; 
    453453    td_timer_val.msec = pjsip_cfg()->tsx.td % 1000; 
    454     timeout_timer_val.sec  = (64 * pjsip_cfg()->tsx.t1) / 1000; 
    455     timeout_timer_val.msec = (64 * pjsip_cfg()->tsx.t1) % 1000; 
     454    /* Changed the initialization below to use td_timer_val instead, to enable 
     455     * customization to the timeout value. 
     456     */ 
     457    //timeout_timer_val.sec  = (64 * pjsip_cfg()->tsx.t1) / 1000; 
     458    //timeout_timer_val.msec = (64 * pjsip_cfg()->tsx.t1) % 1000; 
     459    timeout_timer_val = td_timer_val; 
    456460 
    457461    /* Initialize TLS ID for transaction lock. */ 
Note: See TracChangeset for help on using the changeset viewer.