Browse code

siputils: update docs for encode/decode_contact functions

Ovidiu Sas authored on 03/05/2021 22:20:05
Showing 1 changed files
... ...
@@ -796,7 +796,7 @@ if (is_alphanumex("$rU", "+.-_")) {
796 796
 		This function will encode uri-s inside Contact header in the following
797 797
 		manner
798 798
 		sip:username:password@ip:port;transport=protocol goes
799
-		sip:encoding_prefix*username*ip*port*protocol@hostpart.
799
+		sip:encoding_prefix*username*password*ip*port*protocol@hostpart.
800 800
 		</para>
801 801
 		<para>
802 802
 		* is the default separator and can be changed by setting the contact_flds_separator
... ...
@@ -840,9 +840,9 @@ if (src_ip == 10.0.0.0/8) encode_contact("natted_client","1.2.3.4");
840 840
 		</title>
841 841
 		<para>
842 842
 		This function will decode the request URI. If the RURI is in the format
843
-		sip:encoding_prefix*username*ip*port*protocol@hostpart it will be decoded to
844
-		sip:username:password@ip:port;transport=protocol It uses the default 
845
-		set parameter for contact encoding separator.
843
+		sip:encoding_prefix*username*password*ip*port*protocol@hostpart it will
844
+		be decoded to sip:username:password@ip:port;transport=protocol. It uses
845
+		the default set parameter for contact encoding separator.
846 846
 		</para>
847 847
 		<para>
848 848
 		The function returns negative on error, 1 on success.