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

Function get_mi_array_param

mi/item.c:522–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520}
521
522int get_mi_array_param(const mi_params_t *params, char *name,
523 mi_item_t **value, int *no_items)
524{
525 switch (try_get_mi_array_param(params, name, value, no_items))
526 {
527 case MI_PARAM_ERR_MISSING:
528 LM_ERR("Parameter: %s not found\n", name);
529 break;
530 case MI_PARAM_ERR_BAD_TYPE:
531 LM_ERR("Parameter: %s is not an array\n", name);
532 break;
533 case MI_PARAM_ERR_EMPTY_ARR:
534 LM_ERR("Empty array for parameter: %s\n", name);
535 break;
536 case 0:
537 return 0;
538 }
539 return -1;
540}
541
542int try_get_mi_arr_param_string(const mi_item_t *array, int pos,
543 char **value, int *value_len)

Callers 9

mi_get_statsFunction · 0.85
w_mi_list_stats_1Function · 0.85
mi_reset_statsFunction · 0.85
mi_fs_subscribeFunction · 0.85
mi_fs_unsubscribeFunction · 0.85
mi_trie_remove_code_2Function · 0.85
mi_trie_upsert_code_3Function · 0.85
mi_config_push_bulkFunction · 0.85
mi_push_dlg_varFunction · 0.85

Calls 1

try_get_mi_array_paramFunction · 0.85

Tested by

no test coverage detected