Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
84563902
提交
84563902
authored
4月 20, 2012
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-4122
上级
b453c2fd
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
15 行删除
+9
-15
sofia.c
src/mod/endpoints/mod_sofia/sofia.c
+7
-7
switch_rtp.c
src/switch_rtp.c
+2
-8
没有找到文件。
src/mod/endpoints/mod_sofia/sofia.c
浏览文件 @
84563902
...
@@ -2957,7 +2957,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
...
@@ -2957,7 +2957,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
}
else
{
}
else
{
sofia_clear_pflag
(
profile
,
PFLAG_PASS_CALLEE_ID
);
sofia_clear_pflag
(
profile
,
PFLAG_PASS_CALLEE_ID
);
}
}
}
else
if
(
!
strcasecmp
(
var
,
"rtp-digit-
timeout
"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"rtp-digit-
delay
"
))
{
int
delay
=
val
?
atoi
(
val
)
:
0
;
int
delay
=
val
?
atoi
(
val
)
:
0
;
if
(
delay
<
0
)
delay
=
0
;
if
(
delay
<
0
)
delay
=
0
;
...
@@ -3747,6 +3747,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
...
@@ -3747,6 +3747,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
switch_thread_rwlock_create
(
&
profile
->
rwlock
,
profile
->
pool
);
switch_thread_rwlock_create
(
&
profile
->
rwlock
,
profile
->
pool
);
switch_mutex_init
(
&
profile
->
flag_mutex
,
SWITCH_MUTEX_NESTED
,
profile
->
pool
);
switch_mutex_init
(
&
profile
->
flag_mutex
,
SWITCH_MUTEX_NESTED
,
profile
->
pool
);
profile
->
dtmf_duration
=
100
;
profile
->
dtmf_duration
=
100
;
profile
->
rtp_digit_delay
=
40
;
profile
->
sip_force_expires
=
0
;
profile
->
sip_force_expires
=
0
;
profile
->
sip_expires_max_deviation
=
0
;
profile
->
sip_expires_max_deviation
=
0
;
profile
->
tls_version
=
0
;
profile
->
tls_version
=
0
;
...
@@ -3845,13 +3846,12 @@ switch_status_t config_sofia(int reload, char *profile_name)
...
@@ -3845,13 +3846,12 @@ switch_status_t config_sofia(int reload, char *profile_name)
}
else
{
}
else
{
sofia_clear_pflag
(
profile
,
PFLAG_LIBERAL_DTMF
);
sofia_clear_pflag
(
profile
,
PFLAG_LIBERAL_DTMF
);
}
}
}
else
if
(
!
strcasecmp
(
var
,
"rtp-digit-
timeout
"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"rtp-digit-
delay
"
))
{
int
delay
=
val
?
atoi
(
val
)
:
0
;
int
delay
=
atoi
(
val
)
;
if
(
delay
<
0
)
{
if
(
delay
<
0
)
delay
=
0
;
delay
=
0
;
}
profile
->
rtp_digit_delay
=
(
uint32_t
)
delay
;
profile
->
rtp_digit_delay
=
(
uint32_t
)
delay
;
}
else
if
(
!
strcasecmp
(
var
,
"watchdog-enabled"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"watchdog-enabled"
))
{
profile
->
watchdog_enabled
=
switch_true
(
val
);
profile
->
watchdog_enabled
=
switch_true
(
val
);
}
else
if
(
!
strcasecmp
(
var
,
"watchdog-step-timeout"
))
{
}
else
if
(
!
strcasecmp
(
var
,
"watchdog-step-timeout"
))
{
...
...
src/switch_rtp.c
浏览文件 @
84563902
...
@@ -2310,11 +2310,6 @@ static void do_2833(switch_rtp_t *rtp_session, switch_core_session_t *session)
...
@@ -2310,11 +2310,6 @@ static void do_2833(switch_rtp_t *rtp_session, switch_core_session_t *session)
switch_frame_flag_t
flags
=
0
;
switch_frame_flag_t
flags
=
0
;
uint32_t
samples
=
rtp_session
->
samples_per_interval
;
uint32_t
samples
=
rtp_session
->
samples_per_interval
;
if
(
rtp_session
->
sending_dtmf
>
1
)
{
rtp_session
->
sending_dtmf
--
;
return
;
}
if
(
!
rtp_session
->
last_write_ts
)
{
if
(
!
rtp_session
->
last_write_ts
)
{
return
;
return
;
}
}
...
@@ -2409,8 +2404,7 @@ static void do_2833(switch_rtp_t *rtp_session, switch_core_session_t *session)
...
@@ -2409,8 +2404,7 @@ static void do_2833(switch_rtp_t *rtp_session, switch_core_session_t *session)
if
(
!
rtp_session
->
sending_dtmf
)
{
if
(
!
rtp_session
->
sending_dtmf
)
{
rtp_session
->
sending_dtmf
=
2
;
rtp_session
->
sending_dtmf
=
1
;
return
;
}
}
if
(
switch_queue_trypop
(
rtp_session
->
dtmf_data
.
dtmf_queue
,
&
pop
)
==
SWITCH_STATUS_SUCCESS
)
{
if
(
switch_queue_trypop
(
rtp_session
->
dtmf_data
.
dtmf_queue
,
&
pop
)
==
SWITCH_STATUS_SUCCESS
)
{
...
@@ -2983,7 +2977,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
...
@@ -2983,7 +2977,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
do_2833
(
rtp_session
,
session
);
do_2833
(
rtp_session
,
session
);
if
(
rtp_session
->
dtmf_data
.
out_digit_dur
>
0
||
rtp_session
->
dtmf_data
.
in_digit_sanity
||
rtp_session
->
sending_dtmf
>
0
||
if
(
rtp_session
->
dtmf_data
.
out_digit_dur
>
0
||
rtp_session
->
dtmf_data
.
in_digit_sanity
||
rtp_session
->
sending_dtmf
||
switch_queue_size
(
rtp_session
->
dtmf_data
.
dtmf_queue
)
||
switch_queue_size
(
rtp_session
->
dtmf_data
.
dtmf_inqueue
))
{
switch_queue_size
(
rtp_session
->
dtmf_data
.
dtmf_queue
)
||
switch_queue_size
(
rtp_session
->
dtmf_data
.
dtmf_inqueue
))
{
pt
=
20000
;
pt
=
20000
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论