Module: kamailio
Branch: master
Commit: 138097c19ba7b00eac983798a72225ab73ddf73d
URL:
https://github.com/kamailio/kamailio/commit/138097c19ba7b00eac983798a72225a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-09-03T13:08:38+02:00
pike: use core search functions
---
Modified: src/modules/pike/pike_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/138097c19ba7b00eac983798a72225a…
Patch:
https://github.com/kamailio/kamailio/commit/138097c19ba7b00eac983798a72225a…
---
diff --git a/src/modules/pike/pike_rpc.c b/src/modules/pike/pike_rpc.c
index e3997e34b3..a94b3762cd 100644
--- a/src/modules/pike/pike_rpc.c
+++ b/src/modules/pike/pike_rpc.c
@@ -26,6 +26,7 @@
#include "../../core/timer.h" /* ticks_t */
#include "../../core/dprint.h"
+#include "../../core/ut.h"
#include "pike_top.h"
#include <stdlib.h>
@@ -128,11 +129,11 @@ static void pike_top(rpc_t *rpc, void *c)
stropts = "HOT";
DBG("pike:top: string options: '%s'", stropts);
- if ( strcasestr(stropts, "ALL") ) {
+ if ( strz_casesearch_strz(stropts, "ALL") ) {
options = NODE_STATUS_ALL;
- } else if ( strcasestr(stropts, "HOT") ) {
+ } else if ( strz_casesearch_strz(stropts, "HOT") ) {
options |= NODE_STATUS_HOT;
- } else if ( strcasestr(stropts, "WARM") ) {
+ } else if ( strz_casesearch_strz(stropts, "WARM") ) {
options |= NODE_STATUS_WARM;
}
DBG("pike:top: options: 0x%02x\n", options);