<div dir="ltr"><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">Yes, Dave.</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">
I solved it with mod_managed and create app that I call it on execute_on_answer. Just wanted to know if there is some catch to formulate variable so that FS is not evaluating it on dialplan parsing.</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">
<br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">Thank you, Yosii. I know that channel has answer time, but I have more complicated scenario and I need this functionality to execute something on answer.</div>
<div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif"><br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif">--Gregor</div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/11/3 I put the Who? in Mishehu <span dir="ltr">&lt;<a href="mailto:mishehu@freeswitch.org" target="_blank">mishehu@freeswitch.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Possibly more to the point - the
      channel already has the answer time in the timetables.<br>
      <br>
      -Yossi<div><div class="h5"><br>
      <br>
      <br>
      On 11/03/2013 03:55 PM, Dave R. Kompel wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      
      
      <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 href="mailto:gregor@infomedia.si" target="_blank">mailto:gregor@infomedia.si</a>]<br>
        <b>To:</b> FreeSWITCH Users Help
        [<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">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:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default">One funny &quot;by design&quot; catch.</div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default"><br>
          </div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,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:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default"><br>
          </div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default"><br>
          </div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default">&lt;action application=&quot;set&quot;
            data=&quot;execute_on_answer=set myvariable=${strepoch()}&quot; /&gt;</div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default"><br>
          </div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,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:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default"><br>
          </div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default">Is there a notation to tell FS not to
            evaluate variable during dialplan parsing?</div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default"><br>
          </div>
          <div style="FONT-FAMILY:&#39;trebuchet ms&#39;,sans-serif" class="gmail_default">Best regards, Gregor</div>
        </div>
      </blockquote>
      
      <div> </div>
      <div> </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>