mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-12-02 07:24:51 +00:00
add session heartbeat feature
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9882 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1d9f205098
commit
fc0c89c642
7 files changed
+76
No files matched your search
@@ -146,6 +146,8 @@ struct switch_core_session {
|
||||
uint8_t raw_read_buf[SWITCH_RECOMMENDED_BUFFER_SIZE];
|
||||
uint8_t enc_read_buf[SWITCH_RECOMMENDED_BUFFER_SIZE];
|
||||
switch_codec_t bug_codec;
|
||||
uint32_t read_frame_count;
|
||||
uint32_t track_duration;
|
||||
};
|
||||
|
||||
struct switch_media_bug {
|
||||
|
||||
@@ -119,6 +119,9 @@ struct switch_core_port_allocator;
|
||||
///\{
|
||||
|
||||
|
||||
SWITCH_DECLARE(void) switch_core_session_enable_heartbeat(switch_core_session_t *session, uint32_t seconds);
|
||||
SWITCH_DECLARE(void) switch_core_session_disable_heartbeat(switch_core_session_t *session);
|
||||
|
||||
/*!
|
||||
\brief Add a media bug to the session
|
||||
\param session the session to add the bug to
|
||||
|
||||
@@ -110,6 +110,7 @@ SWITCH_BEGIN_EXTERN_C
|
||||
#define SWITCH_PATH_SEPARATOR "/"
|
||||
#endif
|
||||
#define SWITCH_URL_SEPARATOR "://"
|
||||
#define SWITCH_ENABLE_HEARTBEAT_EVENTS_VARIABLE "enable_heartbeat_events"
|
||||
#define SWITCH_BYPASS_MEDIA_AFTER_BRIDGE_VARIABLE "bypass_media_after_bridge"
|
||||
#define SWITCH_READ_RESULT_VARIABLE "read_result"
|
||||
#define SWITCH_COPY_XML_CDR_VARIABLE "copy_xml_cdr"
|
||||
@@ -1133,6 +1134,7 @@ typedef enum {
|
||||
SWITCH_EVENT_CHANNEL_DATA,
|
||||
SWITCH_EVENT_GENERAL,
|
||||
SWITCH_EVENT_COMMAND,
|
||||
SWITCH_EVENT_SESSION_HEARTBEAT,
|
||||
SWITCH_EVENT_ALL
|
||||
} switch_event_types_t;
|
||||
|
||||
|
||||
Reference in new issue
Block a user