Module: kamailio
Branch: master
Commit: ed87ecb6fc3d7e12cd30b2c7a1b3f2b01e58c96c
URL:
https://github.com/kamailio/kamailio/commit/ed87ecb6fc3d7e12cd30b2c7a1b3f2b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-03-29T12:10:58+02:00
core: kemi - renamed KSR.drop() to KSR.set_drop()
- avoid confusion with the native config drop(), which does an exit as
well, not only setting the drop flag
---
Modified: src/core/kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ed87ecb6fc3d7e12cd30b2c7a1b3f2b…
Patch:
https://github.com/kamailio/kamailio/commit/ed87ecb6fc3d7e12cd30b2c7a1b3f2b…
---
diff --git a/src/core/kemi.c b/src/core/kemi.c
index 26e4e26b1b..a3922cae91 100644
--- a/src/core/kemi.c
+++ b/src/core/kemi.c
@@ -126,11 +126,11 @@ static int sr_kemi_core_log(sip_msg_t *msg, str *level, str *txt)
/**
*
*/
-int sr_kemi_core_drop(sip_msg_t *msg)
+int sr_kemi_core_set_drop(sip_msg_t *msg)
{
if(_sr_kemi_act_ctx==NULL)
return 0;
- LM_DBG("drop action executed inside embedded interpreter\n");
+ LM_DBG("set drop action executed inside embedded interpreter\n");
_sr_kemi_act_ctx->run_flags |= EXIT_R_F|DROP_R_F;
return 0;
}
@@ -1016,8 +1016,8 @@ static sr_kemi_t _sr_kemi_core[] = {
{ SR_KEMIP_STR, SR_KEMIP_STR, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},
- { str_init(""), str_init("drop"),
- SR_KEMIP_NONE, sr_kemi_core_drop,
+ { str_init(""), str_init("set_drop"),
+ SR_KEMIP_NONE, sr_kemi_core_set_drop,
{ SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE,
SR_KEMIP_NONE, SR_KEMIP_NONE, SR_KEMIP_NONE }
},