<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE-AT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>cdr-exporter is not mediator, it is a separate program, launched via cron.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>It also has a dedicated logfile.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'>br<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Von:</span></b><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'> qabane me [mailto:qabaneitsolutions@gmail.com] <br><b>Gesendet:</b> Dienstag, 2. Juli 2019 12:33<br><b>An:</b> Rene Krenn <rkrenn@sipwise.com><br><b>Cc:</b> Spce-user <spce-user@lists.sipwise.com><br><b>Betreff:</b> Re: [Spce-user] no cdrs after upgrade - mediator is running<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Ok, found this:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>DBHOST=localhost<br>DBUSER=exporter<br>DBPASS=XXXXXXXXXXXXX<br>DBDB=accounting<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>in /etc/ngcp-cdr-exporter/cdr-exporter.conf<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Restarting Mediator gives me this:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Jul  2 12:29:07 sipwise (debug) mediator[16939]: Writing pid file.<br>Jul  2 12:29:07 sipwise (info) mediator[16939]: ACC acc database host='localhost', port='3306', user='kamailio', name='kamailio'<br>Jul  2 12:29:07 sipwise (info) mediator[16939]: CDR acc database host='localhost', port='3306', user='mediator', name='accounting'<br>Jul  2 12:29:07 sipwise (info) mediator[16939]: PROV database host='localhost', port='3306', user='mediator', name='provisioning'<br>Jul  2 12:29:07 sipwise (info) mediator[16939]: STATS database host='localhost', port='3306', user='mediator', name='stats'<br>Jul  2 12:29:07 sipwise (debug) mediator[16939]: Setting up mysql connections.<br>Jul  2 12:29:07 sipwise (info) mediator[16939]: Up and running, daemonized=1, pid-path='/var/run/mediator.pid', interval=10<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>No mention of a DBUSER exporter though. Am I barking up the right tree?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Tue, Jul 2, 2019 at 12:17 PM qabane me <<a href="mailto:qabaneitsolutions@gmail.com">qabaneitsolutions@gmail.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><div><p class=MsoNormal>Hi<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks for the quick response. Indeed they show unexported. <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>You can investigate by executing it from commandline.</span> > I am not sure what you mean by that and/or what to fix :-(?<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Tue, Jul 2, 2019 at 12:13 PM Rene Krenn <<a href="mailto:rkrenn@sipwise.com" target="_blank">rkrenn@sipwise.com</a>> wrote:<o:p></o:p></p></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>If you check accounting.cdr databse tables, what export_status do the records there show?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>If „unexported“, cdr-exporter is not running properly; eg. it’s dbuser is rejected. You can investigate by executing it from commandline.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>br</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'>Von:</span></b><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Spce-user [mailto:</span><a href="mailto:spce-user-bounces@lists.sipwise.com" target="_blank"><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'>spce-user-bounces@lists.sipwise.com</span></a><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'>] <b>Im Auftrag von </b>qabane me<br><b>Gesendet:</b> Dienstag, 2. Juli 2019 12:08<br><b>An:</b> Spce-user <</span><a href="mailto:spce-user@lists.sipwise.com" target="_blank"><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'>spce-user@lists.sipwise.com</span></a><span lang=DE style='font-size:11.0pt;font-family:"Calibri",sans-serif'>><br><b>Betreff:</b> [Spce-user] no cdrs after upgrade - mediator is running</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi there<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>We upgraded our sipwise to 4.5.12. I have just picked up that the cdrs appear to not be generated. Mediator is running, the CDR log shows:<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Jul  2 12:04:15 sipwise (debug) mediator[4291]: Overall 2131068 CDRs created so far.<br>Jul  2 12:04:18 sipwise (debug) mediator[4291]: Overall 2131071 CDRs created so far.<br>Jul  2 12:04:21 sipwise (debug) mediator[4291]: Overall 2131073 CDRs created so far.<br>Jul  2 12:04:24 sipwise (debug) mediator[4291]: Overall 2131079 CDRs created so far.<br>Jul  2 12:04:27 sipwise (debug) mediator[4291]: Overall 2131083 CDRs created so far.<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>So all appears to be working. It does create the various files in the /home/jail/home/resellers/default directory, but they are blank. There are no files though at all in the /system directory since the upgrade.<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Any ideas what could be missing?<o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div></div></blockquote></div></blockquote></div></div></body></html>