diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-11-23 03:47:50 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-11-23 03:47:50 +0000 |
commit | c0632bb3950869b6e77bd3a84486ada7f6b1f33d (patch) | |
tree | 1f032072bad2d7cc3b252c3315dfc35cfdd11b9a /pjsip/include | |
parent | b937bb4be79174728bd73af4f48a98af9e382061 (diff) |
Ticket #424: Added API to retrieve number of transactions and dialogs (thanks Sergey Bakulin)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1594 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_transaction.h | 8 | ||||
-rw-r--r-- | pjsip/include/pjsip/sip_ua_layer.h | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_transaction.h b/pjsip/include/pjsip/sip_transaction.h index f47005e3..9550c32a 100644 --- a/pjsip/include/pjsip/sip_transaction.h +++ b/pjsip/include/pjsip/sip_transaction.h @@ -159,6 +159,14 @@ PJ_DECL(pjsip_module*) pjsip_tsx_layer_instance(void); PJ_DECL(pj_status_t) pjsip_tsx_layer_destroy(void); /** + * Retrieve the current number of transactions currently registered + * in the hash table. + * + * @return Number of transactions. + */ +PJ_DECL(unsigned) pjsip_tsx_layer_get_tsx_count(void); + +/** * Find a transaction with the specified key. The transaction key normally * is created by calling #pjsip_tsx_create_key() from an incoming message. * diff --git a/pjsip/include/pjsip/sip_ua_layer.h b/pjsip/include/pjsip/sip_ua_layer.h index 67d3e644..19852777 100644 --- a/pjsip/include/pjsip/sip_ua_layer.h +++ b/pjsip/include/pjsip/sip_ua_layer.h @@ -81,6 +81,19 @@ PJ_DECL(pjsip_user_agent*) pjsip_ua_instance(void); /** + * Retrieve the current number of dialog-set currently registered + * in the hash table. Note that dialog-set is different than dialog + * when the request forks. In this case, all dialogs created from + * the original request will belong to the same dialog set. When + * no forking occurs, the number of dialog sets will be equal to + * the number of dialogs. + * + * @return Number of dialog sets. + */ +PJ_DECL(pj_uint32_t) pjsip_ua_get_dlg_set_count(void); + + +/** * Find a dialog with the specified Call-ID and tags properties. This * function may optionally lock the matching dialog instance before * returning it back to the caller. |