Skip to content

Commit

Permalink
core: kemi - exported KSR.get_debug()
Browse files Browse the repository at this point in the history
- return debug level for config
  • Loading branch information
miconda committed Jul 31, 2019
1 parent 89cc5dd commit f97093f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/core/kemi.c
Expand Up @@ -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();
}

/**
*
*/
Expand Down Expand Up @@ -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 } }
};
Expand Down

0 comments on commit f97093f

Please sign in to comment.