Changeset 5714
- Timestamp:
- Dec 13, 2017 8:16:30 AM (7 years ago)
- Location:
- pjproject/trunk/pjsip/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r5701 r5714 4255 4255 tsx->method.id != PJSIP_CANCEL_METHOD) || 4256 4256 tsx->status_code == PJSIP_SC_REQUEST_TIMEOUT || 4257 tsx->status_code == PJSIP_SC_TSX_TIMEOUT || 4258 tsx->status_code == PJSIP_SC_TSX_TRANSPORT_ERROR) 4257 tsx->status_code == PJSIP_SC_TSX_TIMEOUT) 4259 4258 { 4260 4259 inv_set_cause(inv, tsx->status_code, &tsx->status_text); -
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r5682 r5714 2045 2045 lock_timer(tsx); 2046 2046 tsx->transport_err = (pj_status_t)-sent; 2047 tsx_cancel_timer(tsx, &tsx->timeout_timer); 2048 tsx_schedule_timer(tsx, &tsx->timeout_timer, &delay, 2049 TRANSPORT_ERR_TIMER); 2047 /* Don't cancel timeout timer if tsx state is already 2048 * PJSIP_TSX_STATE_COMPLETED (see #2076). 2049 */ 2050 if (tsx->state < PJSIP_TSX_STATE_COMPLETED) { 2051 tsx_cancel_timer(tsx, &tsx->timeout_timer); 2052 tsx_schedule_timer(tsx, &tsx->timeout_timer, &delay, 2053 TRANSPORT_ERR_TIMER); 2054 } 2050 2055 unlock_timer(tsx); 2051 2056 } … … 2078 2083 lock_timer(tsx); 2079 2084 tsx->transport_err = info->status; 2080 tsx_cancel_timer(tsx, &tsx->timeout_timer); 2081 tsx_schedule_timer(tsx, &tsx->timeout_timer, &delay, 2082 TRANSPORT_ERR_TIMER); 2085 /* Don't cancel timeout timer if tsx state is already 2086 * PJSIP_TSX_STATE_COMPLETED (see #2076). 2087 */ 2088 if (tsx->state < PJSIP_TSX_STATE_COMPLETED) { 2089 tsx_cancel_timer(tsx, &tsx->timeout_timer); 2090 tsx_schedule_timer(tsx, &tsx->timeout_timer, &delay, 2091 TRANSPORT_ERR_TIMER); 2092 } 2083 2093 unlock_timer(tsx); 2084 2094 }
Note: See TracChangeset
for help on using the changeset viewer.