Here's a new debug log which shows what happens using only intercept and having setAutoHangup(false) on both sides: http://pastebin.freeswitch.org/12124 <http://pastebin.freeswitch.org/12124>And here's my updated bridge function: function bridge_calls(session,api,b_leg_uuid, call_len) freeswitch.consoleLog("info","A leg - Bridging " .. tostring(b_leg_uuid) .. " with " .. tostring(session.uuid) .. "\n") session:setAutoHangup(false) session:execute("set","continue_on_fail=true") api:executeString("uuid_media " .. tostring(b_leg_uuid)) api:executeString("uuid_media " .. tostring(session.uuid)) api:executeString("intercept -bleg " .. tostring(b_leg_uuid)) end Thanks, Adam On Sat, Feb 13, 2010 at 1:18 PM, Adam Wilt <wiltingtree@gmail.com> wrote:
Thanks Anthony and Brian.
setAutoHangup was specified in the script calling intercept, but not the other script. When I add it to the other script, neither side hangs up, but the call is not bridged. Neither party can hear the other party. From your description, intercept sounds like what I want to do.
I made sure bypass media was off. Does the session being intercepted have to be in a certain state for the intercept to work? In my example, a prompt is being played during the time it is intercepted, but I tried having it sleep instead with the same result.
The reason I'm doing it this way is because both parties have to go through a bunch of different states before they are allowed to speak to each other. I tried controlling both legs from the same script previously, but sometimes one session would block waiting for the other session.
Thanks, Adam
On Sat, Feb 13, 2010 at 10:14 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
One or the other of intercept or uuid_bridge not both.
Either uuid_bridge uuid1 uuid2 or Execute intercept on session1 with uuid2 Or uuid_transfer to intercept:uuid2 inline
When you uuid_bridge you must exit the script.
When you intercept the call will block until the bridge is over unless its bypass media otherwise exit the script
If either session was created inside the script use session:setAutoHangup(0) on them first.
On Feb 12, 2010 9:11 PM, "Adam Wilt" <wiltingtree@gmail.com> wrote:
Thanks again for the help Michael.
I'm now upgraded to version 1.5, but I'm still getting the same problem. When I try to bridge sessions from two separate lua scripts, both sessions hang up on me. I think maybe I don't understand how "intercept" works. Anyway, I posted the debug trace here:
http://pastebin.freeswitch.org/12121
And I also put together a small example which exhibits the problem. The first script is started by an inbound call and starts the second script. The second script places an outbound call and tries to bridge the two sessions together:
Inbound script: http://pastebin.freeswitch.org/12122 Outbound script: http://pastebin.freeswitch.org/12123
Thanks, Adam
On 2/9/10, Michael Jerris <mike@jerris.com> wrote:
1.4? how does the future look, report back...
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org