<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">One funny "by design" catch.</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br>
</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">I want to set variable when channel is answered. execute_on_answer is perfect tool for this job. I have:</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">
<br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><action application="set" data="execute_on_answer=set myvariable=${strepoch()}" /></div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">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 class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">Is there a notation to tell FS not to evaluate variable during dialplan parsing?</div>
<div class="gmail_default" style="font-family:'trebuchet ms',sans-serif"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif">Best regards, Gregor</div></div>