当前位置:网站首页>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
边栏推荐
- 剑指offer-高质量的代码
- 带你刷(牛客网)C语言百题(第一天)
- 一文带你了解静态路由的特点、目的及配置基本功能示例
- AVL树的实现
- Maze games based on JS
- Answer to the first stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
- After the promotion, sales volume and flow are both. Is it really easy to relax?
- MATLAB小技巧(30)非线性拟合 lsqcurefit
- MYSQL binlog相关命令
- readonly 只读
猜你喜欢
How to share the same storage among multiple kubernetes clusters
Release notes of JMeter version 5.5
MySQL SQL的完整处理流程
如何给目标机器人建模并仿真【数学/控制意义】
MySQL的主从复制原理
Big coffee gathering | nextarch foundation cloud development meetup is coming
Network foundation - header, encapsulation and unpacking
AVL树的实现
mysql查看bin log 并恢复数据
Bus消息总线
随机推荐
ViewModelProvider. Of obsolete solution
Please ask a question, flick Oracle CDC, read a table without update operation, and repeatedly read the full amount of data every ten seconds
大咖云集|NextArch基金会云开发Meetup来啦
Get the city according to IP
多学科融合
大促过后,销量与流量兼具,是否真的高枕无忧?
Advantages of using net core / why
Jesd204b clock network
Initial experience of addresssanitizer Technology
LC 面试题 02.07. 链表相交 & LC142. 环形链表II
.net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
栈题目:有效括号的嵌套深度
【JDBC以及内部类的讲解】
场馆怎么做体育培训?
Academic report series (VI) - autonomous driving on the journey to full autonomy
2022/07/04学习记录
MATLAB小技巧(29)多项式拟合 plotfit
MySQL binlog related commands
MYSQL----导入导出&视图&索引&执行计划
SolidWorks的GB库(钢型材库,包括铝型材、铝管等结构)安装及使用教程(生成铝型材为例)