[arm-allstar] LOG

Doug Crompton wa3dsp at gmail.com
Tue Sep 11 01:30:59 EDT 2018


Luc,

 Setting up CDR logging is not just a matter of turning something on. What
you are showing is done by rather complex scripts. This type of thing is
provided in Freepbx. We have no such logging scripts in Allstar and it
would take some effort to create them. The CDR is typically provided
logging information by lines in the extensions file.

Based on this I think what you want does not exist and would take some work
to create. We have no interest in doing that since it is not something that
would be needed by users above what we already have.

I am wondering if you have tried supermon as it has a very nice logging
capability showing user connections and disconnections for all modes. While
it is storing the information in a tmp filesystem as long as the server is
running it will retain the log. We have servers running for very long
periods of time and logs could be copied to other permanent places as
needed. The smlogger code store all connects and disconnect with additional
details to  /var/log/asterisk/connectlog.  You need to setup supermon and
smlogger. The howto at hamvoip.org shows how to do this.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Mon, Sep 10, 2018 at 6:27 PM Luc Drolet VE2LUQ <ldrolet at cgocable.ca>
wrote:

> Hi Doug,
>
> Here is a file attachment an example of the files I want to have
> this example I took them in the system Xelatec "report"
>
> an example your thousand words
>
> Thank you for helping us
>
> Luc
> VE2LUQ
>
>
> > Le 10 sept. 2018 à 17:51, Doug Crompton via ARM-allstar <
> arm-allstar at hamvoip.org> a écrit :
> >
> > Luc,
> >
> > I am not familiar with cdr logging but I can tell you that CDR.conf and
> > cdr.conf are not the same file! Case matters in Linux. If it is looking
> > for  cdr.conf which I think it is, then it is not going to find CDR.conf.
> > Also Allstar is using Asterisk 1.4 so you need to be aware that commands
> > and variations of commands added in latter Asterisk versions will not
> work.
> >
> > I am curious why you are so interested in logging? Is this some
> requirement
> > in Canada? I log Allstar status info to a file on  a USB stick using the
> > Allstar statement  archivedir  with archiveaudio=0   So audio files are
> not
> > logged but if you want you can also log them. archivedir saves all status
> > information for the node you archive. It is a lot of data on a busy hub
> but
> > you can use scripts to pull out what you want. Here are my statements in
> > the node stanza I want to archive -
> >
> > archivedir=/media/MS1
> > archiveaudio=0          ; Disable saving .wav files
> >
> > My USB stick is named MS1. When Allstar is started it creates a node
> number
> > directory under this. So if this was node 40000 it would create the
> > directory /media/MS1/40000   and then start logging there with date
> stamped
> > files for each day like this -
> >
> >  112 -rw-r--r-- 1 root root    109974 Sep 10 13:53 20180910.txt
> >
> > This is today's file on one of my hubs. This is all automatic. I have
> > written scripts to pull stuff I want to see from the file.
> >
> >
> > *73 Doug*
> >
> > *WA3DSP*
> >
> > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> >
> > On Mon, Sep 10, 2018 at 7:53 AM "Luc Drolet VE2LUQ via ARM-allstar" <
> > arm-allstar at hamvoip.org> wrote:
> >
> >> Hello to you,
> >>
> >> I do not have my LOG on my USB key?
> >>
> >> I created a CDR.conf file in /etc/asterisk
> >> who has his info:  « edit"
> >>
> >> ;-----------------
> >> [general]
> >> enable = yes
> >> loggingsafeshutdown = yes
> >>
> >> [CSV]
> >> usegmtime = yes
> >> loguniqueid = yes
> >> logusrfield = yes
> >> ;————————
> >>
> >> after i go to /etc/asterisk/modules.conf , « edit"
> >> and I delete the "NO" in :    load = cdr_csv.so
> >>
> >> finally I went in ssh mode with Putty- in the 9 menu start bash shell
> >> interface
> >> I put this command so that the info is on the USB key
> >> mkdir /media/NODE1415LOG/cdr-csv
> >> my usb key is aptly named "NODE1415LOG"
> >> without space between words now
> >>
> >> I can see on my key the subfile CDR-CSV but it is empty
> >> the file "MASTER" is missing
> >>
> >> can you tell me how to create this file so that my IAXRPT and ZOIPER
> user
> >> log is in this file on my USB key?
> >> because all my users have a different username
> >> and I want to know who uses his access
> >>
> >> Thank you for your help
> >>
> >> Luc
> >> VE2LUQ
> >>
> >> _______________________________________________
> >>
> >> ARM-allstar mailing list
> >> ARM-allstar at hamvoip.org
> >> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >>
> >> Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > _______________________________________________
> >
> > ARM-allstar mailing list
> > ARM-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
>


More information about the arm-allstar mailing list