[Freeswitch-users] Bridging sessions from two separate lua scripts; uuid_bridge? intercept?

Adam Wilt wiltingtree at gmail.com
Sat Feb 13 10:18:17 PST 2010


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 at 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 at 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 at jerris.com> wrote:
> > 1.4? how does the future look, report back...
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100213/6dcabba2/attachment-0002.html 


More information about the FreeSWITCH-users mailing list