It would have to be patched to allow that. It's a simple patch really, file a JIRA and I'll look at it.

/b

On Tue, Nov 29, 2016 at 8:44 AM Aqs Younas <aqsyounas@gmail.com> wrote:
Hi, 

I am using mod_json_cdr to log files in a directory. I am setting json_cdr_base in my javascript to dynamically set log directory. I have observed freeswitch is writing only A-leg files in directory set by json_cdr_base and whereas B-leg files always goes to log-dir set in json_cdr.conf.xml

If I do not set json_cdr_base in script both A-leg and B-leg goes to the same directory set by log-dir in json_cdr.conf.xml

I need to set directory dynamically for json_cdr that is why I am using json_cdr_base.

I tried to use log-dir like this but freeswitch is not evaluating the expression. Instead, it is treating this as a string. 
param name="log-dir" value="/tmp/${strftime(%Y-%m-%d)}"/>

I need to set directory dyonically having both A-leg and B-leg json_cdrs.  

Any suggestion is much appreciated.

Best Regards.  
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org