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:
parent
8054de09b0
commit
44cf7adcc9
|
@ -2019,12 +2019,27 @@ static pj_status_t tsx_on_state_proceeding_uas( pjsip_transaction *tsx,
|
||||||
pjsip_tx_data_add_ref(tdata);
|
pjsip_tx_data_add_ref(tdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Start timer J at 64*T1 for unreliable transport or zero for
|
/* Setup timeout timer: */
|
||||||
* reliable transport.
|
|
||||||
*/
|
if (tsx->method.id == PJSIP_INVITE_METHOD) {
|
||||||
if (!tsx->is_reliable) {
|
|
||||||
|
/* Start Timer H at 64*T1 for INVITE server transaction,
|
||||||
|
* regardless of transport.
|
||||||
|
*/
|
||||||
timeout = timeout_timer_val;
|
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 {
|
} else {
|
||||||
|
|
||||||
|
/* Transaction terminates immediately for non-INVITE when
|
||||||
|
* reliable transport is used.
|
||||||
|
*/
|
||||||
timeout.sec = timeout.msec = 0;
|
timeout.sec = timeout.msec = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue