Changeset 151


Ignore:
Timestamp:
Feb 8, 2006 9:22:02 AM (18 years ago)
Author:
bennylp
Message:

Fixed bug in invite server transaction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.2/pjsip/src/pjsip/sip_transaction.c

    r88 r151  
    13761376 
    13771377    } else if (event->type == PJSIP_EVENT_RX_MSG) { 
    1378         int code; 
    13791378 
    13801379        /* Cancel retransmission timer A. */ 
     
    15401539                } 
    15411540 
    1542                 /* Start timer J at 64*T1 for unreliable transport or zero for 
    1543                  * reliable transport. 
    1544                  */ 
    1545                 if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) { 
     1541                /* Setup timeout timer: */ 
     1542                 
     1543                if (tsx->method.id == PJSIP_INVITE_METHOD) { 
     1544                     
     1545                    /* Start Timer H at 64*T1 for INVITE server transaction, 
     1546                     * regardless of transport. 
     1547                     */ 
    15461548                    timeout = timeout_timer_val; 
     1549                     
     1550                } else if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) { 
     1551                     
     1552                    /* For non-INVITE, start timer J at 64*T1 for unreliable 
     1553                     * transport. 
     1554                     */ 
     1555                    timeout = timeout_timer_val; 
     1556                     
    15471557                } else { 
     1558                     
     1559                    /* Transaction terminates immediately for non-INVITE when 
     1560                     * reliable transport is used. 
     1561                     */ 
    15481562                    timeout.sec = timeout.msec = 0; 
    15491563                } 
     1564 
     1565                pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer,  
     1566                                            &timeout); 
    15501567 
    15511568                pjsip_endpt_schedule_timer( tsx->endpt, &tsx->timeout_timer, &timeout); 
Note: See TracChangeset for help on using the changeset viewer.