Changeset 1660
- Timestamp:
- Jan 3, 2008 6:50:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/symbian_ua/ua.cpp
r1648 r1660 22 22 23 23 #define THIS_FILE "symbian_ua.cpp" 24 #define LOG_LEVEL 424 #define LOG_LEVEL 3 25 25 26 26 // … … 33 33 // Destination URI (to make call, or to subscribe presence) 34 34 // 35 #define SIP_DST_URI "sip: 192.168.0.13"35 #define SIP_DST_URI "sip:user@192.168.0.11" 36 36 37 37 // … … 39 39 // 40 40 #define HAS_SIP_ACCOUNT 0 // 0 to disable registration 41 #define SIP_DOMAIN " server"42 #define SIP_USER "user "41 #define SIP_DOMAIN "domain" 42 #define SIP_USER "username" 43 43 #define SIP_PASSWD "password" 44 44 … … 55 55 // 56 56 #define NAMESERVER NULL 57 //#define NAMESERVER " 62.241.163.201"57 //#define NAMESERVER "192.168.0.1" 58 58 59 59 // 60 60 // STUN server 61 #if 161 #if 0 62 62 // Use this to have the STUN server resolved normally 63 63 # define STUN_DOMAIN NULL 64 # define STUN_SERVER "stun. fwdnet.net"64 # define STUN_SERVER "stun.xten.com" 65 65 #elif 0 66 66 // Use this to have the STUN server resolved with DNS SRV … … 559 559 af = pj_AF_INET(); 560 560 561 #if 0 562 pj_in_addr in_addr; 563 pj_str_t aa = pj_str("1.1.1.1"); 564 in_addr = pj_inet_addr(&aa); 565 char *the_addr = pj_inet_ntoa(in_addr); 566 PJ_LOG(3,(THIS_FILE, "IP addr=%s", the_addr)); 567 568 aa = pj_str("192.168.0.15"); 569 in_addr = pj_inet_addr(&aa); 570 the_addr = pj_inet_ntoa(in_addr); 571 PJ_LOG(3,(THIS_FILE, "IP addr=%s", the_addr)); 572 573 aa = pj_str("2.2.2.2"); 574 in_addr = pj_inet_addr(&aa); 575 the_addr = pj_inet_ntoa(in_addr); 576 PJ_LOG(3,(THIS_FILE, "IP addr=%s", the_addr)); 577 578 return -1; 579 #endif 580 561 581 // Hostname 562 582 hostname = pj_gethostname(); … … 686 706 delete con; 687 707 delete asw; 688 708 709 // Dump memory statistics 710 PJ_LOG(3,(THIS_FILE, "Max heap usage: %u.%03uMB", 711 pjsua_var.cp.peak_used_size / 1000000, 712 (pjsua_var.cp.peak_used_size % 1000000)/1000)); 713 714 // check max stack usage 715 #if defined(PJ_OS_HAS_CHECK_STACK) && PJ_OS_HAS_CHECK_STACK!=0 716 pj_thread_t* this_thread = pj_thread_this(); 717 if (!this_thread) 718 return status; 719 720 const char* max_stack_file; 721 int max_stack_line; 722 status = pj_thread_get_stack_info(this_thread, &max_stack_file, &max_stack_line); 723 724 PJ_LOG(3,(THIS_FILE, "Max stack usage: %u at %s:%d", 725 pj_thread_get_stack_max_usage(this_thread), 726 max_stack_file, max_stack_line)); 727 #endif 728 689 729 // Shutdown pjsua 690 730 pjsua_destroy();
Note: See TracChangeset
for help on using the changeset viewer.