comparison doc/rt_ereg.conf.sample @ 1338:f1b65381c1e7

rt_ereg: Support config reload. Support grouped AVPs. Support multiple separate AVPs. Written for Effortel Technologies SA, published with their consent.
author Thomas Klausner <tk@giga.or.at>
date Tue, 09 Apr 2019 15:48:45 +0200
parents ecfa089bd29a
children
comparison
equal deleted inserted replaced
1337:d66f60e29b22 1338:f1b65381c1e7
1 # This file contains information for configuring the rt_ereg extension. 1 # This file contains information for configuring the rt_ereg extension.
2 # To find how to have freeDiameter load this extension, please refer to the freeDiameter documentation. 2 # To find how to have freeDiameter load this extension, please refer to the freeDiameter documentation.
3 # 3 #
4 # The rt_ereg extension allows creation of routing rules based on AVP value matching regular expressions. 4 # The rt_ereg extension allows creation of routing rules based on AVP value matching regular expressions.
5 5
6 # This extension supports configuration reload at runtime. Send
7 # signal SIGUSR1 to the process to cause the process to reload its
8 # config.
9
6 # First, one must indicate which AVP should be used for matching. 10 # First, one must indicate which AVP should be used for matching.
7 # At the moment, only AVP with OCTETSTRING types are valid. 11 # At the moment, only AVP with OCTETSTRING types are valid.
8 # AVP = "User-Name"; 12 # AVP = "User-Name";
13 # It is possible to specify AVPs below GROUPED AVPs with the by separating AVPs with a colon (':'):
14 # AVP = "Grouped-AVP1" : "Grouped-AVP2" : "Octetstring-AVP";
9 # This parameter is mandatory. There is no default value. 15 # This parameter is mandatory. There is no default value.
10 16
11 # Then a list of rules follow. A rule has this format: 17 # Then a list of rules follow. A rule has this format:
12 # "pattern" : "server" += score ; 18 # "pattern" : "server" += score ;
13 # Where: 19 # Where:
17 # Example: 23 # Example:
18 # "[[:digit:]]*" : "serverA.example.net" += -3 ; 24 # "[[:digit:]]*" : "serverA.example.net" += -3 ;
19 # means that if the AVP value is only numeric, the ServerA will have its score decreased by 3 points. 25 # means that if the AVP value is only numeric, the ServerA will have its score decreased by 3 points.
20 # (reminder: the server with the peer with the highest score gets the message) 26 # (reminder: the server with the peer with the highest score gets the message)
21 # Note that all rules are tested for each message that contain the AVP, not only the first match. 27 # Note that all rules are tested for each message that contain the AVP, not only the first match.
28
29 # There can be multiple blocks of AVPs and rules; just start the next one with another AVP line:
30 # AVP = "Other-AVP";
31 # and continue with rules as above.
"Welcome to our mercurial repository"