Commit 108e7f1266 for freeswitch.com

commit 108e7f12661a4fe2342034139e27ba11d84f0a56
Author: Dmitry Verenitsin <morbit85@gmail.com>
Date:   Wed Nov 4 19:30:57 2026 +0500

    [core] Treat received MSRP header values as data, not a format

    `msrp_parse_header()` and `msrp_parse_headers()` passed the received
    header value as the format argument of `switch_msrp_msg_add_header()`,
    so `%` sequences in it were interpreted. Pass it through `"%s"`; header
    values containing `%` are now stored unchanged.

diff --git a/src/switch_msrp.c b/src/switch_msrp.c
index 9149f39c7a..9d64036f9e 100644
--- a/src/switch_msrp.c
+++ b/src/switch_msrp.c
@@ -697,7 +697,7 @@ static char *msrp_parse_header(char *start, int skip, const char *end, switch_ms
 	if (q > p) {
 		if (*(q-1) == '\r') *(q-1) = '\0';
 		*q = '\0';
-		switch_msrp_msg_add_header(msrp_msg, htype, p);
+		switch_msrp_msg_add_header(msrp_msg, htype, "%s", p);
 		return q + 1;
 	}
 	return start;
@@ -718,7 +718,7 @@ static switch_msrp_msg_t *msrp_parse_headers(char *start, int len, switch_msrp_m

 			if (q > p) {
 				*q = '\0';
-				switch_msrp_msg_add_header(msrp_msg, MSRP_H_TRASACTION_ID, p);
+				switch_msrp_msg_add_header(msrp_msg, MSRP_H_TRASACTION_ID, "%s", p);
 				switch_msrp_msg_add_header(msrp_msg, MSRP_H_DELIMITER, "-------%s", p);
 				msrp_msg->state = MSRP_ST_PARSE_HEADER;
 			}
@@ -748,7 +748,7 @@ static switch_msrp_msg_t *msrp_parse_headers(char *start, int len, switch_msrp_m
 					if (q > p) {
 						if (*(q-1) == '\r') *(q-1) = '\0';
 						*q = '\0';
-						switch_msrp_msg_add_header(msrp_msg, MSRP_H_CODE_DESCRIPTION, p);
+						switch_msrp_msg_add_header(msrp_msg, MSRP_H_CODE_DESCRIPTION, "%s", p);
 						p = ++q;
 					}
 				}