[Freeswitch-users] freeswitch logs A-leg and B-leg json_cdr in different directories

Aqs Younas aqsyounas at gmail.com
Tue Nov 29 17:43:08 MSK 2016


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161129/a183de8a/attachment.html 


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