Changeset 5576
- Timestamp:
- Mar 31, 2017 9:52:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_timer.c
r5557 r5576 334 334 pj_status_t status; 335 335 pj_bool_t as_refresher; 336 int entry_id; 337 char obj_name[PJ_MAX_OBJ_NAME]; 336 338 337 339 pj_assert(inv); … … 345 347 as_refresher = 346 348 (inv->timer->refresher == TR_UAC && inv->timer->role == PJSIP_ROLE_UAC) || 347 (inv->timer->refresher == TR_UAS && inv->timer->role == PJSIP_ROLE_UAS); 349 (inv->timer->refresher == TR_UAS && inv->timer->role == PJSIP_ROLE_UAS); 350 351 entry_id = entry->id; 352 pj_ansi_strncpy(obj_name, inv->pool->obj_name, PJ_MAX_OBJ_NAME); 348 353 349 354 /* Do action based on role(refresher or refreshee). … … 354 359 * - end session if there is no refresh request received. 355 360 */ 356 if (as_refresher && (entry ->id != REFRESHER_EXPIRE_TIMER_ID)) {361 if (as_refresher && (entry_id != REFRESHER_EXPIRE_TIMER_ID)) { 357 362 pj_time_val now; 358 363 … … 415 420 416 421 pj_gettimeofday(&now); 417 PJ_LOG(4, ( inv->pool->obj_name,422 PJ_LOG(4, (obj_name, 418 423 "Refreshing session after %ds (expiration period=%ds)", 419 424 (now.sec-inv->timer->last_refresh.sec), … … 433 438 434 439 pj_gettimeofday(&now); 435 PJ_LOG(3, ( inv->pool->obj_name,440 PJ_LOG(3, (obj_name, 436 441 "No session %s received after %ds " 437 442 "(expiration period=%ds), stopping session now!", … … 452 457 } 453 458 459 /* 460 * At this point, dialog might have already been destroyed, 461 * including its pool used by the invite session. 462 */ 463 454 464 /* Print error message, if any */ 455 465 if (status != PJ_SUCCESS) { 456 PJ_PERROR(2, ( inv->pool->obj_name, status,466 PJ_PERROR(2, (obj_name, status, 457 467 "Error in %s session timer", 458 ((as_refresher && entry ->id != REFRESHER_EXPIRE_TIMER_ID)?468 ((as_refresher && entry_id != REFRESHER_EXPIRE_TIMER_ID)? 459 469 "refreshing" : "terminating"))); 460 470 }
Note: See TracChangeset
for help on using the changeset viewer.