#, #? Telegram!

halt

1

5 AUTODIAL FreeSWITCH.

  1. , ;
  2. Lua-.
   FreeSWITCH

. Test.txt. FS:

1000
1001
1002

, /usr/local/freeswitch/scripts/Test.txt. Lua- autodial.lua :

local file = io.open("/usr/local/freeswitch/scripts/Test.txt", "r");
local legB = "loopback/9174";
local timeout = "25";

for line in file:lines() do 
    print(line);

session1 = freeswitch.Session("{origination_caller_id_name=Call 9174, origination_caller_id_number=9174, call_timeout=".. timeout .."}user/".. line .."");
session2 = freeswitch.Session("{origination_caller_id_number=".. line .."}".. legB .."");
freeswitch.msleep(1000);
freeswitch.bridge(session1, session2);
end

9174 " +" :) . CLI FS : fs_cli -rRS Lua- :

luarun autodial.lua

. FreeSWITCH :)


?


: