Copyright © 2003-2008 Juha Heinanen
Revision History | |
---|---|
Revision $Revision: 4594 $ | $Date: 2008-08-06 12:08:33 +0200 (Wed, 06 Aug 2008) $ |
Table of Contents
List of Examples
The module depends on the following modules (in the other words the listed modules must be loaded before this module):
none
The following libraries or applications must be installed before compilling Kamailio with this module loaded:
radiusclient-ng 0.5.0 or higher -- library and development files. See http://developer.berlios.de/projects/radiusclient-ng/.
Radiusclient configuration file.
Default value is “/usr/local/etc/radiusclient-ng/radiusclient.conf”.
Example 1.1. Set param_name
parameter
... modparam("uri_radius", "radius_config", "/etc/radiusclient.conf") ...
Radius service type used in
radius_does_uri_exist
and radius_does_uri_user_exist
checks.
Default value is 10 (Call-Check).
If zero, radius_does_uri_exist
sends to RADIUS server Request URI user@host in UserName
attribute. If non-zero, radius_does_uri_exist
sends to RADIUS server Request URI user in UserName attribute
and host in SIP-URI-Host attribute.
Default value is 0.
Checks from Radius if user@host in Request-URI or in URI stored in pseudo variable argument belongs to a local user. Can be used to decide if 404 or 480 should be returned after lookup has failed. If yes, loads AVP based on SIP-AVP reply items returned from Radius. Each SIP-AVP reply item must have a string value of form:
value = SIP_AVP_NAME SIP_AVP_VALUE
SIP_AVP_NAME = STRING_NAME | '#'ID_NUMBER
SIP_AVP_VALUE = ':'STRING_VALUE | '#'NUMBER_VALUE
Returns 1 if Radius returns Access-Accept, -1 if Radius returns Access-Reject, and -2 in case of internal error.
This function can be used from REQUEST_ROUTE.
Similar to radius_does_uri_exist, but check is done based only on Request-URI user part or user stored in pseudo variable argument. User should thus be unique among all users, such as an E.164 number.
This function can be used from REQUEST_ROUTE.