Skip to content

Commit

Permalink
Fixed #1766: Assertion due to stray retransmit timer in UAC transacti…
Browse files Browse the repository at this point in the history
…on completed state

git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4839 74dad513-b988-da41-8d7b-12977e46ad98
  • Loading branch information
bennylp committed May 8, 2014
1 parent 6743083 commit dd78634
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pjsip/src/pjsip/sip_transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -3173,8 +3173,11 @@ static pj_status_t tsx_on_state_completed_uac( pjsip_transaction *tsx,
pj_assert(tsx->state == PJSIP_TSX_STATE_COMPLETED);

if (event->type == PJSIP_EVENT_TIMER) {
/* Must be the timeout timer. */
pj_assert(event->body.timer.entry == &tsx->timeout_timer);
/* Ignore stray retransmit event
* https://trac.pjsip.org/repos/ticket/1766
*/
if (event->body.timer.entry != &tsx->timeout_timer)
return PJ_SUCCESS;

/* Move to Terminated state. */
tsx_set_state( tsx, PJSIP_TSX_STATE_TERMINATED,
Expand Down

0 comments on commit dd78634

Please sign in to comment.