当前位置:网站首页>Freeswitch dials extension number source code tracking
Freeswitch dials extension number source code tracking
2022-07-07 07:09:00 【Be true】
summary
freeswitch Is a very easy to use open source VOIP Softswitch platform .
We have introduced the use of fs How to dial the extension number , The code flow is relatively complex , So I will open a separate chapter to introduce .
fs Dial the extension number , It's using send_dtmf Interface implementation , This section mainly introduces how interfaces integrate DTMF Code sent , What modules have been passed .
Environmental Science
centos:CentOS release 7.0 (Final) Or above
freeswitch:v1.8.7
GCC:4.8.5
Dial plan
fs The configuration file /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>
Source code flow
chart 1,“FS CORE” yes freeswitch Core module ,“mod_dptools” and “mod_sofia” yes fs Sub module of .
because dialplan The process in is first “send_dtmf”, then “sleep”, So from the above call flow chart , You can see that the starting point of the process is mod_dptools Module start .
summary
freeswitch There are many processes and sub modules of the core module , Calling and registering callback functions between modules are complex , Variable process .
Sorting out sub module function code flow is helpful to understand fs The overall structure of .
Empty as usual
Be serious
边栏推荐
- 华为机试题素数伴侣
- Learning records on July 4, 2022
- 组件的嵌套和拆分
- MYSQL binlog相关命令
- Please answer the questions about database data transfer
- FPGA course: application scenario of jesd204b (dry goods sharing)
- Tujia, muniao, meituan... Home stay summer war will start
- MySQL view bin log and recover data
- Master-slave replication principle of MySQL
- 云备份项目
猜你喜欢
This article introduces you to the characteristics, purposes and basic function examples of static routing
How can gyms improve their competitiveness?
MySQL的主从复制原理
ANR 原理及实践
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第一阶段答案
异步组件和Suspense(真实开发中)
健身房如何提高竞争力?
2018 Jiangsu Vocational College skills competition vocational group "information security management and evaluation" competition assignment
Jesd204b clock network
【NOI模拟赛】区域划分(结论,构造)
随机推荐
MySQL view bin log and recover data
Stack Title: nesting depth of valid parentheses
sqlserver多线程查询问题
. Net core accesses uncommon static file types (MIME types)
sql中对集合进行非空校验
freeswitch拨打分机号源代码跟踪
MOS管参数μCox得到的一种方法
[noi simulation] regional division (conclusion, structure)
Config distributed configuration center
什么情况下考虑分库分表
健身房如何提高竞争力?
Special behavior of main function in import statement
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书
Please tell me how to monitor multiple schemas and tables by listening to PgSQL
多学科融合
Under what circumstances should we consider sub database and sub table
AddressSanitizer 技术初体验
选择商品属性弹框从底部弹出动画效果
根据IP获取地市
Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park