Module: kamailio Branch: master Commit: f97093fa289158625a29916b9699353aa18dc6e6 URL: https://github.com/kamailio/kamailio/commit/f97093fa289158625a29916b9699353a...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2019-07-31T17:17:46+02:00
core: kemi - exported KSR.get_debug()
- return debug level for config
---
Modified: src/core/kemi.c
---
Diff: https://github.com/kamailio/kamailio/commit/f97093fa289158625a29916b9699353a... Patch: https://github.com/kamailio/kamailio/commit/f97093fa289158625a29916b9699353a...
---
diff --git a/src/core/kemi.c b/src/core/kemi.c index 3ca2e9065f..9163690b29 100644 --- a/src/core/kemi.c +++ b/src/core/kemi.c @@ -1312,6 +1312,14 @@ static int sr_kemi_core_add_tcp_alias_via(sip_msg_t *msg) }
+/** + * + */ +static int sr_kemi_core_get_debug(sip_msg_t *msg) +{ + return get_cfg_debug_level(); +} + /** * */ @@ -1656,6 +1664,11 @@ static sr_kemi_t _sr_kemi_core[] = { { SR_KEMIP_INT, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } }, + { str_init(""), str_init("get_debug"), + SR_KEMIP_INT, sr_kemi_core_get_debug, + { SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE, + SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE } + },
{ {0, 0}, {0, 0}, 0, NULL, { 0, 0, 0, 0, 0, 0 } } };