MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_mi_string_param

Function get_mi_string_param

mi/item.c:456–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456int get_mi_string_param(const mi_params_t *params, char *name,
457 char **value, int *value_len)
458{
459 switch (try_get_mi_string_param(params, name, value, value_len))
460 {
461 case MI_PARAM_ERR_MISSING:
462 LM_ERR("Parameter: %s not found\n", name);
463 break;
464 case MI_PARAM_ERR_BAD_TYPE:
465 LM_ERR("Bad data type for parameter: %s\n", name);
466 break;
467 case 0:
468 return 0;
469 }
470 return -1;
471}
472
473
474int get_mi_bool_like_param(const mi_params_t *params, char *name,

Callers 15

mi_sr_get_statusFunction · 0.85
mi_bl_get_headFunction · 0.85
mi_bl_get_ipFunction · 0.85
mi_bl_get_ruleFunction · 0.85
w_mi_help_1Function · 0.85
mi_which_cmdFunction · 0.85
w_log_level_filter_1Function · 0.85
w_log_level_filter_2Function · 0.85
w_log_mute_state_1Function · 0.85
w_log_mute_state_2Function · 0.85
mi_cachestoreFunction · 0.85
mi_cachefetchFunction · 0.85

Calls 1

try_get_mi_string_paramFunction · 0.85

Tested by

no test coverage detected