Ignore:
Timestamp:
Apr 2, 2007 8:43:06 PM (17 years ago)
Author:
bennylp
Message:

Added pjsua_dump(), and fix STUN DNS SRV resolution error in pjsua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r1127 r1135  
    13181318static void app_dump(pj_bool_t detail) 
    13191319{ 
    1320     unsigned old_decor; 
    1321     char buf[1024]; 
    1322  
    1323     PJ_LOG(3,(THIS_FILE, "Start dumping application states:")); 
    1324  
    1325     old_decor = pj_log_get_decor(); 
    1326     pj_log_set_decor(old_decor & (PJ_LOG_HAS_NEWLINE | PJ_LOG_HAS_CR)); 
    1327  
    1328     if (detail) 
    1329         pj_dump_config(); 
    1330  
    1331     pjsip_endpt_dump(pjsua_get_pjsip_endpt(), detail); 
    1332     pjmedia_endpt_dump(pjsua_get_pjmedia_endpt()); 
    1333     pjsip_tsx_layer_dump(detail); 
    1334     pjsip_ua_dump(detail); 
    1335  
    1336  
    1337     /* Dump all invite sessions: */ 
    1338     PJ_LOG(3,(THIS_FILE, "Dumping invite sessions:")); 
    1339  
    1340     if (pjsua_call_get_count() == 0) { 
    1341  
    1342         PJ_LOG(3,(THIS_FILE, "  - no sessions -")); 
    1343  
    1344     } else { 
    1345         unsigned i; 
    1346  
    1347         for (i=0; i<app_config.cfg.max_calls; ++i) { 
    1348             if (pjsua_call_is_active(i)) { 
    1349                 pjsua_call_dump(i, detail, buf, sizeof(buf), "  "); 
    1350                 PJ_LOG(3,(THIS_FILE, "%s", buf)); 
    1351             } 
    1352         } 
    1353     } 
    1354  
    1355     /* Dump presence status */ 
    1356     pjsua_pres_dump(detail); 
    1357  
    1358     pj_log_set_decor(old_decor); 
    1359     PJ_LOG(3,(THIS_FILE, "Dump complete")); 
     1320    pjsua_dump(detail); 
    13601321} 
    13611322 
Note: See TracChangeset for help on using the changeset viewer.