Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-9781

freeswitch to log both A-leg and B-leg json_cdrs in same directory

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.6.12
    • Fix Version/s: None
    • Component/s: Configuration, mod_json_cdr
    • Labels:
      None
    • Environment:
      Debian Jessie 8.3
      FreeSWITCH Version 1.6.12+git~20161101T152313Z~be0499094b~64bit (git be04990 2016-11-01 15:23:13Z 64bit)
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • lsb_release:
      Hide
      Distributor ID: Debian
      Description: Debian GNU/Linux 8.3 (jessie)
      Release: 8.3
      Codename: jessie
      Show
      Distributor ID: Debian Description: Debian GNU/Linux 8.3 (jessie) Release: 8.3 Codename: jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      FreeSWITCH Version 1.6.12+git~20161101T152313Z~be0499094b~64bit (git be04990 2016-11-01 15:23:13Z 64bit)
    • GIT Master Revision hash::
      FreeSWITCH Version 1.6.12+git~20161101T152313Z~be0499094b~64bit (git be04990 2016-11-01 15:23:13Z 64bit)

      Description

      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 dynamically having both A-leg and B-leg json_cdrs preferably by json_cdr_base.

        Attachments

          Activity

            People

            • Assignee:
              brian@freeswitch.org Brian West
              Reporter:
              aqsyounas aqsyounas
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: