首页  :: 新随笔  :: 管理

freeswitch lua脚本指定gateway(sip中继)

Posted on 2020-06-25 16:24  季枫  阅读(1198)  评论(0编辑  收藏  举报

 

session:answer();

local caller_number = argv[1];     --主叫号码
local called_number = argv[2];     --被叫号码

local dest = "sofia/gateway/fxogw/"..called_number;
session2 = freeswitch.Session(dest);

  

fxogw为gateway的名称

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |