Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Asterisk Radius CDR


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ahmedmunir007 at gmail...
Guest





PostPosted: Fri Sep 23, 2016 3:13 pm    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

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. CDR 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
Back to top
asterisk at Offermans....
Guest





PostPosted: Mon Sep 26, 2016 5:10 am    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

Hello Ahmed,

On Fri, Sep 23, 2016 at 04:12:42PM -0400, Ahmed Munir wrote:
Quote:
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. CDR
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 my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd -X Do this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius server you need
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 at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
W.K. Offermans

Powered by ....

(__)
\\\'',)
\/ \ ^
.\._/_)

www.FreeBSD.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
ahmedmunir007 at gmail...
Guest





PostPosted: Tue Sep 27, 2016 2:32 pm    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

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.



Quote:
Date: Mon, 26 Sep 2016 12:09:34 +0200
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
        <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160926100934.GB4895@vpn.offrom.nl (20160926100934.GB4895@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:
Quote:
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. CDR
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 my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd -X Do this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius server you need
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 at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
 W.K. Offermans

                                       Powered by ....

                                            (__)
                                         \\\'',)
                                           \/  \ ^
                                           .\._/_)

                                       www.FreeBSD.org



--
Regards,

Ahmed Munir Chohan
Back to top
andrew at ivins.id.au
Guest





PostPosted: Tue Sep 27, 2016 6:59 pm    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

Hi Ahmed,

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:


https://github.com/FreeRADIUS/freeradius-client/blob/master/lib/buildreq.c



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.


Andrew


On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
Quote:
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.



Quote:
Date: Mon, 26 Sep 2016 12:09:34 +0200
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
        <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160926100934.GB4895@vpn.offrom.nl (20160926100934.GB4895@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:
Quote:
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. CDR
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 my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd -X Do this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius server you need
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 at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
 W.K. Offermans

                                       Powered by ....

                                            (__)
                                         \\\'',)
                                           \/  \ ^
                                           .\._/_)

                                       www.FreeBSD.org





--
Regards,

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
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
asterisk at Offermans....
Guest





PostPosted: Wed Sep 28, 2016 3:10 am    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

Hello Ahmed, Andrew, and asterisk friends,

Some time ago, I ran into similar problems as well Smile I can confirm the
statement of Andrew: Turn on the logging facilities and you will find your
issue most likely. However, you need also a strategy. ``Radius client
testing'' as you mentioned, can mean anything. The point is, can asterisk
talk to the freeradius server via the client settings? To my opinion, this
is easy to test. Maybe the message: ``cdr_radius.c:208 radius_log: Unable
to create RADIUS record. CDR not recorded'' already implies that this is
not possible. I cannot judge it. You can by turning on radiusd -X and have
a close look to the output.

On Wed, Sep 28, 2016 at 07:59:13AM +0800, Andrew Ivins wrote:
Quote:
Hi Ahmed,

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:

https://github.com/FreeRADIUS/freeradius-client/blob/master/lib/buildreq.c

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.

Andrew

On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir007@gmail.com> wrote:

Quote:
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
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl>
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160926100934.GB4895@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:
Quote:
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.
CDR
Quote:
not recorded!

I've checked and grant access 666 to radiusclient config files: servers
&
Quote:
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
my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd -X Do
this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius server you
need
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
at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
W.K. Offermans

Powered by ....

(__)
\\\'',)
\/ \ ^
.\._/_)

www.FreeBSD.org



--
Regards,

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
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
W.K. Offermans

Powered by ....

(__)
\\\'',)
\/ \ ^
.\._/_)

www.FreeBSD.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
ahmedmunir007 at gmail...
Guest





PostPosted: Wed Sep 28, 2016 12:25 pm    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

Hi Andrew and Willy,


Thanks for sharing the info.


As for enabling radius server debugging 'radiusd -X', made some test calls don't see the radiusclient sending data to radius server. However, using radtest or radiusclient testing, able to send data to radius server (after enabling debug).


For further testing, on my other server  using OpenSIPs, setup the radiusclient  and data was able to send over to radius server without any issue i.e. using same radiusclient config that I'm using for Asterisk radiusclient.


Btw, will try to work on Andrew advise and will update you if I make any progress.




Quote:
Date: Wed, 28 Sep 2016 10:09:51 +0200
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
        <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160928080951.GA4977@vpn.offrom.nl (20160928080951.GA4977@vpn.offrom.nl)>
Content-Type: text/plain; charset=us-ascii

Hello Ahmed, Andrew, and asterisk friends,

Some time ago, I ran into similar problems as well Smile I can confirm the
statement of Andrew: Turn on the logging facilities and you will find your
issue most likely.  However, you need also a strategy. ``Radius client
testing'' as you mentioned, can mean anything. The point is, can asterisk
talk to the freeradius server via the client settings? To my opinion, this
is easy to test. Maybe the message: ``cdr_radius.c:208 radius_log: Unable
to create RADIUS record. CDR not recorded'' already implies that this is
not possible. I cannot judge it. You can by turning on radiusd -X and have
a close look to the output.

On Wed, Sep 28, 2016 at 07:59:13AM +0800, Andrew Ivins wrote:
Quote:
Hi Ahmed,

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:

https://github.com/FreeRADIUS/freeradius-client/blob/master/lib/buildreq.c

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.

Andrew

On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:

Quote:
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
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
         <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160926100934.GB4895@vpn.offrom.nl (20160926100934.GB4895@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:
Quote:
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.
CDR
Quote:
not recorded!

I've checked and grant access 666 to radiusclient config files: servers
&
Quote:
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
my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd -X Do
this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius server you
need
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
at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
  W.K. Offermans

                                        Powered by ....

                                             (__)
                                          \\\'',)
                                            \/  \ ^
                                            .\._/_)

                                        www.FreeBSD.org



--
Regards,

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
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
 W.K. Offermans

                                       Powered by ....

                                            (__)
                                         \\\'',)
                                           \/  \ ^
                                           .\._/_)

                                       www.FreeBSD.org




***********************************************



--
Regards,

Ahmed Munir Chohan
Back to top
asterisk at Offermans....
Guest





PostPosted: Thu Sep 29, 2016 2:56 am    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

Hi Ahmed and asterisk friends,

So asterisk cannot contact the radius server.

The radiusclient __can__ contact the radius server.

Check in the asterisk log files why asterisk cannot contact the radius
server! Be also aware of the user, who is running the daemons. This user
might need read access to certain configuration files.

On Wed, Sep 28, 2016 at 01:24:58PM -0400, Ahmed Munir wrote:
Quote:
Hi Andrew and Willy,

Thanks for sharing the info.

As for enabling radius server debugging 'radiusd -X', made some test calls
don't see the radiusclient sending data to radius server. However, using
radtest or radiusclient testing, able to send data to radius server (after
enabling debug).

For further testing, on my other server using OpenSIPs, setup the
radiusclient and data was able to send over to radius server without any
issue i.e. using same radiusclient config that I'm using for Asterisk
radiusclient.

Btw, will try to work on Andrew advise and will update you if I make any
progress.



Date: Wed, 28 Sep 2016 10:09:51 +0200
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl>
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160928080951.GA4977@vpn.offrom.nl>
Content-Type: text/plain; charset=us-ascii

Hello Ahmed, Andrew, and asterisk friends,

Some time ago, I ran into similar problems as well Smile I can confirm the
statement of Andrew: Turn on the logging facilities and you will find your
issue most likely. However, you need also a strategy. ``Radius client
testing'' as you mentioned, can mean anything. The point is, can asterisk
talk to the freeradius server via the client settings? To my opinion, this
is easy to test. Maybe the message: ``cdr_radius.c:208 radius_log: Unable
to create RADIUS record. CDR not recorded'' already implies that this is
not possible. I cannot judge it. You can by turning on radiusd -X and have
a close look to the output.

On Wed, Sep 28, 2016 at 07:59:13AM +0800, Andrew Ivins wrote:
Quote:
Hi Ahmed,

I ran into similar problems. freeradius-client returns the same error
code
Quote:
for numerous failure cases, so Asterisk doesn't get an opportunity to log
anything useful. If you look here:

https://github.com/FreeRADIUS/freeradius-client/blob/master/
lib/buildreq.c
Quote:

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
Quote:
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
Quote:
happening pretty quickly.

Andrew

On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir007@gmail.com>
wrote:
Quote:

Quote:
I did radius client status testing with radius server, able to access
the
Quote:
Quote:
radius server. However, still getting radius CDR issue after setting
debug
Quote:
Quote:
level 8 even granting 666 access to radiusclient-ng config files.

message: cdr_radius.c:208 radius_log: Unable to create RADIUS record.
CDR
Quote:
Quote:
not recorded!

Please advise if I missed out anything.


Date: Mon, 26 Sep 2016 12:09:34 +0200
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl>
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160926100934.GB4895@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:
Quote:
Hi,

I've recently setup Asterisk with Radius CDR by following the
document:
Quote:
Quote:
Quote:
Quote:
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.
Quote:
Quote:
Quote:
CDR
Quote:
not recorded!

I've checked and grant access 666 to radiusclient config files:
servers
Quote:
Quote:
Quote:
&
Quote:
dictionary.digium and 777 to '/var/run/radius.seq'. I've noticed
that
Quote:
Quote:
Quote:
Quote:
/var/run/radius.seq is not getting updated.


Further added, in asterisk CLI while running command: cdr show
status
Quote:
Quote:
Quote:
Quote:
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
Quote:
Quote:
Quote:
my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd -X Do
this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius server you
need
to have a close look to the asterisk log files as well. Figure out
what is
Quote:
Quote:
Quote:
going wrong. There should be some clue.

I don't understand the grant access settings. Figure out the user
which is
Quote:
Quote:
Quote:
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
Quote:
Quote:
Quote:
at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
W.K. Offermans

Powered by ....

(__)
\\\'',)
\/ \ ^
.\._/_)

www.FreeBSD.org



--
Regards,

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
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
W.K. Offermans

Powered by ....

(__)
\\\'',)
\/ \ ^
.\._/_)

www.FreeBSD.org




***********************************************




--
Regards,

Ahmed Munir Chohan

Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel
Willy

*************************************
Dr. W.K. Offermans
CAT Fellow
CAT Catalytic Center
Institut fuer Technische und Makromolekulare Chemie
RWTH Aachen University
Worringerweg 2, Raum 38C-150
D-52074 Aachen, Germany
Phone: +49 241 80 26770
Fax: +49 241 80 22593
Home: +31 45 544 49 44
Mobile: +31 681 15 87 68
Mobile: +49 1575 414 60 55
e-mail: Willem@Offermans.Rompen.nl
e-mail: Willy.Offermans@CatalyticCenter.RWTH-Aachen.de

Powered by ....

(__)
\\\'',)
\/ \ ^
.\._/_)

www.FreeBSD.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
andrew at ivins.id.au
Guest





PostPosted: Thu Sep 29, 2016 3:38 am    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

You don't get anything in the Asterisk logs because freeradius-client (formerly radiusclient-ng) returns a single failure code for any failure when building a radius request.

Andrew


On 29 September 2016 at 15:55, Willy Offermans <asterisk@offermans.rompen.nl (asterisk@offermans.rompen.nl)> wrote:
Quote:
Hi Ahmed and asterisk friends,

So asterisk cannot contact the radius server.

The radiusclient __can__ contact the radius server.

Check in the asterisk log files why asterisk cannot contact the radius
server! Be also aware of the user, who is running the daemons. This user
might need read access to certain configuration files.

On Wed, Sep 28, 2016 at 01:24:58PM -0400, Ahmed Munir wrote:
Quote:
Hi Andrew and Willy,

Thanks for sharing the info.

As for enabling radius server debugging 'radiusd -X', made some test calls
don't see the radiusclient sending data to radius server. However, using
radtest or radiusclient testing, able to send data to radius server (after
enabling debug).

For further testing, on my other server  using OpenSIPs, setup the
radiusclient  and data was able to send over to radius server without any
issue i.e. using same radiusclient config that I'm using for Asterisk
radiusclient.

Btw, will try to work on Andrew advise and will update you if I make any
progress.



Date: Wed, 28 Sep 2016 10:09:51 +0200
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
         <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160928080951.GA4977@vpn.offrom.nl (20160928080951.GA4977@vpn.offrom.nl)>
Content-Type: text/plain; charset=us-ascii

Hello Ahmed, Andrew, and asterisk friends,

Some time ago, I ran into similar problems as well Smile I can confirm the
statement of Andrew: Turn on the logging facilities and you will find your
issue most likely.  However, you need also a strategy. ``Radius client
testing'' as you mentioned, can mean anything. The point is, can asterisk
talk to the freeradius server via the client settings? To my opinion, this
is easy to test. Maybe the message: ``cdr_radius.c:208 radius_log: Unable
to create RADIUS record. CDR not recorded'' already implies that this is
not possible. I cannot judge it. You can by turning on radiusd -X and have
a close look to the output.

On Wed, Sep 28, 2016 at 07:59:13AM +0800, Andrew Ivins wrote:
Quote:
Hi Ahmed,

I ran into similar problems. freeradius-client returns the same error
code
Quote:
for numerous failure cases, so Asterisk doesn't get an opportunity to log
anything useful. If you look here:

https://github.com/FreeRADIUS/freeradius-client/blob/master/
lib/buildreq.c
Quote:

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
Quote:
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
Quote:
happening pretty quickly.

Andrew

On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)>
wrote:
Quote:

Quote:
I did radius client status testing with radius server, able to access
the
Quote:
Quote:
radius server. However, still getting radius CDR issue after setting
debug
Quote:
Quote:
level 8 even granting 666 access to radiusclient-ng config files.

message: cdr_radius.c:208 radius_log: Unable to create RADIUS record.
CDR
Quote:
Quote:
not recorded!

Please advise if I missed out anything.


Date: Mon, 26 Sep 2016 12:09:34 +0200
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
         <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160926100934.GB4895@vpn.offrom.nl (20160926100934.GB4895@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:
Quote:
Hi,

I've recently setup Asterisk with Radius CDR by following the
document:
Quote:
Quote:
Quote:
Quote:
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.
Quote:
Quote:
Quote:
CDR
Quote:
not recorded!

I've checked and grant access 666 to radiusclient config files:
servers
Quote:
Quote:
Quote:
&
Quote:
dictionary.digium and 777 to '/var/run/radius.seq'. I've noticed
that
Quote:
Quote:
Quote:
Quote:
/var/run/radius.seq is not getting updated.


Further added, in asterisk CLI while running command: cdr show
status
Quote:
Quote:
Quote:
Quote:
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
Quote:
Quote:
Quote:
my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd -X Do
this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius server you
need
to have a close look to the asterisk log files as well. Figure out
what is
Quote:
Quote:
Quote:
going wrong. There should be some clue.

I don't understand the grant access settings. Figure out the user
which is
Quote:
Quote:
Quote:
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
Quote:
Quote:
Quote:
at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
  W.K. Offermans

                                        Powered by ....

                                             (__)
                                          \\\'',)
                                            \/  \ ^
                                            .\._/_)

                                        www.FreeBSD.org



--
Regards,

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
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
  W.K. Offermans

                                        Powered by ....

                                             (__)
                                          \\\'',)
                                            \/  \ ^
                                            .\._/_)

                                        www.FreeBSD.org




***********************************************




--
Regards,

Ahmed Munir Chohan

Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel


Willy

*************************************
Dr. W.K. Offermans
CAT Fellow
CAT Catalytic Center
Institut fuer Technische und Makromolekulare Chemie
RWTH Aachen University
Worringerweg 2, Raum 38C-150
D-52074 Aachen, Germany
Phone:  [url=tel:%2B49%20241%2080%2026770]+49 241 80 26770[/url]
Fax:    [url=tel:%2B49%20241%2080%2022593]+49 241 80 22593[/url]
Home:   [url=tel:%2B31%2045%20544%2049%2044]+31 45 544 49 44[/url]
Mobile: [url=tel:%2B31%20681%2015%2087%2068]+31 681 15 87 68[/url]
Mobile: [url=tel:%2B49%201575%20414%2060%2055]+49 1575 414 60 55[/url]
e-mail: Willem@Offermans.Rompen.nl (Willem@Offermans.Rompen.nl)
e-mail: Willy.Offermans@CatalyticCenter.RWTH-Aachen.de (Willy.Offermans@CatalyticCenter.RWTH-Aachen.de)

                                       Powered by ....

                                            (__)
                                         \\\'',)
                                           \/  \ ^
                                           .\._/_)

                                       www.FreeBSD.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Back to top
andrew at ivins.id.au
Guest





PostPosted: Thu Sep 29, 2016 5:11 am    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

You won't see anything in the Asterisk logs because there's nothing to log. The error happens in the freeradius-client library and returns an integer. On 29 Sep 2016 17:44, "Willem Offermans" <Willem@offermans.rompen.nl (Willem@offermans.rompen.nl)> wrote:
Quote:
Hello Andrew and asterisk friends,

I suspect that asterisk has problems to deal with the radiusclient in some
way. Therefore it cannot contact the radius server. There should be some
clue in the log files of asterisk, other than ``Unable to create RADIUS
record. CDR not recorded''

As a last resort, extra debug info from the source code can be invoked by
printf commands. But this involves some work.

On Thu, Sep 29, 2016 at 04:38:06PM +0800, Andrew Ivins wrote:
Quote:
You don't get anything in the Asterisk logs because freeradius-client
(formerly radiusclient-ng) returns a single failure code for any failure
when building a radius request.

Andrew

On 29 September 2016 at 15:55, Willy Offermans <asterisk@offermans.rompen.nl (asterisk@offermans.rompen.nl)
Quote:
wrote:

Quote:
Hi Ahmed and asterisk friends,

So asterisk cannot contact the radius server.

The radiusclient __can__ contact the radius server.

Check in the asterisk log files why asterisk cannot contact the radius
server! Be also aware of the user, who is running the daemons. This user
might need read access to certain configuration files.

On Wed, Sep 28, 2016 at 01:24:58PM -0400, Ahmed Munir wrote:
Quote:
Hi Andrew and Willy,

Thanks for sharing the info.

As for enabling radius server debugging 'radiusd -X', made some test
calls
Quote:
don't see the radiusclient sending data to radius server. However, using
radtest or radiusclient testing, able to send data to radius server
(after
Quote:
enabling debug).

For further testing, on my other server  using OpenSIPs, setup the
radiusclient  and data was able to send over to radius server without any
issue i.e. using same radiusclient config that I'm using for Asterisk
radiusclient.

Btw, will try to work on Andrew advise and will update you if I make any
progress.



Date: Wed, 28 Sep 2016 10:09:51 +0200
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
         <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160928080951.GA4977@vpn.offrom.nl (20160928080951.GA4977@vpn.offrom.nl)>
Content-Type: text/plain; charset=us-ascii

Hello Ahmed, Andrew, and asterisk friends,

Some time ago, I ran into similar problems as well Smile I can confirm the
statement of Andrew: Turn on the logging facilities and you will find
your
Quote:
Quote:
issue most likely.  However, you need also a strategy. ``Radius client
testing'' as you mentioned, can mean anything. The point is, can
asterisk
Quote:
Quote:
talk to the freeradius server via the client settings? To my opinion,
this
Quote:
Quote:
is easy to test. Maybe the message: ``cdr_radius.c:208 radius_log:
Unable
Quote:
Quote:
to create RADIUS record. CDR not recorded'' already implies that this
is
Quote:
Quote:
not possible. I cannot judge it. You can by turning on radiusd -X and
have
Quote:
Quote:
a close look to the output.

On Wed, Sep 28, 2016 at 07:59:13AM +0800, Andrew Ivins wrote:
Quote:
Hi Ahmed,

I ran into similar problems. freeradius-client returns the same error
code
Quote:
for numerous failure cases, so Asterisk doesn't get an opportunity
to log
Quote:
Quote:
Quote:
anything useful. If you look here:

https://github.com/FreeRADIUS/freeradius-client/blob/master/
lib/buildreq.c
Quote:

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
Quote:
Quote:
into
Quote:
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
Quote:
Quote:
is
Quote:
happening pretty quickly.

Andrew

On 28 September 2016 at 03:32, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)>
wrote:
Quote:

Quote:
I did radius client status testing with radius server, able to
access
Quote:
Quote:
the
Quote:
Quote:
radius server. However, still getting radius CDR issue after
setting
Quote:
Quote:
debug
Quote:
Quote:
level 8 even granting 666 access to radiusclient-ng config files.

message: cdr_radius.c:208 radius_log: Unable to create RADIUS
record.
Quote:
Quote:
CDR
Quote:
Quote:
not recorded!

Please advise if I missed out anything.


Date: Mon, 26 Sep 2016 12:09:34 +0200
Quote:
From: Willy Offermans <asterisk@Offermans.Rompen.nl (asterisk@Offermans.Rompen.nl)>
To: Asterisk Users Mailing List - Non-Commercial Discussion
         <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID: <20160926100934.GB4895@vpn.offrom.nl (20160926100934.GB4895@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:
Quote:
Hi,

I've recently setup Asterisk with Radius CDR by following the
document:
Quote:
Quote:
Quote:
Quote:
https://wiki.asterisk.org/wiki/display/AST/RADIUS+CDR+Backend.

The issue currently I'm facing is after turning on the debug
getting
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
message: cdr_radius.c:208 radius_log: Unable to create RADIUS
record.
Quote:
Quote:
Quote:
CDR
Quote:
not recorded!

I've checked and grant access 666 to radiusclient config files:
servers
Quote:
Quote:
Quote:
&
Quote:
dictionary.digium and 777 to '/var/run/radius.seq'. I've noticed
that
Quote:
Quote:
Quote:
Quote:
/var/run/radius.seq is not getting updated.


Further added, in asterisk CLI while running command: cdr show
status
Quote:
Quote:
Quote:
Quote:
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.
Quote:
Quote:
To
Quote:
Quote:
Quote:
my
experience, the documentation is not sufficient.

I can tell you that freeradius can be run in debug mode: radiusd
-X Do
Quote:
Quote:
Quote:
Quote:
Quote:
this
and have a close look to the output.

If you cannot find any attempt to connect to the freeradius
server you
Quote:
Quote:
Quote:
Quote:
Quote:
need
to have a close look to the asterisk log files as well. Figure out
what is
Quote:
Quote:
Quote:
going wrong. There should be some clue.

I don't understand the grant access settings. Figure out the user
which is
Quote:
Quote:
Quote:
running asterisk and set the setting appropriately! I remember
that I
Quote:
Quote:
Quote:
Quote:
Quote:
needed the following access setting:

-rw-r-----  1 root  asterisk  /usr/local/etc/radiusclient-
ng/servers
Quote:
Quote:
Quote:
Quote:
Quote:

So read access for asterisk to the servers file. This was not
documented
Quote:
Quote:
Quote:
at
all, but somehow logical, if you figured it out.

--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
  W.K. Offermans

                                        Powered by ....

                                             (__)
                                          \\\'',)
                                            \/  \ ^
                                            .\._/_)

                                        www.FreeBSD.org



--
Regards,

Ahmed Munir Chohan


--
____________________________________________________________
_________
Quote:
Quote:
Quote:
Quote:
-- Bandwidth and Colocation Provided by http://www.api-digital.com
--
Quote:
Quote:
Quote:
Quote:

Join the Asterisk Community at the 13th AstriCon, September 27-29,
2016
Quote:
Quote:
Quote:
Quote:
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


Quote:
--
____________________________________________________________
_________
Quote:
Quote:
Quote:
-- Bandwidth and Colocation Provided by http://www.api-digital.com
--
Quote:
Quote:
Quote:

Join the Asterisk Community at the 13th AstriCon, September 27-29,
2016
Quote:
Quote:
Quote:
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
  W.K. Offermans

                                        Powered by ....

                                             (__)
                                          \\\'',)
                                            \/  \ ^
                                            .\._/_)

                                        www.FreeBSD.org




***********************************************




--
Regards,

Ahmed Munir Chohan

Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel


Quote:
Quote:
*************************************

                                        Powered by ....

                                             (__)
                                          \\\'',)
                                            \/  \ ^
                                            .\._/_)

                                        www.FreeBSD.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users



--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
 W.K. Offermans

                                       Powered by ....

                                            (__)
                                         \\\'',)
                                           \/  \ ^
                                           .\._/_)

                                       www.FreeBSD.org

Back to top
ahmedmunir007 at gmail...
Guest





PostPosted: Thu Oct 06, 2016 8:46 am    Post subject: [asterisk-users] Asterisk Radius CDR Reply with quote

Hi Willy & Andrew,


After doing alot of hits and tries, the issue found at the dictionary.digium at radius client end. For the solution, I used the dictionary.digium that comes with asterisk source file, restarted asterisk services and able to send CDR data over to radius server.


Thanks guys for your help.

On Thu, Sep 29, 2016 at 12:18 PM, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
Quote:
Hi Guys,


Even though enabling Asterisk debug (setting to 9), getting same message and not providing enough logs;

 DEBUG[10801][C-00000000]: cdr_radius.c:208 radius_log: Unable to create RADIUS record. CDR not recorded!


As per my observation, if I update/rename the dictionary.digium file name in dictionary to dictionary.digium1 and unload and load cdr_radius.so module, getting message as;

 NOTICE[10792]: cdr_radius.c:271 load_module: Cannot load radiusclient-ng dictionary file.


Later I correct it, able to load cdr_radius.so module.


Seems like it there is some issue with cdr_radius.so module itself interm of passing data over to radiusclient from asterisk.


Even though I've granted and set permissions 777 for radiusclient configs, but the issue remains the same.


Please advise the fix for resolving this issue.





Quote:
Date: Thu, 29 Sep 2016 18:11:15 +0800
From: Andrew Ivins <andrew@ivins.id.au (andrew@ivins.id.au)>
To: Willem@offermans.rompen.nl (Willem@offermans.rompen.nl)
Cc: asterisk-users <asterisk-users@lists.digium.com (asterisk-users@lists.digium.com)>
Subject: Re: [asterisk-users] Asterisk Radius CDR
Message-ID:
        <CAEvXPRMOdjPbd0sB7kcvZfDc45=XC=ou1JSsVANeNYSw=h-Zxg@mail.gmail.com (h-Zxg@mail.gmail.com)>
Content-Type: text/plain; charset="utf-8"

You won't see anything in the Asterisk logs because there's nothing to log.
The error happens in the freeradius-client library and returns an integer.
On 29 Sep 2016 17:44, "Willem Offermans" <Willem@offermans.rompen.nl (Willem@offermans.rompen.nl)> wrote:

Hello Andrew and asterisk friends,

I suspect that asterisk has problems to deal with the radiusclient in some
way. Therefore it cannot contact the radius server. There should be some
clue in the log files of asterisk, other than ``Unable to create RADIUS
record. CDR not recorded''

As a last resort, extra debug info from the source code can be invoked by
printf commands. But this involves some work.

On Thu, Sep 29, 2016 at 04:38:06PM +0800, Andrew Ivins wrote:
Quote:
You don't get anything in the Asterisk logs because freeradius-client
(formerly radiusclient-ng) returns a single failure code for any failure
when building a radius request.

Andrew

On 29 September 2016 at 15:55, Willy Offermans <
asterisk@offermans.rompen.nl (asterisk@offermans.rompen.nl)
Quote:
Quote:
wrote:

Quote:
Hi Ahmed and asterisk friends,

So asterisk cannot contact the radius server.

The radiusclient __can__ contact the radius server.

Check in the asterisk log files why asterisk cannot contact the radius
server! Be also aware of the user, who is running the daemons. This user
might need read access to certain configuration files.

On Wed, Sep 28, 2016 at 01:24:58PM -0400, Ahmed Munir wrote:
Quote:
Hi Andrew and Willy,

Thanks for sharing the info.

As for enabling radius server debugging 'radiusd -X', made some test
calls
Quote:
don't see the radiusclient sending data to radius server. However,
using
Quote:
Quote:
Quote:
radtest or radiusclient testing, able to send data to radius server
(after
Quote:
enabling debug).

For further testing, on my other server  using OpenSIPs, setup the
radiusclient  and data was able to send over to radius server without
any
Quote:
Quote:
Quote:
issue i.e. using same radiusclient config that I'm using for Asterisk
radiusclient.

Btw, will try to work on Andrew advise and will update you if I make
any
Quote:
Quote:
Quote:
progress.






--
Regards,

Ahmed Munir Chohan

Quote:
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29,
2016
Quote:
Quote:
Quote:
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************

                                        Powered by ....

                                             (__)
                                          \\\'',)
                                            \/  \ ^
                                            .\._/_)

                                        www.FreeBSD.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
       http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
       https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users


--
Met vriendelijke groeten,
With kind regards,
Mit freundlichen Gruessen,
De jrus wah,

Wiel

*************************************
 W.K. Offermans

                                       Powered by ....

                                            (__)
                                         \\\'',)
                                           \/  \ ^
                                           .\._/_)

                                       www.FreeBSD.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20160929/5db94db2/attachment.html>

------------------------------

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

End of asterisk-users Digest, Vol 146, Issue 32
***********************************************





--
Regards,

Ahmed Munir Chohan








--
Regards,

Ahmed Munir Chohan
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services