diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-05-21 18:00:22 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-05-21 18:00:22 +0000 |
commit | 3d63833bd6c869b7efa383e8dea14be1a6eff998 (patch) | |
tree | 34957dd051b8f67c7cc58a510e24ee3873a61ad4 /include/asterisk/abstract_jb.h | |
parent | e1e1cc2deefb92f8b43825f1f34e619354737842 (diff) |
Merge in the bridge_construction branch to make the system use the Bridging API.
Breaks many things until they can be reworked. A partial list:
chan_agent
chan_dahdi, chan_misdn, chan_iax2 native bridging
app_queue
COLP updates
DTMF attended transfers
Protocol attended transfers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/abstract_jb.h')
-rw-r--r-- | include/asterisk/abstract_jb.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/include/asterisk/abstract_jb.h b/include/asterisk/abstract_jb.h index 3e6bedd26..6a4d0610d 100644 --- a/include/asterisk/abstract_jb.h +++ b/include/asterisk/abstract_jb.h @@ -246,6 +246,14 @@ void ast_jb_destroy(struct ast_channel *chan); */ int ast_jb_read_conf(struct ast_jb_conf *conf, const char *varname, const char *value); +/*! + * \since 12.0 + * \brief Sets a jitterbuffer frame hook on the channel based on the channel's stored + * jitterbuffer configuration + * + * \param chan Which channel is being set up + */ +void ast_jb_enable_for_channel(struct ast_channel *chan); /*! * \brief Configures a jitterbuffer on a channel. @@ -257,7 +265,6 @@ int ast_jb_read_conf(struct ast_jb_conf *conf, const char *varname, const char * */ void ast_jb_configure(struct ast_channel *chan, const struct ast_jb_conf *conf); - /*! * \brief Copies a channel's jitterbuffer configuration. * \param chan channel. @@ -274,6 +281,25 @@ void ast_jb_empty_and_reset(struct ast_channel *c0, struct ast_channel *c1); const struct ast_jb_impl *ast_jb_get_impl(enum ast_jb_type type); +/*! + * \since 12 + * \brief Sets the contents of an ast_jb_conf struct to the default jitterbuffer settings + * + * \param conf Which jitterbuffer is being set + */ +void ast_jb_conf_default(struct ast_jb_conf *conf); + +/*! + * \since 12 + * \brief Applies a jitterbuffer framehook to a channel based on a provided jitterbuffer config + * + * \param chan Which channel the jitterbuffer is being set on + * \param jb_conf Configuration to use for the jitterbuffer + * \param prefer_existing If this is true and a jitterbuffer already exists for the channel, + * use the existing jitterbuffer + */ +void ast_jb_create_framehook(struct ast_channel *chan, struct ast_jb_conf *jb_conf, int prefer_existing); + #if defined(__cplusplus) || defined(c_plusplus) } #endif |