1. Uri_radius Module

Juha Heinanen

Song Networks
Revision History
Revision $Revision$ $Date$

1.1. Overview
1.2. Dependencies
1.3. Parameters
1.3.1. radius_config (string)
1.3.2. service_type (integer)
1.4. Functions
1.4.1. radius_does_uri_exist()

1.1. Overview

URI check using Radius server.

1.2. Dependencies

The following libraries or applications must be installed before running SER with this module loaded:

  • radius client library.

1.3. Parameters

Revision History
Revision $Revision$ $Date$

1.3.1. radius_config (string)

Radiusclient configuration file.

Default value is "/usr/local/etc/radiusclient/radiusclient.conf".

Example 1. Set param_name parameter

modparam("uri_radius", "radius_config", "/etc/radiusclient.conf")

1.3.2. service_type (integer)

Radius service type used in radius_does_uri_exist check.

Default value is 10 (Call-Check).

Example 2. Set param_name parameter

modparam("uri_radius", "service_type", 11)

1.4. Functions

Revision History
Revision $Revision$ $Date$

1.4.1.  radius_does_uri_exist()

Checks from Radius if user@host in Request-URI is a local user. Can be used to decide if 404 or 480 should be returned after lookup has failed. Adds SIP-AVP reply items, that must have a string value of form "name:value", as AVPs.

Example 3. radius_does_uri_exist usage

if (radius_does_uri_exist()) {