当前位置:网站首页>freeswitch拨打分机号源代码跟踪
freeswitch拨打分机号源代码跟踪
2022-07-07 03:13:00 【求真得真】
概述
freeswitch是一款非常好用的开源VOIP软交换平台。
之前我们有介绍过使用fs拨打分机号的方法,其中代码流程是比较复杂的,所以单独开一章介绍。
fs拨打分机号,是使用send_dtmf接口实现,本节主要介绍接口是如何把DTMF码发送出去的,经过了哪些模块。
环境
centos:CentOS release 7.0 (Final)或以上版本
freeswitch:v1.8.7
GCC:4.8.5
拨号计划
fs配置文件/usr/local/freeswitch/conf/dialplan/test.xml
<include>
<context name="ext_test">
<extension name="test" continue="false">
<condition field="destination_number" expression="^(\d+)$">
<action application="sched_hangup" data="+10"/>
<action application="send_dtmf" data="1234"/>
<action application="sleep" data="5000"/>
<action application="endless_playback" data="/usr/local/freeswitch/sounds/101-baidu-mp3.mp3"/>
</condition>
</extension>
</context>
</include>
源代码流程
图1,“FS CORE”是freeswitch的核心模块,“mod_dptools”和“mod_sofia”是fs的子模块。
因为dialplan中的流程是先“send_dtmf”,然后“sleep”,所以从上面的调用流程图中,可以看到流程起点都是从mod_dptools模块开始的。
总结
freeswitch核心模块的流程和子模块众多,模块之间的调用和注册回调函数比较复杂,流程多变。
梳理子模块功能代码流程有助于理解fs的整体架构。
空空如常
求真得真
边栏推荐
- Distributed ID solution
- Test of transform parameters of impdp
- 什么情况下考虑分库分表
- How DHCP router works
- [GNN] graphic gnn:a gender Introduction (including video)
- 请教一下,监听pgsql ,怎样可以监听多个schema和table
- SolidWorks的GB库(钢型材库,包括铝型材、铝管等结构)安装及使用教程(生成铝型材为例)
- Learning records on July 4, 2022
- 化工园区危化品企业安全风险智能化管控平台建设四大目标
- 关于数据库数据转移的问题,求各位解答下
猜你喜欢
Installing redis and windows extension method under win system
Matlab tips (29) polynomial fitting plotfit
. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
Stack and queue-p78-8 [2011 unified examination true question]
Stack and queue-p79-10 [2014 unified examination real question]
偏执的非合格公司
【NOI模拟赛】区域划分(结论,构造)
非父子组件的通信
联合索引ABC的几种索引利用情况
华为机试题素数伴侣
随机推荐
How to model and simulate the target robot [mathematical / control significance]
Learning records on July 4, 2022
MATLAB小技巧(30)非线性拟合 lsqcurefit
The startup of MySQL installed in RPM mode of Linux system failed
DB2获取表信息异常:Caused by: com.ibm.db2.jcc.am.SqlException: [jcc][t4][1065][12306][4.25.13]
Basic process of network transmission using tcp/ip four layer model
Redhat5 installing vmware tools under virtual machine
MySql用户权限
多学科融合
品牌·咨询标准化
Jetpack Compose 远不止是一个UI框架这么简单~
Under what circumstances should we consider sub database and sub table
MOS tube parameters μ A method of Cox
toRefs API 与 toRef Api
MySQL view bin log and recover data
Multidisciplinary integration
SolidWorks的GB库(钢型材库,包括铝型材、铝管等结构)安装及使用教程(生成铝型材为例)
Comment les entreprises gèrent - elles les données? Partager les leçons tirées des quatre aspects de la gouvernance des données
场馆怎么做体育培训?
多个kubernetes集群如何实现共享同一个存储