[Freeswitch-users] How to answer after bridge in a dialplan+lua environment

Michael Collins msc at freeswitch.org
Wed Feb 15 05:40:36 MSK 2012


On Tue, Feb 14, 2012 at 6:30 PM, dma <mays.david at gmail.com> wrote:

> Hi All,
>
> I need some advise from you on how to answer after bridge in a dialplan +
> lua environment.
>
> My goal is,
>
> (1) dial destination number (OB) on receiving incoming call (IB),
> (2) bridge the 2 sessions on early media received, and then
> (3) send answer to IB when OB answers.
>

Just curious, but how is this different from just using the bridge
application?
-MC


>
> Currently all the above are done in my lua script. The script blocks on
> bridge. From the previous discussions, I find a way to circumvent script
> blocking is to use "execute_on_answer=lua ob_answer.lua". This sounds a
> good
> solution. However, I wonder if I have the access to the 2 session objects,
> session and ob_session, in the new script "ob_answer.lua". In a lua script,
> the IB call is answered using "session:answer()".
>
> Or if there exists other solutions/alternatives to achieve the above goal
> in
> a dialplan + lua environment.
>
> Please kindly advise.
>
> Thanks,
> D.Ma
>
>
>
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/How-to-answer-after-bridge-in-a-dialplan-lua-environment-tp7286322p7286322.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20120214/dbe216bd/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list