Browse code

siputils: export is_gruu() to kemi

(cherry picked from commit a33b41ba804bc944b0e1c4ecf17fdc3ca68d4da0)

Stefan Mititelu authored on 13/09/2022 08:41:04 • Daniel-Constantin Mierla committed on 27/09/2022 09:51:42
Showing 1 changed files
... ...
@@ -115,6 +115,7 @@ static int fixup_get_uri_param(void** param, int param_no);
115 115
 static int free_fixup_get_uri_param(void** param, int param_no);
116 116
 static int fixup_option(void** param, int param_no);
117 117
 
118
+static int ki_is_gruu(sip_msg_t *msg);
118 119
 
119 120
 char *contact_flds_separator = DEFAULT_SEPARATOR;
120 121
 
... ...
@@ -722,11 +723,20 @@ static sr_kemi_t sr_kemi_siputils_exports[] = {
722 723
 		{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
723 724
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
724 725
 	},
726
+	{ str_init("siputils"), str_init("is_gruu"),
727
+		SR_KEMIP_INT, ki_is_gruu,
728
+		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
729
+			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
730
+	},
725 731
 
726 732
 	{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } }
727 733
 };
728 734
 /* clang-format on */
729 735
 
736
+static int ki_is_gruu(sip_msg_t *msg) {
737
+	return w_is_gruu(msg, NULL, NULL);
738
+}
739
+
730 740
 /**
731 741
  *
732 742
  */