diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 542301c0453479455446e7d484577bb72de58370..f2cda82f8112ed65805d7a7463e061d6410086c6 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4283,7 +4283,7 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st
 
 			/* play name if available, else play extension number */
 			snprintf(fn, sizeof(fn), "%s%s/%s/greet", VM_SPOOL_DIR, receiver->context, s);
- 			RETRIEVE(fn, -1, s, receiver->context);
+ 			RETRIEVE(fn, -1, (char *)s, receiver->context);
 			if (ast_fileexists(fn, NULL, NULL) > 0) {
 				res = ast_stream_and_wait(chan, fn, ecodes);
 				if (res) {