[sr-dev] git:master:489eb674: misctest: sync with fuzz msg code

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 16 11:04:53 CEST 2021


Module: kamailio
Branch: master
Commit: 489eb6742997f8e4f2dc56c894af6b8ed5ef4d33
URL: https://github.com/kamailio/kamailio/commit/489eb6742997f8e4f2dc56c894af6b8ed5ef4d33

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-09-16T11:00:56+02:00

misctest: sync with fuzz msg code

---

Modified: src/modules/misctest/misctest_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/489eb6742997f8e4f2dc56c894af6b8ed5ef4d33.diff
Patch: https://github.com/kamailio/kamailio/commit/489eb6742997f8e4f2dc56c894af6b8ed5ef4d33.patch

---

diff --git a/src/modules/misctest/misctest_mod.c b/src/modules/misctest/misctest_mod.c
index 68f70718fc..0867c1ae46 100644
--- a/src/modules/misctest/misctest_mod.c
+++ b/src/modules/misctest/misctest_mod.c
@@ -39,10 +39,14 @@
 #include "../../core/parser/parse_uri.c"
 #include "../../core/parser/parse_hname2.h"
 #include "../../core/parser/contact/parse_contact.h"
+#include "../../core/parser/parse_to.h"
+#include "../../core/parser/parse_from.h"
 #include "../../core/parser/parse_refer_to.h"
 #include "../../core/parser/parse_ppi_pai.h"
 #include "../../core/parser/parse_privacy.h"
 #include "../../core/parser/parse_diversion.h"
+#include "../../core/parser/parse_identityinfo.h"
+#include "../../core/parser/parse_disposition.h"
 
 MODULE_VERSION
 
@@ -325,22 +329,38 @@ static int misctest_message_init(void)
 		goto cleanup;
 	}
 
+	parse_headers(&tmsg, HDR_EOH_F, 0);
+
 	parse_sdp(&tmsg);
 
-	parse_headers(&tmsg, HDR_TO_F, 0);
+	parse_from_header(&tmsg);
+
+	parse_from_uri(&tmsg);
+
+	parse_to_header(&tmsg);
+
+	parse_to_uri(&tmsg);
 
 	parse_contact_header(&tmsg);
 
 	parse_refer_to_header(&tmsg);
 
-	parse_to_header(&tmsg);
-
 	parse_pai_header(&tmsg);
 
 	parse_diversion_header(&tmsg);
 
 	parse_privacy(&tmsg);
 
+	parse_content_disposition(&tmsg);
+
+	parse_identityinfo_header(&tmsg);
+
+	str uri;
+	get_src_uri(&tmsg, 0, &uri);
+
+	str ssock;
+	get_src_address_socket(&tmsg, &ssock);
+
 cleanup:
 	free_sip_msg(&tmsg);
 




More information about the sr-dev mailing list