diff options
author | Benny Prijono <bennylp@teluu.com> | 2014-05-08 09:21:04 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2014-05-08 09:21:04 +0000 |
commit | 57862f6079ff0d736499b15a4d59c61bca45fcf2 (patch) | |
tree | b2b4a468fb857c4f37ce13e80ccdb2c065eff781 | |
parent | 4d65207571e24bca6277597af10c1c270a38f879 (diff) |
Fixed #1766: Assertion due to stray retransmit timer in UAC transaction completed state
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4839 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjsip/src/pjsip/sip_transaction.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pjsip/src/pjsip/sip_transaction.c b/pjsip/src/pjsip/sip_transaction.c index d8af39e4..cfc055e1 100644 --- a/pjsip/src/pjsip/sip_transaction.c +++ b/pjsip/src/pjsip/sip_transaction.c @@ -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, |