[Freeswitch-users] Eavesdrop in LUA
Pete Mueller
pete at privateconnect.com
Fri Jan 15 00:21:24 PST 2010
I had a similar problem. I solved it by first making bridging the call
between A and B.
Then originate C with a LUA script, the last line of which is:
session:execute("eavesdrop", uuid_of_a_leg)
The down side here is that A and B can talk while C is ringing, but in my
case that is not a problem.
-p
-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of rod
Sent: Thursday, January 14, 2010 8:10 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Eavesdrop in LUA
Hi all,
I have an incomplete solution for those interested.
I did it like this in dialplan:
<action application="set" data="api_on_answer=originate
sofia/internal/2000 at 10.10.10.10 &eavesdrop(${uuid})"/>-->
<action application="bridge"
data="{ecoute=${caller_id_number}}sofia/gateway/${caller_id_number}/${destin
ation_number}"/>
so when a call is setup, FS initiate a new call to 2000 and eavesdrop
the call.
But I have a small problem, the callee receives no sound until the
eavesdropper send a SIP reply, so there is a 2-3 seconds delay before
caller and callee can talk each other.
rod
rod a écrit :
> Hi all,
>
> I'm trying to do this in LUA:
> A call B
>
> and I'd like to setup a new call to C with eavesdrop of A conversation
> with B.
>
> I have no idea how to do this if someone can help.
> I switched to LUA cause I see no way to achieve this with dialplan
> (snippets are welcome).
>
> regards,
> rod
>
> _______________________________________________
> 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
>
>
>
_______________________________________________
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
More information about the FreeSWITCH-users
mailing list