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

Function fixup_event_name

core_cmds.c:664–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662}
663
664static int fixup_event_name(void** param)
665{
666 str *s = (str*)*param;
667 event_id_t ev_id;
668
669 ev_id = evi_get_id(s);
670 if (ev_id == EVI_ERROR) {
671 ev_id = evi_publish_event(*s);
672 if (ev_id == EVI_ERROR) {
673 LM_ERR("cannot subscribe event\n");
674 return E_UNSPEC;
675 }
676 }
677
678 *param = (void*)(long)ev_id;
679 return 0;
680}
681
682static int fixup_event_name_subs(void** param)
683{

Callers

nothing calls this directly

Calls 2

evi_get_idFunction · 0.85
evi_publish_eventFunction · 0.85

Tested by

no test coverage detected