Module: kamailio
Branch: master
Commit: 657d2699784d9fc35f66382f9f137f0b80301018
URL:
https://github.com/kamailio/kamailio/commit/657d2699784d9fc35f66382f9f137f0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-06T09:02:15+02:00
core: kemi - is_method_in() support for kdmq, get, post, put, delete
---
Modified: src/core/kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/657d2699784d9fc35f66382f9f137f0…
Patch:
https://github.com/kamailio/kamailio/commit/657d2699784d9fc35f66382f9f137f0…
---
diff --git a/src/core/kemi.c b/src/core/kemi.c
index ac31b1beb0..9b1d0050a5 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -814,6 +814,36 @@ static int sr_kemi_core_is_method_in(sip_msg_t *msg, str *vmethod)
return SR_KEMI_TRUE;
}
break;
+ case 'G':
+ case 'g':
+ if(imethod==METHOD_GET) {
+ return SR_KEMI_TRUE;
+ }
+ break;
+ case 'K':
+ case 'k':
+ if(imethod==METHOD_KDMQ) {
+ return SR_KEMI_TRUE;
+ }
+ break;
+ case 'D':
+ case 'd':
+ if(imethod==METHOD_DELETE) {
+ return SR_KEMI_TRUE;
+ }
+ break;
+ case 'T':
+ case 't':
+ if(imethod==METHOD_POST) {
+ return SR_KEMI_TRUE;
+ }
+ break;
+ case 'V':
+ case 'v':
+ if(imethod==METHOD_PUT) {
+ return SR_KEMI_TRUE;
+ }
+ break;
}
}
return SR_KEMI_FALSE;