<div>In a Lua script I instantiate a new call leg and (attempt to) insert a new channel variable:</div><br><div>   local session = freeswitch.Session(&quot;user/<a href="mailto:1001@stuff.com">1001@stuff.com</a>&quot;)</div>

<div>   if session:hangupCause() == &quot;SUCCESS&quot; then</div><div>      session:execute(&quot;export&quot;, &quot;my_variable=&quot; .. myVariable)</div><div>      session:transfer(&quot;ext_in_mycontext&quot;, &quot;XML&quot;, &quot;mycontext&quot;)</div>

<div><br></div><div>However, I am not able to retrieve my custom channel variable later. This call leg is established correctly but there is no point in this call leg&#39;s life where I can seem to find my variable. Is there another method by which I should try to insert a channel variable in a newly created call leg?</div>

<div><br></div><div><br></div>