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

Function fss_init

modules/freeswitch_scripting/fss_evs.c:48–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46struct list_head *fss_sockets;
47
48int fss_init(void)
49{
50 fss_sockets = shm_malloc(sizeof *fss_sockets);
51 if (!fss_sockets) {
52 LM_ERR("oom\n");
53 return -1;
54 }
55 INIT_LIST_HEAD(fss_sockets);
56
57 if (load_fs_api(&fs_api) != 0) {
58 LM_ERR("failed to load the FreeSWITCH API - is freeswitch loaded?\n");
59 return -1;
60 }
61
62 return 0;
63}
64
65int find_evs(fs_evs *sock)
66{

Callers 1

mod_initFunction · 0.85

Calls 3

shm_mallocFunction · 0.85
INIT_LIST_HEADFunction · 0.85
load_fs_apiFunction · 0.85

Tested by

no test coverage detected