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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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);
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to