Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 230432) +++ apps/app_voicemail.c (working copy) @@ -831,6 +831,7 @@ static unsigned char adsisec[4] = "\x9B\xDB\xF7\xAC"; static int adsiver = 1; static char emaildateformat[32] = "%A, %B %d, %Y at %r"; +static char pagerdateformat[32] = "%A, %B %d, %Y at %r"; /* Forward declarations - generic */ static int open_mailbox(struct vm_state *vms, struct ast_vm_user *vmu, int box); @@ -4620,7 +4621,7 @@ } } - ast_strftime(date, sizeof(date), "%A, %B %d, %Y at %r", &tm); + ast_strftime(date, sizeof(date), pagerdateformat, &tm); if (pagerbody) { struct ast_channel *ast; if ((ast = ast_dummy_channel_alloc())) { @@ -10748,6 +10749,11 @@ ast_copy_string(emaildateformat, val, sizeof(emaildateformat)); } + /* Load date format config for voicemail pager mail */ + if ((val = ast_variable_retrieve(cfg, "general", "pagerdateformat"))) { + ast_copy_string(pagerdateformat, val, sizeof(pagerdateformat)); + } + /* External password changing command */ if ((val = ast_variable_retrieve(cfg, "general", "externpass"))) { ast_copy_string(ext_pass_cmd, val, sizeof(ext_pass_cmd)); Index: configs/voicemail.conf.sample =================================================================== --- configs/voicemail.conf.sample (revision 230432) +++ configs/voicemail.conf.sample (working copy) @@ -147,6 +147,11 @@ ; 24h date format ;emaildateformat=%A, %d %B %Y at %H:%M:%S ; +; Default for pager use +pagerdateformat=%A, %B %d, %Y at %r +; Short 24h date format for pager use +;pagerdateformat=%T %D +; ; You can override the default program to send e-mail if you wish, too ; ;mailcmd=/usr/sbin/sendmail -t