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