Fixed bug in INVITE server transaction for 2xx response

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@152 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2006-02-08 09:22:46 +00:00
parent 8054de09b0
commit 44cf7adcc9
1 changed files with 19 additions and 4 deletions

View File

@ -2019,12 +2019,27 @@ static pj_status_t tsx_on_state_proceeding_uas( pjsip_transaction *tsx,
pjsip_tx_data_add_ref(tdata);
}
/* Start timer J at 64*T1 for unreliable transport or zero for
* reliable transport.
*/
if (!tsx->is_reliable) {
/* Setup timeout timer: */
if (tsx->method.id == PJSIP_INVITE_METHOD) {
/* Start Timer H at 64*T1 for INVITE server transaction,
* regardless of transport.
*/
timeout = timeout_timer_val;
} else if (PJSIP_TRANSPORT_IS_RELIABLE(tsx->transport)==0) {
/* For non-INVITE, start timer J at 64*T1 for unreliable
* transport.
*/
timeout = timeout_timer_val;
} else {
/* Transaction terminates immediately for non-INVITE when
* reliable transport is used.
*/
timeout.sec = timeout.msec = 0;
}