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

Function fixup_flag

flags.c:228–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228unsigned int fixup_flag(int flag_type, const str *flag_name)
229{
230 int ret;
231
232 ret = get_flag_id_by_name(flag_type, flag_name->s, flag_name->len);
233
234 if (ret < 0) {
235 LM_CRIT("Failed to get a flag id!\n");
236 return NAMED_FLAG_ERROR;
237 }
238
239 if (flag_type != FLAG_TYPE_MSG)
240 return 1 << ret;
241
242 return ret;
243}

Callers 7

fixup_mflagFunction · 0.85
fixup_bflagFunction · 0.85
msg_flag_parse_nameFunction · 0.85
bflag_fixupFunction · 0.85
fixup_dlg_flagFunction · 0.85

Calls 1

get_flag_id_by_nameFunction · 0.85

Tested by

no test coverage detected