Browse code

- 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 authored on 04/12/2008 12:02:23
Showing 2 changed files
... ...
@@ -459,7 +459,8 @@ hash_source, dstavp)
459 459
    Otherwise the rewritten host is stored in the given AVP (if
460 460
    obmitted, the host is not stored in an AVP). This function is
461 461
    only usable with rewrite_user and prefix_matching containing a
462
-   valid numerical only string. It uses the standard crc32
462
+   valid string. This string needs to be numerical if the
463
+   match_mode parameter is set to 10. It uses the standard crc32
463 464
    algorithm to calculate the hash values.
464 465
 
465 466
    Meaning of the parameters is as follows:
... ...
@@ -493,8 +494,9 @@ rewrite_user, hash_source, dstavp)
493 493
    Otherwise the rewritten host is stored in the given AVP (if
494 494
    obmitted, the host is not stored in an AVP). This function is
495 495
    only usable with rewrite_user and prefix_matching containing a
496
-   valid numerical only string. It uses the prime hash algorithm
497
-   to calculate the hash values.
496
+   valid string. This string needs to be numerical if the
497
+   match_mode parameter is set to 10. It uses the prime hash
498
+   algorithm to calculate the hash values.
498 499
 
499 500
    Meaning of the parameters is as follows:
500 501
      * carrier - The routing tree to be used. Additional to a
... ...
@@ -528,7 +530,9 @@ reply_code, dstavp)
528 528
    priority. Returns -1 if there is no data found or an empty
529 529
    next_domain on the longest match is found. Otherwise the next
530 530
    domain is stored in the given AVP. This function is only usable
531
-   with prefix_matching containing a valid numerical only string.
531
+   with rewrite_user and prefix_matching containing a valid
532
+   string. This string needs to be numerical if the match_mode
533
+   parameter is set to 10.
532 534
 
533 535
    Meaning of the parameters is as follows:
534 536
      * carrier - The routing tree to be used. Additional to a
... ...
@@ -760,7 +764,7 @@ failure_route[1] {
760 760
    Use the "NULL" prefix to specify an empty prefix in the config
761 761
    file. Please note that the prefix is matched against the
762 762
    request URI (or to URI), if they did not contain a valid
763
-   numerical URI, no match is possible. So for loadbalancing
763
+   (numerical) URI, no match is possible. So for loadbalancing
764 764
    purposes e.g. for your registrars, you should use an empty
765 765
    prefix.
766 766
 ...
... ...
@@ -427,8 +427,9 @@ cr_tree_rewrite_uri(tree, domain)
427 427
 				the rewritten host is stored in the given AVP (if obmitted, the
428 428
 				host is not stored in an AVP).
429 429
         This function is only usable with rewrite_user and prefix_matching
430
-        containing a valid numerical only string. It uses the standard crc32 algorithm
431
-		to calculate the hash values.
430
+        containing a valid string. This string needs to be numerical if the match_mode
431
+		parameter is set to 10. It uses the standard crc32 algorithm to calculate
432
+		the hash values.
432 433
 	    </para>
433 434
 	    <para>Meaning of the parameters is as follows:</para>
434 435
 	    <itemizedlist>
... ...
@@ -485,8 +486,8 @@ cr_tree_rewrite_uri(tree, domain)
485 485
 				the rewritten host is stored in the given AVP (if obmitted, the
486 486
 				host is not stored in an AVP).
487 487
         This function is only usable with rewrite_user and prefix_matching
488
-        containing a valid numerical only string. It uses the prime hash algorithm
489
-		to calculate the hash values.
488
+        containing a valid string. This string needs to be numerical if the match_mode
489
+		parameter is set to 10. It uses the prime hash algorithm to calculate the hash values.
490 490
 	    </para>
491 491
 	    <para>Meaning of the parameters is as follows:</para>
492 492
 	    <itemizedlist>
... ...
@@ -545,8 +546,9 @@ cr_tree_rewrite_uri(tree, domain)
545 545
         Returns -1 if there is no data found or an empty next_domain on
546 546
         the longest match is found. Otherwise the next domain is stored
547 547
         in the given AVP.
548
-        This function is only usable with prefix_matching containing a
549
-        valid numerical only string.
548
+        This function is only usable with rewrite_user and prefix_matching
549
+        containing a valid string. This string needs to be numerical if the match_mode
550
+		parameter is set to 10.
550 551
 	    </para>
551 552
 	    <para>Meaning of the parameters is as follows:</para>
552 553
 	    <itemizedlist>
... ...
@@ -893,7 +895,7 @@ failure_route[1] {
893 893
 		<para>
894 894
 			Use the <quote>NULL</quote> prefix to specify an empty prefix in the config file.
895 895
 			Please note that the prefix is matched against the request URI (or to URI),
896
-			if they did not contain a valid numerical URI, no match is possible. So
896
+			if they did not contain a valid (numerical) URI, no match is possible. So
897 897
 			for loadbalancing purposes e.g. for your registrars, you should use an empty
898 898
 			prefix.
899 899
 		</para>