<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Possibly more to the point - the
channel already has the answer time in the timetables.<br>
<br>
-Yossi<br>
<br>
<br>
On 11/03/2013 03:55 PM, Dave R. Kompel wrote:<br>
</div>
<blockquote cite="mid:20131103215534.2287c9c5@mail.tritonwest.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style>BODY{font:10pt Tahoma, Verdana, sans-serif}</style>
<div>Rather then doing the set as the DP action, you can have it
execut a script, that sets the var, or execute_extension from
the dialplan that does it. That way the eval will be done at
execute time.</div>
<div> </div>
<div>--Dave</div>
<br>
<blockquote style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT:
5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<hr>
<b>From:</b> Gregor Nanger [<a class="moz-txt-link-freetext" href="mailto:gregor@infomedia.si">mailto:gregor@infomedia.si</a>]<br>
<b>To:</b> FreeSWITCH Users Help
[<a class="moz-txt-link-freetext" href="mailto:freeswitch-users@lists.freeswitch.org">mailto:freeswitch-users@lists.freeswitch.org</a>]<br>
<b>Sent:</b> Sun, 03 Nov 2013 13:28:53 -0800<br>
<b>Subject:</b> [Freeswitch-users] Execute_on_answer and
${strepoch}<br>
<br>
<div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default">One funny "by design" catch.</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default"><br>
</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default">I want to set variable when channel is
answered. execute_on_answer is perfect tool for this job. I
have:</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default"><br>
</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default"><br>
</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default"><action application="set"
data="execute_on_answer=set myvariable=${strepoch()}" /></div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default"><br>
</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default">Everything is working, except that
${strepoch()} is evaluated during dialplan parsing, not when
on answer command is executed. So I get time when diaplan is
processed, not when user pickups. </div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default"><br>
</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default">Is there a notation to tell FS not to
evaluate variable during dialplan parsing?</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default"><br>
</div>
<div style="FONT-FAMILY: 'trebuchet ms',sans-serif"
class="gmail_default">Best regards, Gregor</div>
</div>
</blockquote>
<style>
</style>
<div> </div>
<div> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
</body>
</html>