Hi <br><br>I am following FreeSWITCH cookbook Chapter 1, Page 15: Ringing multiple endpoints sequentially. <br><br>I am also using mod_lua to do a simple app that does the bridging. <br><br>The problem scenario is as follows: The first endpoint rings. It is not answered. The second endpoint starts ringing. It is answered but the call is immediately disconnected. And then the first endpoint starts ringing again!<br>
<br>Probably, the reason why the first endpoint starts ringing again is a repeat try in bridge application. Is there anyway to disable it ?<br><br>Here is my dialplan snippet<br><br><action application="lua" data="bridge.lua 1 8860133622 | 9711450555"/><br>
<br>And here is bridge.lua<br><br># cat scripts/bridge.lua<br><br>-- arguments from dialplan<br>setAnswer = argv[1]<br>num1 = argv[2]<br>limiter1 = argv[3]<br>num2 = argv[4]<br><br><br>session:answer()<br>
welcome= "welcome.wav"<br>session:streamFile(welcome)<br>freeswitch.consoleLog("INFO","Prompt file is '" .. welcome .. "'\n")<br><br>freeswitch.consoleLog("INFO","Arguments '" .. argv[1] .. " " .. argv[2] .. " " .. argv[3] .. " " .. argv[4] .. "'\n")<br>
globalChanVars = "{ignore_early_media=true,originate_continue_on_timeout=true,call_timout=60,monitor_early_media_fail=user_busy:2:480+620!destination_out_of_order:2:1776.7}"<br><br>chan1 = "[leg_timeout=15]" .. "freetdm/1/a/" .. num1<br>
chan2 = "[leg_timeout=55]" .. "freetdm/1/a/" .. num2<br><br>-- global channel variables are applicable to all channels in the session<br>newSession = freeswitch.Session(globalChanVars .. chan1 .. limiter1 .. chan2)<br>
<br>-- bridge new Session to the current session<br>freeswitch.bridge(session, newSession)<br><br><br><br>Much thanks!<br><br><br clear="all">regards,<br>Anita<br><br>