<div dir="ltr"><br clear="all"><div><div>Hi Guys,</div><div><br></div><div>Sorry for the post here but I just wanted to check if this was possible.</div><div><br></div><div>I am using one large  .lua script, and Im setting up channel variables before the call is connected, so for example I am setting in line;</div><div><br></div><div><br></div><div>table.insert(xml, [[&lt;action application=&quot;set&quot; data=&quot;closedop=voicemail&quot; inline=&quot;true&quot;/&gt;]]);</div><div>table.insert(xml, [[&lt;action application=&quot;set&quot; data=&quot;closedopact=2000&quot; inline=&quot;true&quot;/&gt;]]);</div><div><br></div><div><br></div><div>This then terminates on a dialplan, where I would like to use the value of closedop and closedopact as an anti-action;</div><div><br></div><div><br></div><div>&lt;anti-action application=&quot;]]..closedop..[[&quot; data=&quot;default ]]..h.Customer_Domain..[[ ]]..closedopact..[[&quot;/&gt;</div><div><br></div><div><br></div><div><br></div><div>I can see in the logs the value is set;</div><div><br></div><div>Action set(closedop=voicemail) INLINE</div><div>EXECUTE sofia/internal/<a href="mailto:07917190439@62.239.9.74">07917190439@62.239.9.74</a> set(closedop=voicemail)</div><div>2015-09-14 20:41:47.828526 [DEBUG] mod_dptools.c:1435 sofia/internal/<a href="mailto:07917190438@62.239.9.74">07917190438@62.239.9.74</a> <b>SET [closedop]=[voicemail]</b></div><div>Dialplan: sofia/internal/<a href="mailto:07917190439@62.239.9.74">07917190439@62.239.9.74</a> Action set(closedopact=2000) INLINE</div><div>EXECUTE sofia/internal/<a href="mailto:07917190439@62.239.9.74">07917190439@62.239.9.74</a> set(closedopact=2000)</div><div>2015-09-14 20:41:47.828526 [DEBUG] mod_dptools.c:1435 sofia/internal/<a href="mailto:07917190438@62.239.9.74">07917190438@62.239.9.74</a> <b>SET [closedopact]=[2000]</b></div><div><br></div><div>So I want to set the application to voicemail, and the extension to 2000.</div><div><br></div><div>How can I extract this? I have tried using ${closedop}, and session:getvariables, however this is only suitable when session established I believe?</div><div><br></div><div>Plus I&#39;m doing this inline, so setting variables, then wanting to get them again before answer.</div><div><br></div><div>Can anyone advise?</div><div><br></div><div>Thanks</div><div><br></div><div>Jon</div></div><div><br></div><br><div class="gmail_signature"><div dir="ltr"><div></div><div><br></div></div></div>
</div>