Ignore:
Timestamp:
Apr 26, 2009 11:02:04 AM (15 years ago)
Author:
bennylp
Message:

Fixed ticket #503: Handle the case when CANCEL is responded with 200/OK but 487 is not sent

  • added new API pjsip_tsx_set_timeout()
  • set 64*T1 timeout after CANCEL is initiated
  • also added SIPp scenario to simulate the UAS
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r2643 r2646  
    18871887                                               inv->invite_tsx->last_tx, 
    18881888                                               &tdata); 
     1889            if (status != PJ_SUCCESS) 
     1890                return status; 
     1891 
     1892            /* Set timeout for the INVITE transaction, in case UAS is not 
     1893             * able to respond the INVITE with 487 final response. The  
     1894             * timeout value is 64*T1. 
     1895             */ 
     1896            pjsip_tsx_set_timeout(inv->invite_tsx, 64 * pjsip_cfg()->tsx.t1); 
    18891897 
    18901898        } else { 
Note: See TracChangeset for help on using the changeset viewer.