Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
5b279928
提交
5b279928
authored
1月 07, 2014
作者:
Chris Rienzo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mod_rayo CPA dtmf detection added
上级
da4690f6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
26 行增加
和
2 行删除
+26
-2
rayo.conf.xml
conf/rayo/autoload_configs/rayo.conf.xml
+7
-0
rayo.conf.xml
...ent_handlers/mod_rayo/conf/autoload_configs/rayo.conf.xml
+7
-0
rayo_cpa_detector.c
src/mod/event_handlers/mod_rayo/rayo_cpa_detector.c
+12
-2
没有找到文件。
conf/rayo/autoload_configs/rayo.conf.xml
浏览文件 @
5b279928
...
...
@@ -26,6 +26,13 @@
<!-- Define CPA detectors. These are sources for Rayo CPA signal events -->
<!-- Detectors must fire an event that can be translated by mod_rayo into a CPA signal event -->
<cpa>
<!-- map DTMF events to CPA -->
<detector
name=
"core_dtmf_event"
>
<event
class=
"DTMF"
value-header=
"DTMF-Digit"
duration-header=
"DTMF-Duration"
>
<signal-type
value=
"dtmf"
/>
</event>
</detector>
<!-- map mod_spandsp fax detector to the Rayo CPA events. Fires DETECTED_FAX_* event once and quits. -->
<detector
name=
"mod_spandsp_fax_ced"
>
<start
application=
"spandsp_start_fax_detect"
data=
"event 'Event-Name=CUSTOM,Event-Subclass=DETECTED_FAX_CED' 500 ced"
/>
...
...
src/mod/event_handlers/mod_rayo/conf/autoload_configs/rayo.conf.xml
浏览文件 @
5b279928
...
...
@@ -26,6 +26,13 @@
<!-- Define CPA detectors. These are sources for Rayo CPA signal events -->
<!-- Detectors must fire an event that can be translated by mod_rayo into a CPA signal event -->
<cpa>
<!-- map DTMF events to CPA -->
<detector
name=
"core_dtmf_event"
>
<event
class=
"DTMF"
value-header=
"DTMF-Digit"
duration-header=
"DTMF-Duration"
>
<signal-type
value=
"dtmf"
/>
</event>
</detector>
<!-- map mod_spandsp fax detector to the Rayo CPA events. Fires DETECTED_FAX_* event once and quits. -->
<detector
name=
"mod_spandsp_fax_ced"
>
<start
application=
"spandsp_start_fax_detect"
data=
"event 'Event-Name=CUSTOM,Event-Subclass=DETECTED_FAX_CED' 500 ced"
/>
...
...
src/mod/event_handlers/mod_rayo/rayo_cpa_detector.c
浏览文件 @
5b279928
...
...
@@ -79,8 +79,13 @@ struct rayo_cpa_detector_state {
int
rayo_cpa_detector_start
(
const
char
*
call_uuid
,
const
char
*
signal_ns
,
const
char
**
error_detail
)
{
struct
rayo_cpa_detector
*
detector
=
switch_core_hash_find
(
globals
.
detectors
,
signal_ns
);
switch_core_session_t
*
session
;
if
(
detector
)
{
switch_core_session_t
*
session
=
switch_core_session_locate
(
call_uuid
);
if
(
zstr
(
detector
->
start_app
))
{
/* nothing to do */
return
1
;
}
session
=
switch_core_session_locate
(
call_uuid
);
if
(
session
)
{
struct
rayo_cpa_detector_state
*
detector_state
=
switch_channel_get_private
(
switch_core_session_get_channel
(
session
),
detector
->
uuid
);
if
(
detector_state
)
{
...
...
@@ -114,8 +119,13 @@ int rayo_cpa_detector_start(const char *call_uuid, const char *signal_ns, const
void
rayo_cpa_detector_stop
(
const
char
*
call_uuid
,
const
char
*
signal_ns
)
{
struct
rayo_cpa_detector
*
detector
=
switch_core_hash_find
(
globals
.
detectors
,
signal_ns
);
switch_core_session_t
*
session
;
if
(
detector
)
{
switch_core_session_t
*
session
=
switch_core_session_locate
(
call_uuid
);
if
(
zstr
(
detector
->
stop_app
))
{
/* nothing to do */
return
;
}
session
=
switch_core_session_locate
(
call_uuid
);
if
(
session
)
{
struct
rayo_cpa_detector_state
*
detector_state
=
switch_channel_get_private
(
switch_core_session_get_channel
(
session
),
detector
->
uuid
);
if
(
detector_state
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论