You can also execute_on_post_bridge ;) On Tue, Apr 14, 2015 at 7:42 AM, Ítalo Rossi <italorossib@gmail.com> wrote:
In the lua hook you have an event with all the channel variables related to that channel.
On Tue, Apr 14, 2015 at 5:31 AM, Zoltán Szabó <zoell@zoell.us> wrote:
Just a friendly up, maybe if someone can help on this.
2015-03-10 18:22 GMT+00:00 Zoltán Szabó <zoell@zoell.us>:
So this is not possible, right?
2015-03-06 8:53 GMT+00:00 Zoltán Szabó <zoell@zoell.us>:
How can I reference the session variable in the hook lua script?
Thank you
2015-03-05 17:10 GMT+00:00 Vik Killa <vipkilla@gmail.com>:
You could try using the api_on_hangup to set a variable. or there maybe an execute_on_hangup too.
On Thu, Mar 5, 2015 at 12:06 PM, Zoltán Szabó <zoell@zoell.us> wrote:
Hi,
In lua I bridge two sessions. When leg B hangup the call I need to set up some custom channel variables for odbc_cdr reporting.
freeswitch.bridge(session1, session2); session2:execute("set", "custom_var1=asdf");
But when the set command tries to run, the log says "channel is hangup already".
Is there any way to do this properly?
Many thanks, Zoltan
_________________________________________________________________________ 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
_________________________________________________________________________ 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
-- Ítalo Rossi
_________________________________________________________________________ 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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com ClueCon 2015 Call for Speakers <https://www.cluecon.com/call-for-speakers/> | Register <https://freeswitch.com/cart.php?gid=1> TODAY! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest