jchavanton commented on this pull request.
- }
+ ms_factory_init_plugins(f); + ms_factory_enable_statistics(f, TRUE); + ms_factory_reset_statistics(f); + return f; +} + +int rms_media_init() +{ + OrtpMemoryFunctions ortp_memory_functions; + ortp_memory_functions.malloc_fun = ptr_shm_malloc; + ortp_memory_functions.realloc_fun = ptr_shm_realloc; + ortp_memory_functions.free_fun = ptr_shm_free; + ortp_set_memory_functions(&ortp_memory_functions); + ortp_init(); + vars = ortp_malloc(sizeof(shared_global_vars_t));
no good reason, ortp_malloc is using shm_malloc, I replaced the 2 occurrences with shm_malloc for clarity from Kamailio module context