summaryrefslogtreecommitdiff
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 8a9c0f3ca..6bd075100 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -6006,7 +6006,7 @@ static void run_externnotify(char *context, char *extension, const char *flag)
else if (!strncmp(mwi_msg->cause, "BLK", 3))
ast_log(AST_LOG_WARNING, "MWI light was already on or off for %s\n", mwi_msg->fwd_st);
ast_log(AST_LOG_WARNING, "The switch reported '%s'\n", mwi_msg->cause);
- ASTOBJ_UNREF(mwi_msg, ast_smdi_mwi_message_destroy);
+ ao2_ref(mwi_msg, -1);
} else {
ast_debug(1, "Successfully executed SMDI MWI change for %s\n", extension);
}