Index: apps/app_voicemail.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v retrieving revision 1.59 diff -u -r1.59 app_voicemail.c --- apps/app_voicemail.c 28 Feb 2004 00:33:15 -0000 1.59 +++ apps/app_voicemail.c 8 Mar 2004 16:16:04 -0000 @@ -3047,6 +3056,7 @@ return 0; } +#ifndef USEMYSQLVM /* XXX TL Bug 690 */ static char show_voicemail_users_help[] = "Usage: show voicemail users [for ]\n" @@ -3168,7 +3218,7 @@ { { "show", "voicemail", "zones", NULL }, handle_show_voicemail_zones, "List zone message formats", show_voicemail_zones_help, NULL }; - +#endif static int load_config(void) { @@ -3411,9 +3461,12 @@ res |= ast_unregister_application(app2); res |= ast_unregister_application(capp2); sql_close(); +#ifndef USEMYSQLVM ast_cli_unregister(&show_voicemail_users_cli); ast_cli_unregister(&show_voicemail_zones_cli); +#endif return res; } @@ -3435,8 +3489,10 @@ ast_log(LOG_WARNING, "SQL init\n"); return res; } +#ifndef USEMYSQLVM ast_cli_register(&show_voicemail_users_cli); ast_cli_register(&show_voicemail_zones_cli); +#endif return res; }