Module: kamailio
Branch: master
Commit: 1ac02d9f0b436602cfc8bf72037ca7f84be3d67f
URL:
https://github.com/kamailio/kamailio/commit/1ac02d9f0b436602cfc8bf72037ca7f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-06-03T11:21:14+02:00
dispatcher: fix for checking reply code class rule
---
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1ac02d9f0b436602cfc8bf72037ca7f…
Patch:
https://github.com/kamailio/kamailio/commit/1ac02d9f0b436602cfc8bf72037ca7f…
---
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 827d925ed8..30620553a4 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;
}
}