Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
4f90f8d0
提交
4f90f8d0
authored
7月 12, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
supress overly chatty err msg
上级
80d3cbcc
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
12 行增加
和
8 行删除
+12
-8
mod_sofia.h
src/mod/endpoints/mod_sofia/mod_sofia.h
+2
-2
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+10
-6
没有找到文件。
src/mod/endpoints/mod_sofia/mod_sofia.h
浏览文件 @
4f90f8d0
...
@@ -317,8 +317,8 @@ typedef enum {
...
@@ -317,8 +317,8 @@ typedef enum {
TFLAG_MAX
TFLAG_MAX
}
TFLAGS
;
}
TFLAGS
;
#define SOFIA_MAX_MSG_QUEUE 2
50
#define SOFIA_MAX_MSG_QUEUE 2
6
#define SOFIA_MSG_QUEUE_SIZE
5
0
#define SOFIA_MSG_QUEUE_SIZE
2
0
struct
mod_sofia_globals
{
struct
mod_sofia_globals
{
switch_memory_pool_t
*
pool
;
switch_memory_pool_t
*
pool
;
...
...
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
4f90f8d0
...
@@ -859,7 +859,7 @@ static void our_sofia_event_callback(nua_event_t event,
...
@@ -859,7 +859,7 @@ static void our_sofia_event_callback(nua_event_t event,
if
(
sess_count
>=
sess_max
||
!
sofia_test_pflag
(
profile
,
PFLAG_RUNNING
)
||
!
switch_core_ready
())
{
if
(
sess_count
>=
sess_max
||
!
sofia_test_pflag
(
profile
,
PFLAG_RUNNING
)
||
!
switch_core_ready
())
{
nua_respond
(
nh
,
503
,
"Maximum Calls In Progress"
,
SIPTAG_RETRY_AFTER_STR
(
"300"
),
TAG_END
());
nua_respond
(
nh
,
503
,
"Maximum Calls In Progress"
,
SIPTAG_RETRY_AFTER_STR
(
"300"
),
TAG_END
());
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "No more sessions allowed at this time.\n");
//
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "No more sessions allowed at this time.\n");
goto
done
;
goto
done
;
}
}
...
@@ -3575,11 +3575,15 @@ switch_status_t config_sofia(int reload, char *profile_name)
...
@@ -3575,11 +3575,15 @@ switch_status_t config_sofia(int reload, char *profile_name)
}
else
if
(
!
strcasecmp
(
var
,
"message-threads"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"message-threads"
))
{
int
num
=
atoi
(
val
);
int
num
=
atoi
(
val
);
if (num < 1 || num >= SOFIA_MAX_MSG_QUEUE) {
if
(
num
<
1
||
num
>
SOFIA_MAX_MSG_QUEUE
-
1
)
{
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "message-threads must be between 1 and %d", SOFIA_MAX_MSG_QUEUE);
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_WARNING
,
"message-threads must be between 1 and %d"
,
SOFIA_MAX_MSG_QUEUE
-
1
);
} else {
}
sofia_msg_thread_start(num);
}
if
(
num
<
1
)
num
=
1
;
if
(
num
>
SOFIA_MAX_MSG_QUEUE
-
1
)
num
=
SOFIA_MAX_MSG_QUEUE
-
1
;
sofia_msg_thread_start
(
num
);
}
else
if
(
!
strcasecmp
(
var
,
"disable-hold"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"disable-hold"
))
{
if
(
switch_true
(
val
))
{
if
(
switch_true
(
val
))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论