Changeset 1415


Ignore:
Timestamp:
Aug 12, 2007 4:12:17 AM (17 years ago)
Author:
bennylp
Message:

Ticket #362: Transaction timer I in Completed state should be zero for reliable transports (thanks Ivan F. Skripov)

File:
1 edited

Legend:

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

    r1319 r1415  
    26412641 
    26422642        } else { 
     2643            pj_time_val timeout; 
     2644 
    26432645            /* Process incoming ACK request. */ 
    26442646 
     
    26502652            tsx->transport_flag &= ~(TSX_HAS_PENDING_RESCHED); 
    26512653 
    2652             /* Start timer I in T4 interval (transaction termination). */ 
     2654            /* Reschedule timeout timer. */ 
    26532655            pjsip_endpt_cancel_timer( tsx->endpt, &tsx->timeout_timer ); 
    26542656            tsx->timeout_timer.id = TIMER_ACTIVE; 
     2657 
     2658            /* Timer I is T4 timer for unreliable transports, and 
     2659             * zero seconds for reliable transports. 
     2660             */ 
     2661            if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) { 
     2662                timeout.sec = 0;  
     2663                timeout.msec = 0; 
     2664            } else { 
     2665                timeout.sec = t4_timer_val.sec; 
     2666                timeout.msec = t4_timer_val.msec; 
     2667            } 
    26552668            pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer,  
    2656                                         &t4_timer_val); 
     2669                                        &timeout); 
    26572670 
    26582671            /* Move state to "Confirmed" */ 
Note: See TracChangeset for help on using the changeset viewer.