FreeSWITCH Click-to-Dial

dial.lua

local api = freeswitch.API();
local destNumber = argv[1];
local sourceNumber = argv[2];
local fsIP = "10.10.0.52";

if (sourceNumber) then
    local sourceDialString = "sofia/default/" .. sourceNumber .. "@" .. fsIP;
    local reply = api:execute("originate", "{'absolute_codec_string=PCMA',origination_caller_id_number=" .. destNumber .. "}" .. sourceDialString .. " " .. destNumber .. " XML default");
end

Rufaufbau für User 130 an Zielrufnummer 08003301000 initiieren:

fs_cli -x "luarun dial.lua 08003301000 130"