diff options
Diffstat (limited to 'main/app.c')
-rw-r--r-- | main/app.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/app.c b/main/app.c index 140afde7b..579984dab 100644 --- a/main/app.c +++ b/main/app.c @@ -432,6 +432,17 @@ static AO2_GLOBAL_OBJ_STATIC(vm_provider); /*! Voicemail not registered warning */ static int vm_warnings; +int ast_vm_is_registered(void) +{ + struct ast_vm_functions *table; + int is_registered; + + table = ao2_global_obj_ref(vm_provider); + is_registered = table ? 1 : 0; + ao2_cleanup(table); + return is_registered; +} + int __ast_vm_register(const struct ast_vm_functions *vm_table, struct ast_module *module) { RAII_VAR(struct ast_vm_functions *, table, NULL, ao2_cleanup); |