Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
14618392
提交
14618392
authored
8月 14, 2012
作者:
Kapil Gupta
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'nsg-4.3' of
ssh://git.sangoma.com/smg_freeswitch
into nsg-4.3
上级
888393fc
76edb0b9
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
5 行删除
+14
-5
mod_spandsp_fax.c
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
+8
-4
media_gateway.c
src/mod/endpoints/mod_media_gateway/media_gateway.c
+1
-0
media_gateway_stack.h
src/mod/endpoints/mod_media_gateway/media_gateway_stack.h
+2
-0
mod_media_gateway.c
src/mod/endpoints/mod_media_gateway/mod_media_gateway.c
+3
-1
没有找到文件。
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
浏览文件 @
14618392
...
@@ -2147,6 +2147,8 @@ switch_status_t spandsp_fax_detect_session(switch_core_session_t *session,
...
@@ -2147,6 +2147,8 @@ switch_status_t spandsp_fax_detect_session(switch_core_session_t *session,
switch_media_bug_flag_t
bflags
=
0
;
switch_media_bug_flag_t
bflags
=
0
;
const
char
*
var
;
const
char
*
var
;
switch_codec_implementation_t
read_impl
=
{
0
};
switch_codec_implementation_t
read_impl
=
{
0
};
switch_bool_t
set_private
=
SWITCH_TRUE
;
switch_core_session_get_read_impl
(
session
,
&
read_impl
);
switch_core_session_get_read_impl
(
session
,
&
read_impl
);
if
(
timeout
)
{
if
(
timeout
)
{
...
@@ -2154,8 +2156,9 @@ switch_status_t spandsp_fax_detect_session(switch_core_session_t *session,
...
@@ -2154,8 +2156,9 @@ switch_status_t spandsp_fax_detect_session(switch_core_session_t *session,
}
}
if
(
cont
)
{
if
(
cont
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_ERROR
,
"Max Tones Reached!
\n
"
);
//switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "Max Tones Reached!\n");
return
SWITCH_STATUS_FALSE
;
set_private
=
SWITCH_FALSE
;
cont
=
NULL
;
}
}
if
(
!
cont
&&
!
(
cont
=
switch_core_session_alloc
(
session
,
sizeof
(
*
cont
))))
{
if
(
!
cont
&&
!
(
cont
=
switch_core_session_alloc
(
session
,
sizeof
(
*
cont
))))
{
...
@@ -2218,8 +2221,9 @@ switch_status_t spandsp_fax_detect_session(switch_core_session_t *session,
...
@@ -2218,8 +2221,9 @@ switch_status_t spandsp_fax_detect_session(switch_core_session_t *session,
cont
->
bug_running
=
0
;
cont
->
bug_running
=
0
;
return
status
;
return
status
;
}
}
switch_channel_set_private
(
channel
,
"_fax_tone_detect_"
,
cont
);
if
(
set_private
)
switch_channel_set_private
(
channel
,
"_fax_tone_detect_"
,
cont
);
return
SWITCH_STATUS_SUCCESS
;
return
SWITCH_STATUS_SUCCESS
;
}
}
...
...
src/mod/endpoints/mod_media_gateway/media_gateway.c
浏览文件 @
14618392
...
@@ -184,6 +184,7 @@ switch_status_t megaco_activate_termination(mg_termination_t *term)
...
@@ -184,6 +184,7 @@ switch_status_t megaco_activate_termination(mg_termination_t *term)
if
(
term
->
type
==
MG_TERM_TDM
)
{
if
(
term
->
type
==
MG_TERM_TDM
)
{
switch_core_session_execute_application_async
(
session
,
"spandsp_start_fax_detect"
,
"mg_notify cng 120 cng"
);
switch_core_session_execute_application_async
(
session
,
"spandsp_start_fax_detect"
,
"mg_notify cng 120 cng"
);
switch_core_session_execute_application_async
(
session
,
"spandsp_start_fax_detect"
,
"mg_notify ced 120 ced"
);
}
}
}
}
...
...
src/mod/endpoints/mod_media_gateway/media_gateway_stack.h
浏览文件 @
14618392
...
@@ -168,6 +168,8 @@ switch_status_t mg_send_term_service_change(char *span_name, char *chan_number,
...
@@ -168,6 +168,8 @@ switch_status_t mg_send_term_service_change(char *span_name, char *chan_number,
switch_status_t
mg_send_t38_cng_notify
(
megaco_profile_t
*
mg_profile
,
const
char
*
term_name
);
switch_status_t
mg_send_t38_cng_notify
(
megaco_profile_t
*
mg_profile
,
const
char
*
term_name
);
switch_status_t
mg_send_t38_ans_notify
(
megaco_profile_t
*
mg_profile
,
const
char
*
term_name
);
switch_status_t
mg_send_t38_v21flag_notify
(
megaco_profile_t
*
mg_profile
,
const
char
*
term_name
);
switch_status_t
sng_mgco_cfg
(
megaco_profile_t
*
profile
);
switch_status_t
sng_mgco_cfg
(
megaco_profile_t
*
profile
);
...
...
src/mod/endpoints/mod_media_gateway/mod_media_gateway.c
浏览文件 @
14618392
...
@@ -39,7 +39,9 @@ SWITCH_STANDARD_APP(mg_notify_function)
...
@@ -39,7 +39,9 @@ SWITCH_STANDARD_APP(mg_notify_function)
if
(
!
strcmp
(
data
,
"cng"
))
{
if
(
!
strcmp
(
data
,
"cng"
))
{
mg_send_t38_cng_notify
(
term
->
profile
,
term
->
name
);
mg_send_t38_cng_notify
(
term
->
profile
,
term
->
name
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_DEBUG
,
"Sent CNG notify
\n
"
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_DEBUG
,
"Sent CNG notify
\n
"
);
switch_channel_set_variable
(
channel
,
"mg_cng_detected"
,
"true"
);
}
else
if
(
!
strcmp
(
data
,
"ced"
))
{
mg_send_t38_ans_notify
(
term
->
profile
,
term
->
name
);
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_DEBUG
,
"Sent CED notify
\n
"
);
}
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论