ok thanks. I thought that it can be done through api or somethig like this but if no - will use this.
Thanks one more time

2016-11-11 16:33 GMT+03:00 David Villasmil <david.villasmil.work@gmail.com>:
It's a variable you can set in lua

https://wiki.freeswitch.org/wiki/Variable_execute_on_answer

session:setVariable

Set a variable on a session:

session:setVariable("varname", "varval");



https://freeswitch.org/confluence/plugins/servlet/mobile#content/view/3965124

On Fri, Nov 11, 2016 at 12:24 PM Yuriy Gorlichenko <ovoshlook@gmail.com> wrote:
Hi all
I need to use execute_on_answer in my lua
is there any possibility to call it like sessiom:executeOnAnswer or semething like this?

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org