mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
core framework for reverse media bugs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4105 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -136,6 +136,19 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t
|
||||
*/
|
||||
SWITCH_DECLARE(void *) switch_core_media_bug_get_user_data(switch_media_bug_t *bug);
|
||||
|
||||
/*!
|
||||
\brief Obtain a replace frame from a media bug
|
||||
\param bug the bug to get the data from
|
||||
*/
|
||||
SWITCH_DECLARE(switch_frame_t *) switch_core_media_bug_get_replace_frame(switch_media_bug_t *bug);
|
||||
|
||||
/*!
|
||||
\brief Set a return replace frame
|
||||
\param bug the bug to set the frame on
|
||||
\param frame the frame to set
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_core_media_bug_set_replace_frame(switch_media_bug_t *bug, switch_frame_t *frame);
|
||||
|
||||
/*!
|
||||
\brief Remove a media bug from the session
|
||||
\param session the session to remove the bug from
|
||||
|
||||
@@ -140,6 +140,7 @@ typedef enum {
|
||||
SWITCH_ABC_TYPE_INIT,
|
||||
SWITCH_ABC_TYPE_READ,
|
||||
SWITCH_ABC_TYPE_WRITE,
|
||||
SWITCH_ABC_TYPE_WRITE_REPLACE,
|
||||
SWITCH_ABC_TYPE_CLOSE,
|
||||
} switch_abc_type_t;
|
||||
|
||||
@@ -654,12 +655,14 @@ typedef enum {
|
||||
<pre>
|
||||
SMBF_READ_STREAM - Include the Read Stream
|
||||
SMBF_WRITE_STREAM - Include the Write Stream
|
||||
SMBF_WRITE_STREAM - Replace the Write Stream
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
SMBF_BOTH = 0,
|
||||
SMBF_READ_STREAM = (1 << 0),
|
||||
SMBF_WRITE_STREAM = (1 << 1)
|
||||
SMBF_WRITE_STREAM = (1 << 1),
|
||||
SMBF_WRITE_REPLACE = (1 << 2)
|
||||
} switch_media_bug_flag_t;
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user