[arm-allstar] Connection History

Roselito de los Reyes tolitski at hotmail.com
Thu Oct 13 12:56:47 EST 2016


Matt,


In /etc/asterisk create this file:

cdr.conf

[general]
enable=yes
loggingsafeshutdown=yes

[csv]
usegmtime=yes
loguniqueid=yes
logusrfield=yes

then on asterisk CLI you can do a "module load cdr_csv.so"
voila.. CDR records will be retained in /var/log/asterisk/cdr-csv/Master.csv

to make it load when asterisk starts, edit modules.conf
and add
load=cdr_csv.so

73,

Lito KI9H

________________________________
From: arm-allstar <arm-allstar-bounces at hamvoip.org> on behalf of Matt via arm-allstar <arm-allstar at hamvoip.org>
Sent: Thursday, October 13, 2016 9:38 AM
To: ARM Allstar
Cc: Matt
Subject: Re: [arm-allstar] Connection History

Thanks all for your responses.

I'll hold on for a while Doug.

Much appreciated.

Matt
M0LMK

Doug Crompton via arm-allstar<mailto:arm-allstar at hamvoip.org>
13 October 2016 at 17:36
We are looking into a better and possibly separate log from the Asterisk log with plain language messages to solve this problem. Stay tuned.

73 Doug
WA3DSP
http://www.crompton.com/hamradio


_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2 web page - http://hamvoip.org
James Nessen via arm-allstar<mailto:arm-allstar at hamvoip.org>
13 October 2016 at 17:20
Or, you could search for the IP address in the nodes file and grab the associated node number.

Jim, K6JWN


_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2 web page - http://hamvoip.org
Jacques Paquin via arm-allstar<mailto:arm-allstar at hamvoip.org>
12 October 2016 at 21:24
I turned on verbose logging in logger.conf

Then in the log file I see:
[Oct 12 16:16:31] VERBOSE[23597] logger.c:     -- Call accepted by 129.21.236.10 (format ulaw)
[Oct 12 16:16:31] VERBOSE[23597] logger.c:     -- Format for call is ulaw
[Oct 12 16:16:33] VERBOSE[23642] logger.c:     -- Hungup 'DAHDI/pseudo-1683865569'
[Oct 12 16:16:33] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'rpt/node' (language 'en')
[Oct 12 16:16:34] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/4' (language 'en')
[Oct 12 16:16:35] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')
[Oct 12 16:16:35] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/6' (language 'en')
[Oct 12 16:16:36] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/0' (language 'en')
[Oct 12 16:16:37] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/1' (language 'en')
[Oct 12 16:16:37] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'rpt/connected' (language 'en')
[Oct 12 16:16:38] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')
[Oct 12 16:16:39] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'rpt/node' (language 'en')
[Oct 12 16:16:39] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/4' (language 'en')
[Oct 12 16:16:40] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/3' (language 'en')
[Oct 12 16:16:41] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/4' (language 'en')
[Oct 12 16:16:41] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')
[Oct 12 16:16:42] VERBOSE[23643] logger.c:     -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')
[Oct 12 16:16:42] VERBOSE[23643] logger.c:     -- Hungup 'DAHDI/pseudo-1658842406'


So it looks like from that you could pick out "Call accepted" string, but you'd have to back into the node by looking up that IP address or scanning forward to the digits after "connected" & "2"

> I would like to display the connection history of the repeater on its
> website.
>
> I already pull the current status to the website but wondered if there is
> a log of connections made to and from the node somewhere that I can read
> from and then display on the site?
>
> Matt
> M0LMK
>
>
_______________________________________________

arm-allstar mailing list
arm-allstar at hamvoip.org<mailto:arm-allstar at hamvoip.org>
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar

Visit the BBB and RPi2 web page - http://hamvoip.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hamvoip.org/pipermail/arm-allstar/attachments/20161013/9cf67a0f/attachment-0001.html>


More information about the arm-allstar mailing list