[sr-dev] git:master:5267f4d8: pike: rpc pike.top - support for case insensitive match of parameter

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 11 11:23:42 CEST 2020


Module: kamailio
Branch: master
Commit: 5267f4d8e884aa74bfd792565dbf5f524789cc56
URL: https://github.com/kamailio/kamailio/commit/5267f4d8e884aa74bfd792565dbf5f524789cc56

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-08-11T11:22:35+02:00

pike: rpc pike.top - support for case insensitive match of parameter

---

Modified: src/modules/pike/pike_rpc.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5267f4d8e884aa74bfd792565dbf5f524789cc56.diff
Patch: https://github.com/kamailio/kamailio/commit/5267f4d8e884aa74bfd792565dbf5f524789cc56.patch

---

diff --git a/src/modules/pike/pike_rpc.c b/src/modules/pike/pike_rpc.c
index 6c5797eba4..e3997e34b3 100644
--- a/src/modules/pike/pike_rpc.c
+++ b/src/modules/pike/pike_rpc.c
@@ -128,11 +128,11 @@ static void pike_top(rpc_t *rpc, void *c)
 		stropts = "HOT";
 
 	DBG("pike:top: string options: '%s'", stropts);
-	if ( strstr(stropts, "ALL") ) {
+	if ( strcasestr(stropts, "ALL") ) {
 		options = NODE_STATUS_ALL;
-	} else if ( strstr(stropts, "HOT") ) {
+	} else if ( strcasestr(stropts, "HOT") ) {
 		options |= NODE_STATUS_HOT;
-	} else if ( strstr(stropts, "WARM") ) {
+	} else if ( strcasestr(stropts, "WARM") ) {
 		options |= NODE_STATUS_WARM;
 	}
 	DBG("pike:top: options: 0x%02x\n", options);




More information about the sr-dev mailing list