this might do the trick: http://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday, January 6, 2012 at 4:46 AM, Juan Antonio Ibañez Santorum wrote:
Hello,
I have one LUA script that make calls to one custom FS app. That app sets up some session channel variables and makes an outgoing call:
if(caller_channel = switch_core_session_get_channel(session)){ switch_channel_set_variable(caller_channel, "var", "val")
}
If the caller hangs up the call, the app returns and I try to get the val of var as:
session:getVariable("var")
but a nil value is returned. Do you know why?
Regards
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto: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