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

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的名称

原文地址:https://www.cnblogs.com/jifeng/p/13192081.html