mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Resolve some BUGBUG comments.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396783 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -594,8 +594,10 @@ static void softmix_bridge_write_voice(struct ast_bridge *bridge, struct ast_bri
|
|||||||
*/
|
*/
|
||||||
static int softmix_bridge_write_control(struct ast_bridge *bridge, struct ast_bridge_channel *bridge_channel, struct ast_frame *frame)
|
static int softmix_bridge_write_control(struct ast_bridge *bridge, struct ast_bridge_channel *bridge_channel, struct ast_frame *frame)
|
||||||
{
|
{
|
||||||
/* BUGBUG need to look at channel roles to determine what to do with control frame. */
|
/*
|
||||||
/*! \todo BUGBUG softmix_bridge_write_control() not written */
|
* XXX Softmix needs to use channel roles to determine what to
|
||||||
|
* do with control frames.
|
||||||
|
*/
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -622,6 +624,11 @@ static int softmix_bridge_write(struct ast_bridge *bridge, struct ast_bridge_cha
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* XXX Softmix needs to use channel roles to determine who gets
|
||||||
|
* what frame. Possible roles: announcer, recorder, agent,
|
||||||
|
* supervisor.
|
||||||
|
*/
|
||||||
switch (frame->frametype) {
|
switch (frame->frametype) {
|
||||||
case AST_FRAME_NULL:
|
case AST_FRAME_NULL:
|
||||||
/* "Accept" the frame and discard it. */
|
/* "Accept" the frame and discard it. */
|
||||||
@@ -820,6 +827,10 @@ static int softmix_mixing_loop(struct ast_bridge *bridge)
|
|||||||
goto softmix_cleanup;
|
goto softmix_cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* XXX Softmix needs to use channel roles to determine who gets
|
||||||
|
* what audio mixed.
|
||||||
|
*/
|
||||||
while (!softmix_data->stop && bridge->num_active) {
|
while (!softmix_data->stop && bridge->num_active) {
|
||||||
struct ast_bridge_channel *bridge_channel;
|
struct ast_bridge_channel *bridge_channel;
|
||||||
int timeout = -1;
|
int timeout = -1;
|
||||||
|
@@ -733,7 +733,6 @@ enum ast_bridge_optimization ast_bridges_allow_optimization(struct ast_bridge *c
|
|||||||
* \retval -1 on error.
|
* \retval -1 on error.
|
||||||
*
|
*
|
||||||
* \note This API call is meant for internal bridging operations.
|
* \note This API call is meant for internal bridging operations.
|
||||||
* \note BUGBUG This may get moved.
|
|
||||||
*/
|
*/
|
||||||
int ast_bridge_queue_action(struct ast_bridge *bridge, struct ast_frame *action);
|
int ast_bridge_queue_action(struct ast_bridge *bridge, struct ast_frame *action);
|
||||||
|
|
||||||
|
@@ -2682,7 +2682,11 @@ void ast_bridge_technology_suspend(struct ast_bridge_technology *technology)
|
|||||||
|
|
||||||
void ast_bridge_technology_unsuspend(struct ast_bridge_technology *technology)
|
void ast_bridge_technology_unsuspend(struct ast_bridge_technology *technology)
|
||||||
{
|
{
|
||||||
/* BUGBUG unsuspending a bridge technology probably needs to prod all existing bridges to see if they should start using it. */
|
/*
|
||||||
|
* XXX We may want the act of unsuspending a bridge technology
|
||||||
|
* to prod all existing bridges to see if they should start
|
||||||
|
* using it.
|
||||||
|
*/
|
||||||
technology->suspended = 0;
|
technology->suspended = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1068,7 +1068,6 @@ int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer, struct a
|
|||||||
|
|
||||||
ast_bridge_features_cleanup(&chan_features);
|
ast_bridge_features_cleanup(&chan_features);
|
||||||
|
|
||||||
/* BUGBUG this is used by Dial and FollowMe for CDR information. By Queue for Queue stats like CDRs. */
|
|
||||||
if (res && config->end_bridge_callback) {
|
if (res && config->end_bridge_callback) {
|
||||||
config->end_bridge_callback(config->end_bridge_callback_data);
|
config->end_bridge_callback(config->end_bridge_callback_data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user