[Freeswitch-users] Execute_on_answer and ${strepoch}

Gregor Nanger gregor at infomedia.si
Mon Nov 4 00:28:53 MSK 2013


One funny "by design" catch.

I want to set variable when channel is answered. execute_on_answer is
perfect tool for this job. I have:


<action application="set" data="execute_on_answer=set
myvariable=${strepoch()}" />

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.

Is there a notation to tell FS not to evaluate variable during dialplan
parsing?

Best regards, Gregor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131103/eea8421a/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list