RADIUS::rtdom

Description

This command overwrites the default RD ID in RADIUS scenario with given value

Syntax

RADIUS::rtdom <value>

Examples

when CLIENT_ACCEPTED {
    if { [RADIUS::code ] == 4 } {
        set rd 0
        # Extract the APN information from the AVP
        set called_station_id [RADIUS::avp 30 "string"]
        if {$called_station_id == "station1"} {
            set rd 1
        } elseif {$called_station_id == "station2"} {
            set rd 2
        }
        # Overwrite the default route domain value with the new value.
        RADIUS::rtdom $rd
    }
}