<div dir="ltr">Filed <a href="https://freeswitch.org/jira/browse/FS-9781">https://freeswitch.org/jira/browse/FS-9781</a><br>Thank You. </div><div class="gmail_extra"><br><div class="gmail_quote">On 29 November 2016 at 19:47, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="white-space:pre-wrap">It would have to be patched to allow that.  It&#39;s a simple patch really,  file a JIRA and I&#39;ll look at it.<br><br>/b</div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Tue, Nov 29, 2016 at 8:44 AM Aqs Younas &lt;<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>&gt; wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr" class="m_-7307066485675174866gmail_msg">Hi, <div class="m_-7307066485675174866gmail_msg"><br class="m_-7307066485675174866gmail_msg"></div><div class="m_-7307066485675174866gmail_msg">I am using mod_json_cdr to log files in a directory. I am setting <b class="m_-7307066485675174866gmail_msg">json_cdr_base</b> in my javascript to dynamically set log directory. I have observed freeswitch is writing only A-leg files in directory set by <b class="m_-7307066485675174866gmail_msg">json_cdr_base </b>and whereas B-leg files always goes to <b class="m_-7307066485675174866gmail_msg">log-dir </b>set in json_cdr.conf.xml</div><div class="m_-7307066485675174866gmail_msg"><br class="m_-7307066485675174866gmail_msg"></div><div class="m_-7307066485675174866gmail_msg">If I do not set <b class="m_-7307066485675174866gmail_msg">json_cdr_base in </b>script both A-leg and B-leg goes to the same directory set by <b class="m_-7307066485675174866gmail_msg">log-dir </b>in json_cdr.conf.xml</div><div class="m_-7307066485675174866gmail_msg"><br class="m_-7307066485675174866gmail_msg"></div><div class="m_-7307066485675174866gmail_msg">I need to set directory dynamically for json_cdr that is why I am using <b class="m_-7307066485675174866gmail_msg">json_cdr_base</b>.</div><div class="m_-7307066485675174866gmail_msg"><br class="m_-7307066485675174866gmail_msg"></div><div class="m_-7307066485675174866gmail_msg">I tried to use log-dir like this but freeswitch is not evaluating the expression. Instead, it is treating this as a string. </div><div class="m_-7307066485675174866gmail_msg"><pre style="color:rgb(0,0,0);font-size:12.8px;font-family:monospace,courier;padding:1em;border:1px dashed rgb(47,111,171);line-height:1.3em" class="m_-7307066485675174866gmail_msg">param name=&quot;log-dir&quot; value=&quot;/tmp/${strftime(%Y-%m-%<wbr>d)}&quot;/&gt;</pre></div><div class="m_-7307066485675174866gmail_msg"><br class="m_-7307066485675174866gmail_msg"></div><div class="m_-7307066485675174866gmail_msg">I need to set directory dyonically having both A-leg and B-leg json_cdrs.  <br class="m_-7307066485675174866gmail_msg"><br class="m_-7307066485675174866gmail_msg">Any suggestion is much appreciated.</div><div class="m_-7307066485675174866gmail_msg"><br class="m_-7307066485675174866gmail_msg"></div><div class="m_-7307066485675174866gmail_msg">Best Regards.  </div></div></div></div>
______________________________<wbr>______________________________<wbr>_____________<br class="m_-7307066485675174866gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="m_-7307066485675174866gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="m_-7307066485675174866gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="m_-7307066485675174866gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="m_-7307066485675174866gmail_msg" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br class="m_-7307066485675174866gmail_msg">
<br class="m_-7307066485675174866gmail_msg">
Official FreeSWITCH Sites<br class="m_-7307066485675174866gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="m_-7307066485675174866gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="m_-7307066485675174866gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="m_-7307066485675174866gmail_msg" target="_blank">http://confluence.freeswitch.<wbr>org</a><br class="m_-7307066485675174866gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="m_-7307066485675174866gmail_msg" target="_blank">http://www.cluecon.com</a><br class="m_-7307066485675174866gmail_msg">
<br class="m_-7307066485675174866gmail_msg">
FreeSWITCH-users mailing list<br class="m_-7307066485675174866gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="m_-7307066485675174866gmail_msg" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br class="m_-7307066485675174866gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="m_-7307066485675174866gmail_msg" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br class="m_-7307066485675174866gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="m_-7307066485675174866gmail_msg" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br class="m_-7307066485675174866gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="m_-7307066485675174866gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div>
<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>