<span style='font-family:Verdana'><span style='font-size:12px'><div>
        <span style="font-family:Verdana"><span style="font-size:12px">Hi all !<br />
        <br />
        I want to make a Lua app which will start with Leg A, collect input, initiate outbound Leg B and when it answers, periodically play decreasing series of beeps to Leg A depending on how many minutes left to disconnect (remaining time queried via odbc). <br />
        <br />
        My initial idea was to issue a non-blocking bridge command after Leg B session originate returns ring-ready and then to do the rest in while loop, but the bridge called by api:executeString("bgapi bridge legB_session legA_session") just returns Job UUID without actually bridging sessions. A usual freeswitch.bridge call blocks further script execution until unbridged, disallowing me to check Leg B states when it's active.<br />
        <br />
        Is there any elegant way to acheive my goals using Lua/Dialplan apps ? To create an app starting with Leg A and constantly watching for Leg B existense/states, playing corresponding feedback messages to Leg A ?<br />
        <br />
        Thanks in advance for yours hints/responses<br />
        <br />
        Mike</span></span><br />
        Ā </div>
</span></span>