[sr-dev] git:master:7c912517: core: kemi - use uppercase method value in helper function names

Daniel-Constantin Mierla miconda at gmail.com
Wed May 9 09:46:05 CEST 2018


Module: kamailio
Branch: master
Commit: 7c9125178b5b5d133919e0abc5bc687271783c5b
URL: https://github.com/kamailio/kamailio/commit/7c9125178b5b5d133919e0abc5bc687271783c5b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-05-09T09:44:47+02:00

core: kemi - use uppercase method value in helper function names

- better matching with how is in sip message

---

Modified: src/core/kemi.c

---

Diff:  https://github.com/kamailio/kamailio/commit/7c9125178b5b5d133919e0abc5bc687271783c5b.diff
Patch: https://github.com/kamailio/kamailio/commit/7c9125178b5b5d133919e0abc5bc687271783c5b.patch

---

diff --git a/src/core/kemi.c b/src/core/kemi.c
index 8ee9e1c91b..afe46321f6 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -1353,62 +1353,62 @@ 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_invite"),
+	{ str_init(""), str_init("is_INVITE"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_invite,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_ack"),
+	{ str_init(""), str_init("is_ACK"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_ack,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_bye"),
+	{ str_init(""), str_init("is_BYE"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_bye,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_cancel"),
+	{ str_init(""), str_init("is_CANCEL"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_cancel,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_register"),
+	{ str_init(""), str_init("is_REGISTER"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_register,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_options"),
+	{ str_init(""), str_init("is_OPTIONS"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_options,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_subscribe"),
+	{ str_init(""), str_init("is_SUBSCRIBE"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_subscribe,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_publish"),
+	{ str_init(""), str_init("is_PUBLISH"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_publish,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_notify"),
+	{ str_init(""), str_init("is_NOTIFY"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_notify,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_info"),
+	{ str_init(""), str_init("is_INFO"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_info,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_update"),
+	{ str_init(""), str_init("is_UPDATE"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_update,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
 	},
-	{ str_init(""), str_init("is_prack"),
+	{ str_init(""), str_init("is_PRACK"),
 		SR_KEMIP_INT, sr_kemi_core_is_method_prack,
 		{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
 			SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }




More information about the sr-dev mailing list