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

Function add_evs

modules/freeswitch_scripting/fss_evs.c:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79int add_evs(fs_evs *sock)
80{
81 struct fs_evs_list *socklist;
82
83 socklist = shm_malloc(sizeof *socklist);
84 if (!socklist) {
85 LM_ERR("oom\n");
86 return -1;
87 }
88 memset(socklist, 0, sizeof *socklist);
89
90 socklist->sock = sock;
91 list_add(&socklist->list, fss_sockets);
92 return 0;
93}
94
95int subscribe_to_fs_urls(const struct list_head *urls)
96{

Callers 2

subscribe_to_fs_urlsFunction · 0.85
mi_fs_subscribeFunction · 0.85

Calls 2

shm_mallocFunction · 0.85
list_addFunction · 0.85

Tested by

no test coverage detected