[Freeswitch-users] Eavesdrop in LUA

rod kawarod at laposte.net
Thu Jan 14 07:09:59 PST 2010


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}/${destination_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
>
>
>   




More information about the FreeSWITCH-users mailing list