Ignore:
Timestamp:
Feb 22, 2008 11:10:17 AM (17 years ago)
Author:
bennylp
Message:

Ticket #7: Move PJSIP compile time configurations/settings (such as T1, T2 timers) to run-time (thanks Philippe Leuba)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test-pjsip/tsx_uas_test.c

    r1266 r1818  
    987987             
    988988                msec = now.sec*1000 + now.msec; 
    989                 msec_expected = (1 << (recv_count-2)) * PJSIP_T1_TIMEOUT; 
    990                 if (msec_expected > PJSIP_T2_TIMEOUT) 
    991                     msec_expected = PJSIP_T2_TIMEOUT; 
     989                msec_expected = (1 << (recv_count-2)) * pjsip_cfg()->tsx.t1; 
     990                if (msec_expected > pjsip_cfg()->tsx.t2) 
     991                    msec_expected = pjsip_cfg()->tsx.t2; 
    992992 
    993993                if (DIFF(msec, msec_expected) > MAX_ALLOWED_DIFF) { 
     
    10591059             
    10601060                msec = now.sec*1000 + now.msec; 
    1061                 msec_expected = (1 << (recv_count-2)) * PJSIP_T1_TIMEOUT; 
    1062                 if (msec_expected > PJSIP_T2_TIMEOUT) 
    1063                     msec_expected = PJSIP_T2_TIMEOUT; 
     1061                msec_expected = (1 << (recv_count-2)) * pjsip_cfg()->tsx.t1; 
     1062                if (msec_expected > pjsip_cfg()->tsx.t2) 
     1063                    msec_expected = pjsip_cfg()->tsx.t2; 
    10641064 
    10651065                if (DIFF(msec, msec_expected) > MAX_ALLOWED_DIFF) { 
Note: See TracChangeset for help on using the changeset viewer.