On Sat, Mar 4, 2023 at 1:29 PM, Fourhundred Thecat <400thecat at gmx.ch> wrote:> /var/log/asterisk/master.db > > how can I change the location ? > > If this is not possible to change in the config file, where in the > source code would I change that?cdr/cdr_sqlite3_custom.c line 311 Kind regards, Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230304/e192c0b9/attachment.html>
On Sat, 4 Mar 2023, Sean Bright wrote:> On Sat, Mar 4, 2023 at 1:29 PM, Fourhundred Thecat <400thecat at gmx.ch> > wrote: > /var/log/asterisk/master.db > > how can I change the location ? > > If this is not possible to change in the config file, where in the > source code would I change that? > > > cdr/cdr_sqlite3_custom.c line 311Or... In the [directories] section of asterisk.conf, you can set astlogdir which is usually set to /var/log/asterisk/. If you want to change the actual file name, may the source be with you. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281
> On 2023-03-04 23:11, Sean Bright wrote:> > cdr/cdr_sqlite3_custom.c line 311 Hello, I asked here recently how to change the location where "cdr_sqlite3_custom" stores the sqlite database. The default is location is "astlogdir". I need to change this location without affecting the rest of the asterisk logs. Sean Bright suggested to patch cdr/cdr_sqlite3_custom.c But I cannot hard-code the path either. How could I create new custom configuration variable, perhaps "cdrlogdir", that I could then assign in asterisk.conf ? Can this be done easily by patching few lines somewhere? thanks,