Thanks,<br>I tried that but still it doesn&#39;t work.<br>The following dialplan (starting record_session 2 times) generates filenames with the same UUID/TimeStamp:<br><br>&lt;action application=&#39;set&#39; data=&#39;bridge_pre_execute_bleg_app=record_session&#39;/&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;bridge_pre_execute_bleg_data=/recorded_sessions/file1_${uuid}_${strftime(%Y%m%d-%H%M%S)}.wav&#39;/&gt;<br>&lt;action application=&#39;bridge&#39; data=&#39;{execute_on_answer=record_session /recorded_sessions/file2_${uuid}_${strftime(%Y%m%d-%H%M%S)}.wav}sofia/internal/<a href="mailto:term1@127.0.0.1">term1@127.0.0.1</a>&#39;/&gt;<br>
<br>file1_b3b338d8-8e52-4077-8b41-0ddc587716da_20110401-222314.wav<br>file2_b3b338d8-8e52-4077-8b41-0ddc587716da_20110401-222314.wav<br><br>But I think there is a simple solution: I just have to use ESL to watch for CHANNEL_ANSWER or set execute_on_answer=lua somescript.lua&quot; and set the filename inside the script.<br>
<br>br,<br>takeshi<br><br><div class="gmail_quote">On Fri, Apr 1, 2011 at 1:30 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Try this instead:<div><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_app" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_app</a></div><div>and</div>
<div><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_data" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#bridge_pre_execute_bleg_data</a></div>
<div><br></div><div>-MC<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Thu, Mar 31, 2011 at 1:32 AM, mayamatakeshi <span dir="ltr">&lt;<a href="mailto:mayamatakeshi@gmail.com" target="_blank">mayamatakeshi@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
I am setting channel variable execute_on_answer in my call to application bridge. Like this:<br><br>&lt;action application=&#39;bridge&#39; data=&#39;{execute_on_answer=record_session $${base_dir}/storage/recorded_sessions/${uuid}_${strftime(%Y%m%d-%H%M%S)}.wav}sofia/external/<a href="mailto:DestinationNumber@192.168.2.2" target="_blank">DestinationNumber@192.168.2.2</a>&#39; /&gt;<br>


<br>The above works, and the application record_session is executed on the leg b. However, the uuid it gets is from leg a, and the timestamp is from the time bridge was executed, which as I understand, is happening because the variable interpolation is performed at the moment the application bridge is executed.<br>


So, is there a way to delay variable interpolation to the instant the b leg app is executed?<br><br>br,<br>takeshi<br>
<br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<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>