mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-20 18:24:13 +00:00
add cumulative count of sessions from switch startup. Resolves http://jira.freeswitch.org/browse/FSCORE-18. Updated patch to change data type of session_id to avoid rollover (wouldn't that be nice) and added - 1 to accurately reflect count. Thanks bkw for the patch.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4999 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
ca464fd296
commit
d6fdf60fd6
4 files changed
+15
-2
No files matched your search
@@ -441,6 +441,12 @@ SWITCH_DECLARE(void) switch_core_session_destroy(switch_core_session_t **session
|
||||
*/
|
||||
SWITCH_DECLARE(uint32_t) switch_core_session_count(void);
|
||||
|
||||
/*!
|
||||
\brief Provide the current session_id
|
||||
\return the total number of allocated sessions since core startup
|
||||
*/
|
||||
SWITCH_DECLARE(switch_size_t) switch_core_session_id(void);
|
||||
|
||||
/*!
|
||||
\brief Allocate and return a new session from the core based on a given endpoint module name
|
||||
\param endpoint_name the name of the endpoint module
|
||||
|
||||
Reference in new issue
Block a user