Changeset 4969
- Timestamp:
- Dec 19, 2014 2:22:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub.c
r4747 r4969 235 235 int pending_tsx; /**< Number of pending transactions.*/ 236 236 pjsip_transaction *pending_sub; /**< Pending UAC SUBSCRIBE tsx. */ 237 pj_timer_entry *pending_sub_timer; /**< Stop pending sub timer. */ 237 238 238 239 void *mod_data[PJSIP_MAX_MODULE]; /**< Module data. */ … … 535 536 /* Kill timer */ 536 537 set_timer(sub, TIMER_TYPE_NONE, 0); 538 539 /* Kill timer for stopping pending sub (see ticket #1807) */ 540 if (sub->pending_sub_timer && sub->pending_sub_timer->id == 1) { 541 pjsip_endpt_cancel_timer(sub->endpt, sub->pending_sub_timer); 542 sub->pending_sub_timer->id = 0; 543 sub->pending_sub_timer = NULL; 544 } 537 545 538 546 /* Remove this session from dialog's list of subscription */ … … 1349 1357 1350 1358 PJ_UNUSED_ARG(timer_heap); 1359 1360 /* Clear timer ID */ 1361 entry->id = 0; 1351 1362 1352 1363 key = (pj_str_t*)entry->user_data; … … 1571 1582 timer->cb = &terminate_timer_cb; 1572 1583 timer->user_data = key; 1584 timer->id = 1; 1585 sub->pending_sub_timer = timer; 1573 1586 1574 1587 pjsip_endpt_schedule_timer(dlg->endpt, timer, &timeout);
Note: See TracChangeset
for help on using the changeset viewer.