Changeset 255
- Timestamp:
- Mar 1, 2006 8:46:13 PM (19 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r253 r255 357 357 * Terminate all calls. 358 358 */ 359 void pjsua_ inv_shutdown(void);359 void pjsua_call_hangup_all(void); 360 360 361 361 … … 402 402 * Dump presence subscriptions. 403 403 */ 404 void pjsua_pres_dump( void);404 void pjsua_pres_dump(pj_bool_t detail); 405 405 406 406 … … 461 461 * Dump application states. 462 462 */ 463 void pjsua_dump( void);463 void pjsua_dump(pj_bool_t detail); 464 464 465 465 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r241 r255 1049 1049 * Terminate all calls. 1050 1050 */ 1051 void pjsua_ inv_shutdown()1051 void pjsua_call_hangup_all() 1052 1052 { 1053 1053 int i; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r253 r255 868 868 869 869 /* Terminate all calls. */ 870 pjsua_ inv_shutdown();870 pjsua_call_hangup_all(); 871 871 872 872 /* Terminate all presence subscriptions. */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_opt.c
r253 r255 577 577 * Dump application states. 578 578 */ 579 void pjsua_dump( void)579 void pjsua_dump(pj_bool_t detail) 580 580 { 581 581 char buf[128]; … … 587 587 pj_log_set_decor(old_decor & (PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_CR)); 588 588 589 pjsip_endpt_dump(pjsua.endpt, 1);589 pjsip_endpt_dump(pjsua.endpt, detail); 590 590 pjmedia_endpt_dump(pjsua.med_endpt); 591 pjsip_tsx_layer_dump( 1);592 pjsip_ua_dump( 1);591 pjsip_tsx_layer_dump(detail); 592 pjsip_ua_dump(detail); 593 593 594 594 595 595 /* Dump all invite sessions: */ 596 PJ_LOG(3,(THIS_FILE, "Dumping invite sessions:")); 597 598 if (pjsua.call_cnt == 0) { 599 600 PJ_LOG(3,(THIS_FILE, " - no sessions -")); 601 602 } else { 603 int i; 604 605 for (i=0; i<pjsua.max_calls; ++i) { 606 607 if (pjsua.calls[i].inv == NULL) 608 continue; 609 610 print_call(" ", i, buf, sizeof(buf)); 611 PJ_LOG(3,(THIS_FILE, "%s", buf)); 612 613 if (pjsua.calls[i].session) 614 dump_media_session(pjsua.calls[i].session); 596 if (detail) { 597 PJ_LOG(3,(THIS_FILE, "Dumping invite sessions:")); 598 599 if (pjsua.call_cnt == 0) { 600 601 PJ_LOG(3,(THIS_FILE, " - no sessions -")); 602 603 } else { 604 int i; 605 606 for (i=0; i<pjsua.max_calls; ++i) { 607 608 if (pjsua.calls[i].inv == NULL) 609 continue; 610 611 print_call(" ", i, buf, sizeof(buf)); 612 PJ_LOG(3,(THIS_FILE, "%s", buf)); 613 614 if (pjsua.calls[i].session) 615 dump_media_session(pjsua.calls[i].session); 616 } 615 617 } 616 618 } 617 619 618 620 /* Dump presence status */ 619 pjsua_pres_dump( );621 pjsua_pres_dump(detail); 620 622 621 623 pj_log_set_decor(old_decor); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r238 r255 455 455 * Dump presence status. 456 456 */ 457 void pjsua_pres_dump( void)457 void pjsua_pres_dump(pj_bool_t detail) 458 458 { 459 459 int acc_index; 460 460 int i; 461 461 462 463 /* 464 * When no detail is required, just dump number of server and client 465 * subscriptions. 466 */ 467 if (detail == PJ_FALSE) { 468 469 int count = 0; 470 471 for (acc_index=0; acc_index < pjsua.acc_cnt; ++acc_index) { 472 473 if (!pj_list_empty(&pjsua.acc[acc_index].pres_srv_list)) { 474 struct pjsua_srv_pres *uapres; 475 476 uapres = pjsua.acc[acc_index].pres_srv_list.next; 477 while (uapres != &pjsua.acc[acc_index].pres_srv_list) { 478 ++count; 479 uapres = uapres->next; 480 } 481 } 482 } 483 484 PJ_LOG(3,(THIS_FILE, "Number of server/UAS subscriptions: %d", 485 count)); 486 487 count = 0; 488 489 for (i=0; i<pjsua.buddy_cnt; ++i) { 490 if (pjsua.buddies[i].sub) { 491 ++count; 492 } 493 } 494 495 PJ_LOG(3,(THIS_FILE, "Number of client/UAC subscriptions: %d", 496 count)); 497 return; 498 } 499 500 501 /* 502 * Dumping all server (UAS) subscriptions 503 */ 462 504 PJ_LOG(3,(THIS_FILE, "Dumping pjsua server subscriptions:")); 505 463 506 for (acc_index=0; acc_index < pjsua.acc_cnt; ++acc_index) { 464 507 … … 468 511 469 512 if (pj_list_empty(&pjsua.acc[acc_index].pres_srv_list)) { 513 470 514 PJ_LOG(3,(THIS_FILE, " - none - ")); 515 471 516 } else { 472 517 struct pjsua_srv_pres *uapres; … … 484 529 } 485 530 531 /* 532 * Dumping all client (UAC) subscriptions 533 */ 486 534 PJ_LOG(3,(THIS_FILE, "Dumping pjsua client subscriptions:")); 535 487 536 if (pjsua.buddy_cnt == 0) { 537 488 538 PJ_LOG(3,(THIS_FILE, " - no buddy list - ")); 539 489 540 } else { 490 541 for (i=0; i<pjsua.buddy_cnt; ++i) {
Note: See TracChangeset
for help on using the changeset viewer.