Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
431d7d97
提交
431d7d97
authored
5月 27, 2014
作者:
Travis Cross
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mod_fifo: Document effect of fifo strategy and importance
上级
96012ffb
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
27 行增加
和
0 行删除
+27
-0
mod_fifo.c
src/mod/applications/mod_fifo/mod_fifo.c
+27
-0
没有找到文件。
src/mod/applications/mod_fifo/mod_fifo.c
浏览文件 @
431d7d97
...
@@ -2983,6 +2983,33 @@ SWITCH_STANDARD_APP(fifo_function)
...
@@ -2983,6 +2983,33 @@ SWITCH_STANDARD_APP(fifo_function)
}
}
}
}
/* Before we can pick a caller we have to decide on a fifo
node to service if the consumer can service more than
one.
If all fifos have an importance of zero, we'll find the
first node that wins based on the chosen strategy.
The `waiting_longer` strategy will choose the node that
hasn't been empty for the longest time.
The `more_ppl` strategy will choose the node that has
the most people waiting.
If a node has an importance value set, it will cause us
to ignore later nodes with equivalent or lower
importance values. This means that a node with the
same importance that would otherwise win based on the
strategy will not be considered at all if it comes
later in the list. Note also that the high importance
node may still lose if a considered fifo earlier in the
list beats it per the strategy.
Note that when the consumer has been delivered by an
outbound strategy there will only be one fifo node
passed to us, so neither the importance nor the
strategy here will have any effect.
*/
for
(
i
=
0
;
i
<
node_count
;
i
++
)
{
for
(
i
=
0
;
i
<
node_count
;
i
++
)
{
if
(
!
(
node
=
node_list
[
i
]))
{
if
(
!
(
node
=
node_list
[
i
]))
{
continue
;
continue
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论