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

Aqs Younas aqsyounas at gmail.com
Tue Nov 29 18:43:44 MSK 2016


Filed https://freeswitch.org/jira/browse/FS-9781
Thank You.

On 29 November 2016 at 19:47, Brian West <brian at freeswitch.org> wrote:

> 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 at 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 at 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 at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20161129/269d24ec/attachment.html 


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