<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Matt,</p>
<p><br>
</p>
<p>In /etc/asterisk create this file:</p>
<p>cdr.conf</p>
<div><br>
</div>
<div>[general]</div>
<div>enable=yes</div>
<div>loggingsafeshutdown=yes</div>
<div><br>
</div>
<div>[csv]</div>
<div>usegmtime=yes</div>
<div>loguniqueid=yes</div>
<div>logusrfield=yes</div>
<div><br>
</div>
then on asterisk CLI you can do a "module load cdr_csv.so"<br>
voila.. CDR records will be retained in /var/log/asterisk/cdr-csv/Master.csv
<div><br>
</div>
<div>to make it load when asterisk starts, edit modules.conf</div>
<div>and add </div>
<div>load=cdr_csv.so</div>
<div><br>
</div>
<div>73,</div>
<div><br>
</div>
<div>Lito KI9H<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> arm-allstar <arm-allstar-bounces@hamvoip.org> on behalf of Matt via arm-allstar <arm-allstar@hamvoip.org><br>
<b>Sent:</b> Thursday, October 13, 2016 9:38 AM<br>
<b>To:</b> ARM Allstar<br>
<b>Cc:</b> Matt<br>
<b>Subject:</b> Re: [arm-allstar] Connection History</font>
<div> </div>
</div>
<div>Thanks all for your responses.<br>
<br>
I'll hold on for a while Doug.<br>
<br>
Much appreciated.<br>
<br>
Matt<br>
M0LMK<br>
<span></span><br>
<blockquote type="cite" style="border:0px none">
<div class="__pbConvHr" style="margin:30px 25px 10px 25px">
<div style="width:100%; border-top:2px solid #EDF1F4; padding-top:10px">
<div style="display:inline-block; white-space:nowrap; vertical-align:middle; width:49%">
<a href="mailto:arm-allstar@hamvoip.org" style="color:#485664!important; padding-right:6px; font-weight:500; text-decoration:none!important">Doug Crompton via arm-allstar</a></div>
<div style="display:inline-block; white-space:nowrap; vertical-align:middle; width:48%; text-align:right">
<font color="#909AA4"><span style="padding-left:6px">13 October 2016 at 17:36</span></font></div>
</div>
</div>
<div class="__pbConvBody" style="color:#909AA4; margin-left:24px; margin-right:24px">
<div dir="ltr">
<div class="gmail_default" style="font-family:tahoma,sans-serif">We are looking into a better and possibly separate log from the Asterisk log with plain language messages to solve this problem. Stay tuned.<br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div><b><font size="4">73 Doug<br>
</font></b></div>
<b><font size="4">WA3DSP<br>
</font></b></div>
<b><font size="4"><a target="_blank" href="http://www.crompton.com/hamradio">http://www.crompton.com/hamradio</a><br>
</font></b></div>
</div>
</div>
<br>
<br>
</div>
<div>_______________________________________________<br>
<br>
arm-allstar mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br>
<br>
Visit the BBB and RPi2 web page - <a class="moz-txt-link-freetext" href="http://hamvoip.org">
http://hamvoip.org</a></div>
</div>
<div class="__pbConvHr" style="margin:30px 25px 10px 25px">
<div style="width:100%; border-top:2px solid #EDF1F4; padding-top:10px">
<div style="display:inline-block; white-space:nowrap; vertical-align:middle; width:49%">
<a href="mailto:arm-allstar@hamvoip.org" style="color:#485664!important; padding-right:6px; font-weight:500; text-decoration:none!important">James Nessen via arm-allstar</a></div>
<div style="display:inline-block; white-space:nowrap; vertical-align:middle; width:48%; text-align:right">
<font color="#909AA4"><span style="padding-left:6px">13 October 2016 at 17:20</span></font></div>
</div>
</div>
<div class="__pbConvBody" style="color:#909AA4; margin-left:24px; margin-right:24px">
<div dir="ltr">Or, you could search for the IP address in the nodes file and grab the associated node number.
<div><br>
</div>
<div>Jim, K6JWN</div>
</div>
<div class="gmail_extra"><br>
<br>
</div>
<div>_______________________________________________<br>
<br>
arm-allstar mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br>
<br>
Visit the BBB and RPi2 web page - <a class="moz-txt-link-freetext" href="http://hamvoip.org">
http://hamvoip.org</a></div>
</div>
<div class="__pbConvHr" style="margin:30px 25px 10px 25px">
<div style="width:100%; border-top:2px solid #EDF1F4; padding-top:10px">
<div style="display:inline-block; white-space:nowrap; vertical-align:middle; width:49%">
<a href="mailto:arm-allstar@hamvoip.org" style="color:#485664!important; padding-right:6px; font-weight:500; text-decoration:none!important">Jacques Paquin via arm-allstar</a></div>
<div style="display:inline-block; white-space:nowrap; vertical-align:middle; width:48%; text-align:right">
<font color="#909AA4"><span style="padding-left:6px">12 October 2016 at 21:24</span></font></div>
</div>
</div>
<div class="__pbConvBody" style="color:#909AA4; margin-left:24px; margin-right:24px">
<div dir="ltr">
<div>
<div>I turned on verbose logging in logger.conf <br>
<br>
</div>
Then in the log file I see:<br>
[Oct 12 16:16:31] VERBOSE[23597] logger.c: -- Call accepted by 129.21.236.10 (format ulaw)<br>
[Oct 12 16:16:31] VERBOSE[23597] logger.c: -- Format for call is ulaw<br>
[Oct 12 16:16:33] VERBOSE[23642] logger.c: -- Hungup 'DAHDI/pseudo-1683865569'<br>
[Oct 12 16:16:33] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'rpt/node' (language 'en')<br>
[Oct 12 16:16:34] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/4' (language 'en')<br>
[Oct 12 16:16:35] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')<br>
[Oct 12 16:16:35] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/6' (language 'en')<br>
[Oct 12 16:16:36] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/0' (language 'en')<br>
[Oct 12 16:16:37] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/1' (language 'en')<br>
[Oct 12 16:16:37] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'rpt/connected' (language 'en')<br>
[Oct 12 16:16:38] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')<br>
[Oct 12 16:16:39] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'rpt/node' (language 'en')<br>
[Oct 12 16:16:39] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/4' (language 'en')<br>
[Oct 12 16:16:40] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/3' (language 'en')<br>
[Oct 12 16:16:41] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/4' (language 'en')<br>
[Oct 12 16:16:41] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')<br>
[Oct 12 16:16:42] VERBOSE[23643] logger.c: -- <DAHDI/pseudo-1658842406> Playing 'digits/2' (language 'en')<br>
[Oct 12 16:16:42] VERBOSE[23643] logger.c: -- Hungup 'DAHDI/pseudo-1658842406'<br>
<br>
<br>
</div>
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"<br>
<br>
> I would like to display the connection history of the repeater on its<br>
> website.<br>
><br>
> I already pull the current status to the website but wondered if there is<br>
> a log of connections made to and from the node somewhere that I can read<br>
> from and then display on the site?<br>
><br>
> Matt<br>
> M0LMK<br>
><br>
><br>
</div>
<div>_______________________________________________<br>
<br>
arm-allstar mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br>
<br>
Visit the BBB and RPi2 web page - <a class="moz-txt-link-freetext" href="http://hamvoip.org">
http://hamvoip.org</a></div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</div>
</body>
</html>