Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 42945) +++ apps/app_voicemail.c (working copy) @@ -3841,7 +3841,7 @@ return 0; } - cid = ast_variable_retrieve(msg_cfg, "message", "callerid"); + cid = ast_strdupa(ast_variable_retrieve(msg_cfg, "message", "callerid")); duration = ast_variable_retrieve(msg_cfg, "message", "duration"); category = ast_variable_retrieve(msg_cfg, "message", "category"); @@ -6462,7 +6462,7 @@ return 0; } - cid = ast_variable_retrieve(msg_cfg, "message", "callerid"); + cid = ast_strdupa(ast_variable_retrieve(msg_cfg, "message", "callerid")); context = ast_variable_retrieve(msg_cfg, "message", "context"); if (!strncasecmp("macro",context,5)) /* Macro names in contexts are useless for our needs */