Changeset 3753 for pjproject/trunk/pjnath/src/pjnath/ice_strans.c
- Timestamp:
- Sep 18, 2011 2:59:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r3553 r3753 406 406 comp_id)); 407 407 408 pj_log_push_indent(); 409 408 410 /* Start Binding resolution */ 409 411 status = pj_stun_sock_start(comp->stun_sock, … … 413 415 if (status != PJ_SUCCESS) { 414 416 ///sess_dec_ref(ice_st); 417 pj_log_pop_indent(); 415 418 return status; 416 419 } … … 420 423 if (status != PJ_SUCCESS) { 421 424 ///sess_dec_ref(ice_st); 425 pj_log_pop_indent(); 422 426 return status; 423 427 } … … 438 442 comp->default_cand = cand - comp->cand_list; 439 443 444 pj_log_pop_indent(); 440 445 } 441 446 … … 537 542 "Creating ICE stream transport with %d component(s)", 538 543 comp_cnt)); 544 pj_log_push_indent(); 539 545 540 546 pj_ice_strans_cfg_copy(pool, &ice_st->cfg, cfg); … … 551 557 if (status != PJ_SUCCESS) { 552 558 destroy_ice_st(ice_st); 559 pj_log_pop_indent(); 553 560 return status; 554 561 } … … 571 578 pj_lock_release(ice_st->init_lock); 572 579 destroy_ice_st(ice_st); 580 pj_log_pop_indent(); 573 581 return status; 574 582 } … … 584 592 585 593 *p_ice_st = ice_st; 594 pj_log_pop_indent(); 595 586 596 return PJ_SUCCESS; 587 597 } … … 591 601 { 592 602 unsigned i; 603 604 PJ_LOG(5,(ice_st->obj_name, "ICE stream transport destroying..")); 605 pj_log_push_indent(); 593 606 594 607 /* Destroy ICE if we have ICE */ … … 630 643 } 631 644 645 PJ_LOG(4,(ice_st->obj_name, "ICE stream transport destroyed")); 646 632 647 /* Done */ 633 648 pj_pool_release(ice_st->pool); 649 pj_log_pop_indent(); 634 650 } 635 651 … … 665 681 pj_strerror(status, errmsg, sizeof(errmsg)); 666 682 PJ_LOG(4,(ice_st->obj_name, "%s: %s", title, errmsg)); 667 668 if (op==PJ_ICE_STRANS_OP_INIT && ice_st->cb_called) 683 pj_log_push_indent(); 684 685 if (op==PJ_ICE_STRANS_OP_INIT && ice_st->cb_called) { 686 pj_log_pop_indent(); 669 687 return; 688 } 670 689 671 690 ice_st->cb_called = PJ_TRUE; … … 673 692 if (ice_st->cb.on_ice_complete) 674 693 (*ice_st->cb.on_ice_complete)(ice_st, op, status); 694 695 pj_log_pop_indent(); 675 696 } 676 697 … … 710 731 PJ_DEF(pj_status_t) pj_ice_strans_destroy(pj_ice_strans *ice_st) 711 732 { 712 char obj_name[PJ_MAX_OBJ_NAME];713 714 733 PJ_ASSERT_RETURN(ice_st, PJ_EINVAL); 715 734 … … 721 740 } 722 741 723 pj_memcpy(obj_name, ice_st->obj_name, PJ_MAX_OBJ_NAME);724 742 destroy_ice_st(ice_st); 725 726 PJ_LOG(4,(obj_name, "ICE stream transport destroyed"));727 743 return PJ_SUCCESS; 728 744 } … … 1295 1311 PJ_ICE_STRANS_STATE_FAILED; 1296 1312 1313 pj_log_push_indent(); 1297 1314 (*ice_st->cb.on_ice_complete)(ice_st, PJ_ICE_STRANS_OP_NEGOTIATION, 1298 1315 status); 1299 1316 pj_log_pop_indent(); 1300 1317 1301 1318 } … … 1616 1633 PJ_LOG(5,(comp->ice_st->obj_name, "TURN client state changed %s --> %s", 1617 1634 pj_turn_state_name(old_state), pj_turn_state_name(new_state))); 1635 pj_log_push_indent(); 1618 1636 1619 1637 sess_add_ref(comp->ice_st); … … 1691 1709 1692 1710 sess_dec_ref(comp->ice_st); 1693 } 1694 1711 1712 pj_log_pop_indent(); 1713 } 1714
Note: See TracChangeset
for help on using the changeset viewer.