Răsfoiți Sursa

- fix some obselete informations about the user strings,
they can now be non-numerical too


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5297 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt 17 ani în urmă
părinte
comite
892c7710a9

+ 9 - 5
modules/carrierroute/README

@@ -459,7 +459,8 @@ hash_source, dstavp)
    Otherwise the rewritten host is stored in the given AVP (if
    obmitted, the host is not stored in an AVP). This function is
    only usable with rewrite_user and prefix_matching containing a
-   valid numerical only string. It uses the standard crc32
+   valid string. This string needs to be numerical if the
+   match_mode parameter is set to 10. It uses the standard crc32
    algorithm to calculate the hash values.
 
    Meaning of the parameters is as follows:
@@ -493,8 +494,9 @@ rewrite_user, hash_source, dstavp)
    Otherwise the rewritten host is stored in the given AVP (if
    obmitted, the host is not stored in an AVP). This function is
    only usable with rewrite_user and prefix_matching containing a
-   valid numerical only string. It uses the prime hash algorithm
-   to calculate the hash values.
+   valid string. This string needs to be numerical if the
+   match_mode parameter is set to 10. It uses the prime hash
+   algorithm to calculate the hash values.
 
    Meaning of the parameters is as follows:
      * carrier - The routing tree to be used. Additional to a
@@ -528,7 +530,9 @@ reply_code, dstavp)
    priority. Returns -1 if there is no data found or an empty
    next_domain on the longest match is found. Otherwise the next
    domain is stored in the given AVP. This function is only usable
-   with prefix_matching containing a valid numerical only string.
+   with rewrite_user and prefix_matching containing a valid
+   string. This string needs to be numerical if the match_mode
+   parameter is set to 10.
 
    Meaning of the parameters is as follows:
      * carrier - The routing tree to be used. Additional to a
@@ -760,7 +764,7 @@ failure_route[1] {
    Use the "NULL" prefix to specify an empty prefix in the config
    file. Please note that the prefix is matched against the
    request URI (or to URI), if they did not contain a valid
-   numerical URI, no match is possible. So for loadbalancing
+   (numerical) URI, no match is possible. So for loadbalancing
    purposes e.g. for your registrars, you should use an empty
    prefix.
 ...

+ 9 - 7
modules/carrierroute/doc/carrierroute_admin.xml

@@ -427,8 +427,9 @@ cr_tree_rewrite_uri(tree, domain)
 				the rewritten host is stored in the given AVP (if obmitted, the
 				host is not stored in an AVP).
         This function is only usable with rewrite_user and prefix_matching
-        containing a valid numerical only string. It uses the standard crc32 algorithm
-		to calculate the hash values.
+        containing a valid string. This string needs to be numerical if the match_mode
+		parameter is set to 10. It uses the standard crc32 algorithm to calculate
+		the hash values.
 	    </para>
 	    <para>Meaning of the parameters is as follows:</para>
 	    <itemizedlist>
@@ -485,8 +486,8 @@ cr_tree_rewrite_uri(tree, domain)
 				the rewritten host is stored in the given AVP (if obmitted, the
 				host is not stored in an AVP).
         This function is only usable with rewrite_user and prefix_matching
-        containing a valid numerical only string. It uses the prime hash algorithm
-		to calculate the hash values.
+        containing a valid string. This string needs to be numerical if the match_mode
+		parameter is set to 10. It uses the prime hash algorithm to calculate the hash values.
 	    </para>
 	    <para>Meaning of the parameters is as follows:</para>
 	    <itemizedlist>
@@ -545,8 +546,9 @@ cr_tree_rewrite_uri(tree, domain)
         Returns -1 if there is no data found or an empty next_domain on
         the longest match is found. Otherwise the next domain is stored
         in the given AVP.
-        This function is only usable with prefix_matching containing a
-        valid numerical only string.
+        This function is only usable with rewrite_user and prefix_matching
+        containing a valid string. This string needs to be numerical if the match_mode
+		parameter is set to 10.
 	    </para>
 	    <para>Meaning of the parameters is as follows:</para>
 	    <itemizedlist>
@@ -893,7 +895,7 @@ failure_route[1] {
 		<para>
 			Use the <quote>NULL</quote> prefix to specify an empty prefix in the config file.
 			Please note that the prefix is matched against the request URI (or to URI),
-			if they did not contain a valid numerical URI, no match is possible. So
+			if they did not contain a valid (numerical) URI, no match is possible. So
 			for loadbalancing purposes e.g. for your registrars, you should use an empty
 			prefix.
 		</para>