Navigation


Changeset 168:6db078b955e3 in freeDiameter for doc


Ignore:
Timestamp:
Feb 2, 2010, 10:15:05 AM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Completed rt_default extension

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/rt_default.conf.sample

    r167 r168  
    4545#
    4646# In the following definitions, "STR/REG" stands for:
    47 #   - a quoted string "some.peer" that will match exactly this string, or
    48 #   - a bracket-quoted string ["some regex"] that will be interpreted as a POSIX regular expression, and attempt to match the string.
     47#   - a quoted string "some.peer" that will match exactly this string (case-insensitive), or
     48#   - a bracket-quoted string ["some regex"] that will be interpreted as a POSIX extended regular expression (case-sensitive), and attempt to match the string.
    4949#
    5050# The RULE is specified as:
     
    5353# The CRITERIA can be:
    5454#    *                  -> matches any message.
    55 #    oh="STR/REG"       -> selects the message if the string or regular expression matches the message's Origin-Host
     55#    oh="STR/REG"       -> selects the message if the string or regular expression matches the message's Origin-Host AVP content
    5656#    or="STR/REG"       -> idem with Origin-Realm
    5757#    dh="STR/REG"       -> idem with Destination-Host
     
    6161#
    6262# The TARGET is also of a similar form:
    63 #    i="STR/REG"        -> Will apply the score to this peer if its Diameter-Id is matched by the string or regular expression.
    64 #    r="STR/REG"        -> Idem with the peer's advertized Diameter-Realm.
     63#    "STR/REG"          -> Will apply the score to this peer if its Diameter-Id is matched by the string or regular expression.
     64#    rlm="STR/REG"      -> Idem with the peer's advertized Diameter-Realm.
    6565#
    6666# The SCORE is either numeric (positive or negative), or one of the following constants (see values in freeDiameter.h):
     
    7979#
    8080# Here are some examples:
    81 #  1) Rule to add a default next-hop to all messages:
    82 #    * : i="proxy.testbed.aaa" += DEFAULT ;
     81#  1) Rule to add a default next-hop peer to all messages:
     82#    * : "proxy.testbed.aaa" += DEFAULT ;
    8383#
    8484#  2) Rule to route messages for a given realm (realmA) through another realm (realmB):
    85 #    dr="realmA" : r="realmB" += DEFAULT_REALM ;
     85#    dr="realmA" : rlm="realmB" += DEFAULT_REALM ;
    8686#
    8787#  3) Avoid sending messages with decorated NAI to the proxy A:
    88 #    un=[".+!.+@.+"] : i="proxy.A" += NO_DELIVERY ;
     88#    un=[".+!.+@.+"] : "proxy.A" += NO_DELIVERY ;
    8989
    9090
Note: See TracChangeset for help on using the changeset viewer.