Ignore:
Timestamp:
Mar 1, 2006 7:29:10 PM (18 years ago)
Author:
bennylp
Message:

Moved pjsua to pjsip-apps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transaction.c

    r230 r253  
    762762 * Dump transaction layer. 
    763763 */ 
    764 PJ_DEF(void) pjsip_tsx_layer_dump(void) 
     764PJ_DEF(void) pjsip_tsx_layer_dump(pj_bool_t detail) 
    765765{ 
    766766#if PJ_LOG_MAX_LEVEL >= 3 
     
    771771 
    772772    PJ_LOG(3, (THIS_FILE, "Dumping transaction table:")); 
    773  
    774     it = pj_hash_first(mod_tsx_layer.htable, &itbuf); 
    775     if (it == NULL) { 
    776         PJ_LOG(3, (THIS_FILE, " - none - ")); 
    777     } else { 
    778         while (it != NULL) { 
    779             pjsip_transaction *tsx = pj_hash_this( mod_tsx_layer.htable, it); 
    780  
    781             PJ_LOG(3, (THIS_FILE, " %s %s|%d|%s", 
    782                        tsx->obj_name, 
    783                        (tsx->last_tx? pjsip_tx_data_get_info(tsx->last_tx): "none"), 
    784                        tsx->status_code, 
    785                        pjsip_tsx_state_str(tsx->state))); 
    786  
    787             it = pj_hash_next(mod_tsx_layer.htable, it); 
     773    PJ_LOG(3, (THIS_FILE, " Total %d transactions",  
     774                          pj_hash_count(mod_tsx_layer.htable))); 
     775 
     776    if (detail) { 
     777        it = pj_hash_first(mod_tsx_layer.htable, &itbuf); 
     778        if (it == NULL) { 
     779            PJ_LOG(3, (THIS_FILE, " - none - ")); 
     780        } else { 
     781            while (it != NULL) { 
     782                pjsip_transaction *tsx = pj_hash_this(mod_tsx_layer.htable,it); 
     783 
     784                PJ_LOG(3, (THIS_FILE, " %s %s|%d|%s", 
     785                           tsx->obj_name, 
     786                           (tsx->last_tx?  
     787                                pjsip_tx_data_get_info(tsx->last_tx):  
     788                                "none"), 
     789                           tsx->status_code, 
     790                           pjsip_tsx_state_str(tsx->state))); 
     791 
     792                it = pj_hash_next(mod_tsx_layer.htable, it); 
     793            } 
    788794        } 
    789795    } 
Note: See TracChangeset for help on using the changeset viewer.