Home

Resources

Products

Developers

Main • YRadius

YRadius Module

YRadius adds support for RADIUS support in yate to bill calls using well known RADIUS billing mechanism.

The yradius module requires the cdrbuild module.

RADIUS Attributes

YRadius supports both Authentication (may be Authorization is the best term there ?) and Accounting. It doesn't support Authentification (Registration) yet.

It supports following RADIUS attributes:

  
  User-Name
  User-Password
  NAS-IP-Address
  NAS-Port
  Vendor-Specific (only for CISCO's h323-conf-id)
  Session-Timeout
  Called-Station-Id
  Calling-Station-Id
  NAS-Identifier
  Acct-Status-Type
  Acct-Delay-Time
  Acct-Session-Id
  Acct-Session-Time

The h323-conf-id is the billing id used by YATE.

You can add as many RADIUS servers you want.

Configuration File

Configuration has 3 sections. First one is general specifying the IDs of NAS. The other 2 sections are for nas and radius. Each nas section is named with words ''nasN' where N is the number of nas in this configuration, like nas1, nas2, nas3 ... nasN. But don't miss any nas in the middle. (This behavior will soon change). The radius section is for radius server, it follows similar pattern and should contain radius1, radius2, radius3 ... radiusN, respectively.

Right now one server is supported for each NAS. Option to have more backup servers will be added soon. Although you can reference same radius server sections more than once in different NAS sections.

Disabling Accounting or Authentication

By default a radius section would have both authentication and accounting enabled. But this can be controlled by disabling the feature you don't want. if you only want to bill then use:

 
  disable_auth=on

Comprehensive yradius.conf

 
[general]
nas_id=yatenas           ; identifier for this NAS
nas_ip=192.168.0.2       ; ip address of this nas
nas_port=5062            ; port to use for listening (can be anything)
priority=55


[nas1]
called_num=^1234\(.*\)$  ; number to match for authenticating/billing.
radsec=radius1           ; name of section containing info about RADIUS server, defined later
authfailnum=1235         ; number to route to if authfails.
autherrnum=1236          ; number to route to if some other error occurs

[radius1]
server=192.168.0.2       ; address of RADIUS server
auth_port=1812           ; auth port for radius server
acct_port=1813           ; acct port for radius server
secret=nassecret         ; shared secret with RADIUS server
;disable_auth=on         ; disable auth for this radius server
;disable_acct=on         ; disable accounting for this radius server
timeoutsecs = 5          ; timeout for receiving reply from server
retries = 2              ; retries to send auth or acct packets

3 May 2010:
Yate 3.0.0 alpha 3 released. Featuring the new Jabber server and wideband audio.
Download NOW

8 March 2010:
Yate 2.2 released. Mostly bug fixes. Dahdi compatible. Latest 2 release before 3.0.

6-7 February 2010:
Yate booth at FOSDEM 2010. Free CD with Freesentral available.

2 Nov 2009:
Yate 2.1 launched. Can replace a Cisco PGW2200 to control a Cisco AS54xx.

6 Aug 2008:
Yate and OpenSIPS (former OpenSER) join to build IP based clusters.

4 Aug 2008:
Yate 2 launched.

10 Jul 2008:
Yate presentation in Germany.

Feb 2008:
Yate 2.0.0 alpha 2 released. New routing module allows sending ENUM routed or forked calls to numbers of registered phones. More...

21 Jan 2008:
Yate 2 alpha released. Major changes, new ISDN, SS7 and MGCP stack. Added analogic and RBS support.

3 September:
Yate 1.3 released. Minor fixes and improvments mainly in client and SIP.

14 August:
Yate based ISDN passive recording system released by Trisys.

16 April:
Yate 1.2 released. Added Jingle and XML support, PBX improved.

25 September:
YateAdmin 1 released.

25 September:
Yate 1.1 released. Fallback routing from a database, fax support in Linux and bug fixes. Changelog and Download availables.

11 July 2006:
O'Reilly published an article about prototyping telephony applications with Yate and Python.

10 July 2006:
Yate 1 released. Includes YIAX, YSIP, YRTP and many new features.

June 1st 2006:
New Yate website launched


EditHistoryBacklinksRecent ChangesSearch