Skip to content

Commit

Permalink
core: kemi - renamed KSR.drop() to KSR.set_drop()
Browse files Browse the repository at this point in the history
- avoid confusion with the native config drop(), which does an exit as
well, not only setting the drop flag
  • Loading branch information
miconda committed Mar 29, 2018
1 parent 4bfcc38 commit ed87ecb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/kemi.c
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 }
},
Expand Down

0 comments on commit ed87ecb

Please sign in to comment.