
freeswitch
hanyingzhong
这个作者很懒,什么都没留下…
展开
-
FreeSwitch LUA API ——API Events/params
API Event的作用为:产生新事件目录浏览:API Events event:addBody event:addHeader event:delHeader event:fire event:getBody event:getHeader event:getType event:serialize event:setPriority event:...转载 2018-11-13 08:13:52 · 773 阅读 · 0 评论 -
freeswitch通过LUA加载用户数据
freeswitch是一款强大的voip服务器,可以语音和视频。但是它默认是采用/directory文件夹下的xml来配置用户的,对于整合到现有系统或者使用数据库保存用户信息的系统都是非常不方便的,所以,本文主要描述一种方法,解决freeswitch用户整合的问题。 完成这一任务需要三步,配置unixodbc,将用户验证转接到lua脚本,修改拨号计划使得拨通所有号码 ...转载 2018-11-13 08:15:53 · 2880 阅读 · 4 评论 -
freeswitch: LUA
https://freeswitch.org/confluence/display/FREESWITCH/mod_luaFreeSWITCH中的lua操作小结 lua中设置当前通道变量:方法一:session:setVariable("fullName", "xxxxx");--需判断session是否为空方法二:local uuid =getUUID(callerid);l...转载 2018-11-17 20:52:00 · 741 阅读 · 0 评论 -
Lua 模块与包 调用c程序.so文件
Lua 模块与包 调用c程序.so文件Lua 模块与包模块类似于一个封装库,从 Lua 5.1 开始,Lua 加入了标准的模块管理机制,可以把一些公用的代码放在一个文件里,以 API 接口的形式在其他地方调用,有利于代码的重用和降低代码耦合度。Lua 的模块是由变量、函数等已知元素组成的 table,因此创建一个模块很简单,就是创建一个 table,然后把需要导出的常量、函数放入其中,...转载 2018-11-13 16:26:17 · 823 阅读 · 0 评论 -
freeswitch中Context的理解
现象 注册了两个用户1000和1001。1 1001拨1000能拨通2 1001拨9999拨不通,9999在default.xml中有相应的extension对应处理。疑惑.... 分析过程 1 启用log:freeswitch@fs-COM-BT> console loglevel debug2 呼叫99992018-11-15 03:12:13.7...原创 2018-11-15 16:11:04 · 2199 阅读 · 0 评论 -
an example for dialplan
#!/usr/bin/lua--Author:jncheng--Version:20150520--Email:burtte@sina.com-------------------------------------------------------------------------------------------session:setVariable("continue_on_...转载 2018-11-14 17:21:32 · 175 阅读 · 0 评论 -
FreeSWITCH dialplan APPlication
以下为所有应用(Application)的一览表,点击对应的超链接进入源网站查看英文版本,若要看中文版本可往下拉按序查找。翻译不妥处请多多指教。A answer – 应答一个信道的呼叫 att_xfer – 可用于呼叫转移B bind_digit_action – 绑定一个关键字队列或者一个正则表达式到一个action上 bind_meta_app – 在桥接或者执行另一个dia...转载 2018-11-14 17:37:49 · 2208 阅读 · 2 评论 -
SQL字符串开头模糊匹配
1:以字段开头模糊查询的like的方法查询select * from t where t.user_code like 'A%'2:以字段开头模糊查询的left(字段,长度)的方法查询select * from t where left(t.user_code, 1)='A';3:字符间隔查询段对应的值以 1,4,6 的格式查询使用find_in_setselect * ...转载 2018-11-16 09:31:02 · 20392 阅读 · 0 评论 -
freeswitch:一些涉及freeswitch的博客
语音识别资源OKHelp外呼中国晚上好https://blog.youkuaiyun.com/u010317005/article/category/6308096gredn的专栏https://blog.youkuaiyun.com/gredn/article/category/2112341/2https://blog.youkuaiyun.com/gredn/article/category/211...转载 2018-11-21 10:22:57 · 210 阅读 · 0 评论 -
FreeSWITCH has an option to cache directory lookups:mod_xml_curl
FreeSWITCH has an option to cache directory lookups so that xml_curl doesn't need to lookup the same user again, using the cacheable attribute in the returned xml (see http://wiki.freeswitch.org/wiki/...原创 2018-11-24 20:30:15 · 1641 阅读 · 0 评论 -
FreeSWITCH mod_callcenter 整理
mod_callcenter本文英文部分是来自https://freeswitch.org/confluence/display/FREESWITCH/mod_callcenter,中文部分是通过分析mod_callcenter.c的代码根据个人的理解整理而成。配置callcenter.conf.xml 范例 <configuration name="callcenter...转载 2018-11-29 10:34:03 · 1755 阅读 · 0 评论 -
sofia
sofia.csofia_process_dispatch_event转载 2018-11-26 16:05:13 · 327 阅读 · 0 评论 -
freeswitch命令集
freeswitch@34WC1I9C1VS1OGP> json {"command": "callcenter_config", "format": "pretty", "data": {"arguments":"queue list"}}{ "command": "callcenter_config", "format": "p...原创 2018-11-29 17:01:31 · 4682 阅读 · 0 评论 -
基于freeswitch开源会议系统
(1)BigBluebutton 这个视频会议项目中用到了 FreeSwitch, 项目主页: http://www.bigbluebutton.org/。但对视频的处理只是转发各路视频,没有实现融屏合成一路视频推送到各方显示。 (2)openvcs 是一个开源的 SIP MCU 实现,项目主页:http://code.google.com/p/openvcs/ 。 在 Windows ...转载 2018-12-15 16:21:03 · 1289 阅读 · 0 评论 -
sipcapture
https://github.com/sipcapturehttps://github.com/sipcapture/homer/wiki/Examples%3A-FreeSwitch FreeSWITCH Capture AgentFreeswitch ships with an integrated HEP Capture Agent designed to work wi...原创 2019-01-08 17:15:26 · 870 阅读 · 0 评论 -
SIP-Specific Dialstrings
SIP-Specific DialstringsSIP dialing has several options. Here are some aspects of what you might call the anatomy of a SIP dialstring.Dialing A SIP URIBasic syntax is: sofia/my_profile/user@host...转载 2019-04-11 13:22:42 · 419 阅读 · 0 评论 -
一些有用的dialplan
https://freeswitch.org/confluence/display/FREESWITCH/XML+DialplanNOTE:if you plan to include your extension in a separated .XML file:please disable or change enum extension if you don't need it...转载 2019-04-11 14:14:15 · 1172 阅读 · 1 评论 -
mod_fifo内部用的表
表如下:/* Navicat Premium Data Transfer Source Server : c-freeswitch-fifo Source Server Type : SQLite Source Server Version : 3017000 Source Schema : main Target Server Typ...原创 2019-05-24 14:11:11 · 366 阅读 · 0 评论 -
在C函数中执行dialplan application的方法:
以下代码:将某个用户呼通后,桥接fifo中的某个等待呼叫switch_channel_set_variable(channel, "fifo_outbound_uuid", h->uuid);app_name = "fifo";arg = switch_core_session_sprintf(session, "%s out %s", h->node_name, membe...原创 2019-05-24 15:04:55 · 234 阅读 · 0 评论 -
FreeSWITCH 呼叫接入慢:恶意IP攻击
FreeSWITCH 呼叫接入慢网上的大多数方法是修改/etc/freeswitch/dialplan/default.xml中field="${default_password}"规则下的休眠时间,但只有默认密码为1234时,该规则才会被触发。在前面我们已经修改了默认的密码,这里修改该规则将没有任何作用。<condition field="${default_passwo...转载 2019-06-24 14:45:27 · 2593 阅读 · 1 评论