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

Function get_avp_val

usr_avp.c:292–304  ·  view source on GitHub ↗

get value functions */

Source from the content-addressed store, hash-verified

290
291/* get value functions */
292inline void get_avp_val(struct usr_avp *avp, int_str *val)
293{
294 if (avp==0 || val==0)
295 return;
296
297 if (avp->flags & AVP_VAL_STR) {
298 /* avp type ID, str value */
299 val->s = *(str *)(&avp->data);
300 } else {
301 /* avp type ID, int value */
302 val->n = (long)(avp->data);
303 }
304}
305
306
307struct usr_avp** get_avp_list(void)

Callers 13

w_print_avpsFunction · 0.85
search_first_avpFunction · 0.85
search_next_avpFunction · 0.85
clone_avp_listFunction · 0.85
ops_sql_avp_storeFunction · 0.85
ospReportOrigSetupUsageFunction · 0.85
ospCheckOrigDestinationFunction · 0.85
ospDumpAllDestinationFunction · 0.85
ospRequestRoutingFunction · 0.85
t_get_branch_idx_by_attrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected