Module: kamailio
Branch: master
Commit: 8db5a12f7fab1a1fc7d50c87bbf1aee325b067c2
URL: 
https://github.com/kamailio/kamailio/commit/8db5a12f7fab1a1fc7d50c87bbf1aee325b067c2

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2020-05-18T08:29:09+02:00

core: kemi - added missing is_MESSAGE()

- GH #2331

---

Modified: src/core/kemi.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/8db5a12f7fab1a1fc7d50c87bbf1aee325b067c2.diff
Patch: 
https://github.com/kamailio/kamailio/commit/8db5a12f7fab1a1fc7d50c87bbf1aee325b067c2.patch

---

diff --git a/src/core/kemi.c b/src/core/kemi.c
index 8a77c227b7..7a5ba1068d 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -1057,6 +1057,16 @@ static int sr_kemi_core_is_method_prack(sip_msg_t *msg)
        return sr_kemi_core_is_method_type(msg, METHOD_PRACK);
 }
 
+
+/**
+ *
+ */
+static int sr_kemi_core_is_method_message(sip_msg_t *msg)
+{
+       return sr_kemi_core_is_method_type(msg, METHOD_MESSAGE);
+}
+
+
 /**
  *
  */
@@ -1740,6 +1750,11 @@ static sr_kemi_t _sr_kemi_core[] = {
                { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
                        SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
        },
+       { str_init(""), str_init("is_MESSAGE"),
+               SR_KEMIP_BOOL, sr_kemi_core_is_method_message,
+               { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
+                       SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
+       },
        { str_init(""), str_init("is_UDP"),
                SR_KEMIP_BOOL, sr_kemi_core_is_proto_udp,
                { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,


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

Reply via email to