Changeset 175 for pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
- Timestamp:
- Feb 10, 2006 2:04:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r169 r175 201 201 *p_dlg = dlg; 202 202 203 204 PJ_LOG(5,(dlg->obj_name, "UAC dialog created")); 205 203 206 return PJ_SUCCESS; 204 207 … … 381 384 /* Done. */ 382 385 *p_dlg = dlg; 386 PJ_LOG(5,(dlg->obj_name, "UAS dialog created")); 383 387 return PJ_SUCCESS; 384 388 … … 496 500 *new_dlg = dlg; 497 501 502 PJ_LOG(5,(dlg->obj_name, "Forked dialog created")); 498 503 return PJ_SUCCESS; 499 504 … … 577 582 * Increment session counter. 578 583 */ 579 PJ_DEF(pj_status_t) pjsip_dlg_inc_session( pjsip_dialog *dlg ) 580 { 581 PJ_ASSERT_RETURN(dlg, PJ_EINVAL); 584 PJ_DEF(pj_status_t) pjsip_dlg_inc_session( pjsip_dialog *dlg, 585 pjsip_module *mod ) 586 { 587 PJ_ASSERT_RETURN(dlg && mod, PJ_EINVAL); 582 588 583 589 pj_mutex_lock(dlg->mutex); … … 585 591 pj_mutex_unlock(dlg->mutex); 586 592 593 PJ_LOG(5,(dlg->obj_name, "Session count inc to %d by %.*s", 594 dlg->sess_count, (int)mod->name.slen, mod->name.ptr)); 595 587 596 return PJ_SUCCESS; 588 597 } … … 591 600 * Decrement session counter. 592 601 */ 593 PJ_DEF(pj_status_t) pjsip_dlg_dec_session( pjsip_dialog *dlg ) 602 PJ_DEF(pj_status_t) pjsip_dlg_dec_session( pjsip_dialog *dlg, 603 pjsip_module *mod) 594 604 { 595 605 pj_status_t status; 596 606 597 607 PJ_ASSERT_RETURN(dlg, PJ_EINVAL); 608 609 PJ_LOG(5,(dlg->obj_name, "Session count dec to %d by %.*s", 610 dlg->sess_count-1, (int)mod->name.slen, mod->name.ptr)); 598 611 599 612 pj_mutex_lock(dlg->mutex); … … 626 639 PJ_EINVAL); 627 640 PJ_ASSERT_RETURN(dlg->usage_cnt < PJSIP_MAX_MODULE, PJ_EBUG); 641 642 PJ_LOG(5,(dlg->obj_name, "Module %.*s added as dialog usage", 643 (int)mod->name.slen, mod->name.ptr)); 628 644 629 645 pj_mutex_lock(dlg->mutex); … … 795 811 PJSIP_ENOTREQUESTMSG); 796 812 813 PJ_LOG(5,(dlg->obj_name, "Sending %s", 814 pjsip_tx_data_get_info(tdata))); 815 797 816 /* Update CSeq */ 798 817 pj_mutex_lock(dlg->mutex); … … 1024 1043 PJ_ASSERT_RETURN(tsx->mod_data[dlg->ua->id] == dlg, PJ_EINVALIDOP); 1025 1044 1045 PJ_LOG(5,(dlg->obj_name, "Sending %s", 1046 pjsip_tx_data_get_info(tdata))); 1047 1026 1048 /* Check that transaction method and cseq match the response. 1027 1049 * This operation is sloooww (search CSeq header twice), that's why … … 1078 1100 pjsip_transaction *tsx = NULL; 1079 1101 unsigned i; 1102 1103 PJ_LOG(5,(dlg->obj_name, "Received %s", 1104 pjsip_rx_data_get_info(rdata))); 1080 1105 1081 1106 /* Lock the dialog. */ … … 1144 1169 int res_code; 1145 1170 1171 PJ_LOG(5,(dlg->obj_name, "Received %s", 1172 pjsip_rx_data_get_info(rdata))); 1173 1146 1174 /* Lock the dialog. */ 1147 1175 pj_mutex_lock(dlg->mutex); … … 1250 1278 unsigned i; 1251 1279 1280 PJ_LOG(5,(dlg->obj_name, "Transaction %s state changed to %s", 1281 tsx->obj_name, pjsip_tsx_state_str(tsx->state))); 1282 1252 1283 /* Lock the dialog. */ 1253 1284 pj_mutex_lock(dlg->mutex);
Note: See TracChangeset
for help on using the changeset viewer.