diff --git a/data/tariffplans/nifilters/Filters.csv b/data/tariffplans/nifilters/Filters.csv new file mode 100644 index 000000000..91d3090a2 --- /dev/null +++ b/data/tariffplans/nifilters/Filters.csv @@ -0,0 +1,9 @@ +#Tenant[0],ID[1],Type[2],Element[3],Values[4],ActivationInterval[5] +cgrates.org,NIFLTR_ACT_1001,*nistring,~*req.Account,1001, +cgrates.org,NIFLTR_PRF,*niprefix,~*req.Destination,10;20, +cgrates.org,NIFLTR_SFX,*nisuffix,~*req.Destination,01,2014-07-29T15:00:00Z + + + + + diff --git a/docs/filters.rst b/docs/filters.rst index a91d9e0f9..63df4d902 100644 --- a/docs/filters.rst +++ b/docs/filters.rst @@ -54,18 +54,27 @@ The following types are implemented: \*notstring Is the negation of *\*string*. +\*nistring + Non-indexed version of *\*string*. Bypasses field indexing. + \*prefix Will match at beginning of *Element* one of the values defined inside *Values*. \*notprefix Is the negation of *\*prefix*. +\*niprefix + Non-indexed version of *\*prefix*. Bypasses field indexing. + \*suffix Will match at end of *Element* one of the values defined inside *Values*. \*notsuffix* Is the negation of *\*suffix*. +\*nisuffix* + Non-indexed version of *\*suffix*.. Bypasses field indexing. + \*empty Will make sure that *Element* is empty or it does not exist in the event. @@ -78,6 +87,9 @@ The following types are implemented: \*notexists Is the negation of *\*exists*. +\*niexists + Non-indexed version of *\*exists*. Bypasses field indexing. + \*timings Will compare the time contained in *Element* with one of the TimingIDs defined in Values.