Browse code

core: kemi - added KSR.is_KDQM()

Daniel-Constantin Mierla authored on 18/05/2020 09:28:20
Showing 1 changed files
... ...
@@ -1067,6 +1067,15 @@ static int sr_kemi_core_is_method_message(sip_msg_t *msg)
1067 1067
 }
1068 1068
 
1069 1069
 
1070
+/**
1071
+ *
1072
+ */
1073
+static int sr_kemi_core_is_method_kdmq(sip_msg_t *msg)
1074
+{
1075
+	return sr_kemi_core_is_method_type(msg, METHOD_KDMQ);
1076
+}
1077
+
1078
+
1070 1079
 /**
1071 1080
  *
1072 1081
  */
... ...
@@ -1755,6 +1764,11 @@ static sr_kemi_t _sr_kemi_core[] = {
1755 1764
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
1756 1765
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
1757 1766
 	},
1767
+	{ str_init(""), str_init("is_KDMQ"),
1768
+		SR_KEMIP_BOOL, sr_kemi_core_is_method_kdmq,
1769
+		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
1770
+			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
1771
+	},
1758 1772
 	{ str_init(""), str_init("is_UDP"),
1759 1773
 		SR_KEMIP_BOOL, sr_kemi_core_is_proto_udp,
1760 1774
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,