3 Star 22 Fork 13

大汉刺史 / freeswitch-lua-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
callouting.lua 625 Bytes
一键复制 编辑 原始数据 按行查看 历史
大汉刺史 提交于 2019-03-27 16:06 . update
session:consoleLog("info","--进入callouting");
local destination_number=session:getVariable("destination_number");--呼出的号码
local caller_id_name=session:getVariable("sip_from_user");--拨出的坐席名称
local uuid=session:getVariable("uuid");--会话id
--发起一个callout事件,便于应用保存记录
local event = freeswitch.Event("CUSTOM", "NECO:CALLOUTING");
event:addHeader("Caller-Orig-Caller-ID-Number",destination_number);
event:addHeader("Caller-Callee-ID-Number",caller_id_name);
event:addHeader("Unique-ID",uuid);
event:addHeader("variable_cc_record_filename",recordFile);
event:fire();
Lua
1
https://gitee.com/tianzhenjiu/freeswitch-lua-demo.git
git@gitee.com:tianzhenjiu/freeswitch-lua-demo.git
tianzhenjiu
freeswitch-lua-demo
freeswitch-lua-demo
master

搜索帮助