Module: kamailio
Branch: 5.6
Commit: 5b8e5d02c27b0cd3c5854012d0e0968504a6b252
URL:
https://github.com/kamailio/kamailio/commit/5b8e5d02c27b0cd3c5854012d0e0968…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-16T09:33:32+02:00
dispatcher: fix for checking reply code class rule
(cherry picked from commit 1ac02d9f0b436602cfc8bf72037ca7f84be3d67f)
---
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5b8e5d02c27b0cd3c5854012d0e0968…
Patch:
https://github.com/kamailio/kamailio/commit/5b8e5d02c27b0cd3c5854012d0e0968…
---
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 827d925ed89..30620553a42 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -1247,7 +1247,7 @@ int ds_ping_check_rplcode(int code)
}
} else {
/* reply class */
- if(((*ds_ping_reply_codes)[i] / 100) == code) {
+ if((*ds_ping_reply_codes)[i] == code / 100) {
return 1;
}
}