|
@@ -20,9 +20,9 @@ Juha Heinanen
|
|
|
|
|
|
<[email protected]>
|
|
|
|
|
|
- Copyright © 2010 Daniel-Constantin Mierla (asipto.com)
|
|
|
+ Copyright (c) 2010 Daniel-Constantin Mierla (asipto.com)
|
|
|
|
|
|
- Copyright © 2011 Juha Heinanen
|
|
|
+ Copyright (c) 2011 Juha Heinanen
|
|
|
__________________________________________________________________
|
|
|
|
|
|
Table of Contents
|
|
@@ -275,8 +275,8 @@ modparam("mtree", "pv_value", "$var(mtval)")
|
|
|
|
|
|
3.10. pv_values (string)
|
|
|
|
|
|
- The PV spec where to store the matched values when mtree is of type 0
|
|
|
- or 2 and mode of mt_match() call has value 2. It can be any AVP.
|
|
|
+ The AVP where to store the matched values when mtree is of type 0 or 2
|
|
|
+ and mode of mt_match() call has value 2.
|
|
|
|
|
|
Default value is "$avp(s:tvalues)".
|
|
|
|
|
@@ -323,7 +323,7 @@ modparam("mtree", "mt_allow_duplicates", 1)
|
|
|
|
|
|
4.1. mt_match(mtree, pv, mode)
|
|
|
|
|
|
-4.1. mt_match(mtree, pv, mode)
|
|
|
+4.1. mt_match(mtree, pv, mode)
|
|
|
|
|
|
Match 'pv' value against 'mtree'. If 'mtree' type is 0 or 2 and value
|
|
|
of 'mode' is NOT 2, sets a value of the longest matching prefix to
|
|
@@ -333,6 +333,8 @@ modparam("mtree", "mt_allow_duplicates", 1)
|
|
|
matching prefix is in avp index 0. Parameter 'mode' can be an integer
|
|
|
constant or a pseudo variable with integer value.
|
|
|
|
|
|
+ Returns 1 if match succeeded and -1 otherwise.
|
|
|
+
|
|
|
Example 1.14. mt_match usage
|
|
|
...
|
|
|
mt_match("mytree", "$rU", "0");
|
|
@@ -345,7 +347,7 @@ mt_match("mytree", "$rU", "0");
|
|
|
5.3. mt_summary
|
|
|
5.4. mt_match
|
|
|
|
|
|
-5.1. mt_list
|
|
|
+5.1. mt_list
|
|
|
|
|
|
List content of a tree.
|
|
|
|
|
@@ -359,7 +361,7 @@ mt_match("mytree", "$rU", "0");
|
|
|
_mtname_
|
|
|
_empty_line_
|
|
|
|
|
|
-5.2. mt_reload
|
|
|
+5.2. mt_reload
|
|
|
|
|
|
Reload mtree from database.
|
|
|
|
|
@@ -374,7 +376,7 @@ mt_match("mytree", "$rU", "0");
|
|
|
_mtname_
|
|
|
_empty_line_
|
|
|
|
|
|
-5.3. mt_summary
|
|
|
+5.3. mt_summary
|
|
|
|
|
|
List usage summary for all trees.
|
|
|
|
|
@@ -386,7 +388,7 @@ mt_match("mytree", "$rU", "0");
|
|
|
:mt_summary:_reply_fifo_file_
|
|
|
_empty_line_
|
|
|
|
|
|
-5.4. mt_match
|
|
|
+5.4. mt_match
|
|
|
|
|
|
Match prefix value against mtree.
|
|
|
|
|
@@ -410,7 +412,7 @@ mt_match("mytree", "$rU", "0");
|
|
|
6.2. mtree.reload
|
|
|
6.3. mtree.match
|
|
|
|
|
|
-6.1. mtree.summary
|
|
|
+6.1. mtree.summary
|
|
|
|
|
|
List usage summary for all trees or for the tree whose name is given as
|
|
|
parameter.
|
|
@@ -418,7 +420,7 @@ mt_match("mytree", "$rU", "0");
|
|
|
Parameters:
|
|
|
* _mtree_ - (optional) the name of the tree.
|
|
|
|
|
|
-6.2. mtree.reload
|
|
|
+6.2. mtree.reload
|
|
|
|
|
|
Reload mtree from database to memory.
|
|
|
|
|
@@ -426,7 +428,7 @@ mt_match("mytree", "$rU", "0");
|
|
|
* _mtree_
|
|
|
- name of mtree or empty string meaning all mtrees
|
|
|
|
|
|
-6.3. mtree.match
|
|
|
+6.3. mtree.match
|
|
|
|
|
|
Match prefix value against mtree
|
|
|
|