There are some wise words about creating call legs inside a script from a core developer (anthm) on
https://freeswitch.org/confluence/display/FREESWITCH/Client+and+Developer+Interfaces
Bote
From: Godson Gera
Sent: Friday, 13 March, 2015 10:22
Subject: Re: [Freeswitch-users] bridge calls in event socket app
Could you be more specific on what you are trying to do ? If leg A is executing bridge command either in evensocket or in dialplan then they will be automatically be bridged by FS unless you have set ignore_early_media channel variable.
On Wed, Mar 11, 2015 at 6:52 AM, sukitha jayasinghe <sukithaj@gmail.com> wrote:
I want bridge two unanswered calls (in eventsocke) to listen to early media. What is the mechanism for that?
Best Regards,
Sukitha
--
Thanks & Regards,
Godson Gera