Fixed more bugs caused by ticket #221

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1250 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-05-04 10:49:54 +00:00
parent c71ad43666
commit 54f6d8d442
1 changed files with 7 additions and 0 deletions

View File

@ -2516,7 +2516,14 @@ static pj_status_t tsx_on_state_proceeding_uac(pjsip_transaction *tsx,
pj_time_val timeout;
pjsip_tx_data *ack_tdata = NULL;
/* Cancel retransmission timer */
if (tsx->retransmit_timer.id != 0) {
pjsip_endpt_cancel_timer(tsx->endpt, &tsx->retransmit_timer);
tsx->retransmit_timer.id = 0;
}
/* Stop timer B. */
tsx->timeout_timer.id = 0;
pjsip_endpt_cancel_timer( tsx->endpt, &tsx->timeout_timer );
/* Generate and send ACK (for INVITE) */