<div>
                    <span style="font-size: 14px;">this might do the trick:</span>
                </div><div><span style="font-size: 14px;"><br></span></div><div><span style="font-size: 14px;">http://wiki.freeswitch.org/wiki/Variable_session_in_hangup_hook</span></div>
                <div><div><br></div><div><br></div><div>Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a></div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Friday, January 6, 2012 at 4:46 AM, Juan Antonio IbaƱez Santorum wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>Hello,<div><br></div><div>&nbsp; &nbsp;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:</div><div><br></div><blockquote type="cite"><div>

<div><div>if(caller_channel = switch_core_session_get_channel(session)){</div></div><div><div>&nbsp; &nbsp;switch_channel_set_variable(caller_channel, "var", "val")</div></div><div><div>}</div></div></div></blockquote><div><div><br></div><div>&nbsp; &nbsp;If the caller hangs up the call, the app returns and I try to get the val of var as:</div></div><div><br></div><blockquote type="cite"><div><div>session:getVariable("var")</div>

</div></blockquote><div><br></div><div>&nbsp; &nbsp;but a nil value is returned. Do you know why?</div><div><br></div><div>Regards</div><div><br></div>
</div><div><div>_________________________________________________________________________</div><div>Professional FreeSWITCH Consulting Services:</div><div><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></div><div><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></div><div><br></div><div>FreeSWITCH-powered IP PBX: The CudaTel Communication Server</div><div><a href="http://www.cudatel.com">http://www.cudatel.com</a></div><div><br></div><div>Official FreeSWITCH Sites</div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div><div><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a></div><div><a href="http://www.cluecon.com">http://www.cluecon.com</a></div><div><br></div><div>FreeSWITCH-users mailing list</div><div><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></div><div><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></div><div>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></div><div><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>