<div dir="ltr">Hi, <div><br></div><div>I am using mod_json_cdr to log files in a directory. I am setting <b>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>json_cdr_base </b>and whereas B-leg files always goes to <b>log-dir </b>set in json_cdr.conf.xml</div><div><br></div><div>If I do not set <b>json_cdr_base in </b>script both A-leg and B-leg goes to the same directory set by <b>log-dir </b>in json_cdr.conf.xml</div><div><br></div><div>I need to set directory dynamically for json_cdr that is why I am using <b>json_cdr_base</b>.</div><div><br></div><div>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><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">param name=&quot;log-dir&quot; value=&quot;/tmp/${strftime(%Y-%m-%d)}&quot;/&gt;</pre></div><div><br></div><div>I need to set directory dyonically having both A-leg and B-leg json_cdrs.  <br><br>Any suggestion is much appreciated.</div><div><br></div><div>Best Regards.  </div></div>