[asterisk-users] Asterisk Radius CDR
andrew at ivins.id.au
Tue Sep 27 18:59:13 CDT 2016
I ran into similar problems. freeradius-client returns the same error code
for numerous failure cases, so Asterisk doesn't get an opportunity to log
anything useful. If you look here:
You'll see many instances where it returns ERROR_RC. You are almost
certainly running into one of these. I ended up putting in print debug into
that file and recompiling. I think in my case it was as simple as a
hostname not resolving. Once you're not working blind, you'll find what is
happening pretty quickly.
On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir007 at gmail.com> wrote:
> I did radius client status testing with radius server, able to access the
> radius server. However, still getting radius CDR issue after setting debug
> level 8 even granting 666 access to radiusclient-ng config files.
> message: cdr_radius.c:208 radius_log: Unable to create RADIUS record. CDR
> not recorded!
> Please advise if I missed out anything.
> Date: Mon, 26 Sep 2016 12:09:34 +0200
>> From: Willy Offermans <asterisk at Offermans.Rompen.nl>
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> <asterisk-users at lists.digium.com>
>> Subject: Re: [asterisk-users] Asterisk Radius CDR
>> Message-ID: <20160926100934.GB4895 at vpn.offrom.nl>
>> Content-Type: text/plain; charset=us-ascii
>> Hello Ahmed,
>> On Fri, Sep 23, 2016 at 04:12:42PM -0400, Ahmed Munir wrote:
>> > Hi,
>> > I've recently setup Asterisk with Radius CDR by following the document:
>> > https://wiki.asterisk.org/wiki/display/AST/RADIUS+CDR+Backend.
>> > The issue currently I'm facing is after turning on the debug getting
>> > message: cdr_radius.c:208 radius_log: Unable to create RADIUS record.
>> > not recorded!
>> > I've checked and grant access 666 to radiusclient config files: servers
>> > dictionary.digium and 777 to '/var/run/radius.seq'. I've noticed that
>> > /var/run/radius.seq is not getting updated.
>> > Further added, in asterisk CLI while running command: cdr show status
>> > getting results below;
>> > Call Detail Record (CDR) settings
>> > ----------------------------------
>> > Logging: Enabled
>> > Mode: Simple
>> > Log unanswered calls: No
>> > Log congestion: No
>> > * Registered Backends
>> > -------------------
>> > cdr-syslog
>> > Adaptive ODBC
>> > cdr-custom
>> > csv
>> > radius
>> > Please advise if I may missed any steps.
>> > --
>> > Regards,
>> > Ahmed Munir Chohan
>> I cannot advice you about steps you might have missed, probably none. To
>> experience, the documentation is not sufficient.
>> I can tell you that freeradius can be run in debug mode: radiusd -X Do
>> and have a close look to the output.
>> If you cannot find any attempt to connect to the freeradius server you
>> to have a close look to the asterisk log files as well. Figure out what is
>> going wrong. There should be some clue.
>> I don't understand the grant access settings. Figure out the user which is
>> running asterisk and set the setting appropriately! I remember that I
>> needed the following access setting:
>> -rw-r----- 1 root asterisk /usr/local/etc/radiusclient-ng/servers
>> So read access for asterisk to the servers file. This was not documented
>> all, but somehow logical, if you figured it out.
>> Met vriendelijke groeten,
>> With kind regards,
>> Mit freundlichen Gruessen,
>> De jrus wah,
>> W.K. Offermans
>> Powered by ....
>> \/ \ ^
> Ahmed Munir Chohan
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
> New to Asterisk? Start here:
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the asterisk-users