Ignore:
Timestamp:
Nov 23, 2007 3:47:50 AM (16 years ago)
Author:
bennylp
Message:

Ticket #424: Added API to retrieve number of transactions and dialogs (thanks Sergey Bakulin)

File:
1 edited

Legend:

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

    r1417 r1594  
    413413 
    414414 
     415/* 
     416 * Retrieve the current number of dialog-set currently registered 
     417 * in the hash table.  
     418 */ 
     419PJ_DEF(unsigned) pjsip_ua_get_dlg_set_count(void) 
     420{ 
     421    unsigned count; 
     422 
     423    PJ_ASSERT_RETURN(mod_ua.endpt, 0); 
     424 
     425    pj_mutex_lock(mod_ua.mutex); 
     426    count = pj_hash_count(mod_ua.dlg_table); 
     427    pj_mutex_unlock(mod_ua.mutex); 
     428 
     429    return count; 
     430} 
     431 
     432 
    415433/*  
    416434 * Find a dialog. 
Note: See TracChangeset for help on using the changeset viewer.