diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index e183c0a2e7954d2acc3dffc79e34c11e61474b8e..386f254d4233f4d63aa50a96ada250031a2d127c 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -9217,10 +9217,10 @@ static char *get_user_by_mailbox(char *mailbox, char *buf, size_t len)
 	if (ast_strlen_zero(mailbox))
 		return NULL;
 
-	if (!(start = strstr(mailbox, "user=")))
+	if (!(start = strstr(mailbox, "/user=")))
 		return NULL;
 
-	ast_copy_string(buf, start+5, len);
+	ast_copy_string(buf, start+6, len);
 
 	if (!(quote = strchr(buf, '\"'))) {
 		if (!(eol_pnt = strchr(buf, '/')))