# Using radius async

## Downloading radius-client library

You can download the last freeRADIUS Client Library sources from here . So the first step would be to download these sources in any folder you want. In this exaple we will consider this folder generically called freeRADIUS-client. After you download the sources, extract the contents of the archive.

### downloading the library

    ........
    mkdir freeRADIUS-client; cd freeRADIUS-client
    wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-client-1.1.7.tar.gz
    tar -xzvf freeradius-client-1.1.7.tar.gz
    ........

## Applying the patch

After you extracted the contents of the archive, you can apply the patch called radius_async_support.patch that you can find in modules/aaa_radius/ inside &osips; sources folder. You must apply this patch to the freeRADIUS-client library and after this you can install the radius library as usual using configure and make commands and free to use the library.

### How to apply the patch

    ........
    cd freeRADIUS-client/freeradius-client-1.1.7.tar.gz
    patch -p1 < /path/to/opensips/modules/aaa_radius/radius_async_support.patch
    ./configure --any-options-you-want
    make
    sudo make install
    ........