diff --git a/CHANGES b/CHANGES index 387ac7c54a602e723364452f1b213f8a696ac2c9..b9eccf8b4c2e39c01947a0f3e9dc7383e2b0ff8a 100644 --- a/CHANGES +++ b/CHANGES @@ -169,6 +169,7 @@ Applications more information. * Voicemail now runs the externnotify script when pollmailboxes is activated and notices a change. + * Voicemail now includes rdnis within msgXXXX.txt file. Dialplan Functions ------------------ diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 18867028bc09b00d9b1a23acdd5d87dceed4673f..882cfa4df12237f47f6e26f9a0ca6bda71f64d27 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -5737,6 +5737,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ "context=%s\n" "macrocontext=%s\n" "exten=%s\n" + "rdnis=%s\n" "priority=%d\n" "callerchan=%s\n" "callerid=%s\n" @@ -5747,6 +5748,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, struct leave_vm_ chan->context, chan->macrocontext, chan->exten, + S_OR(chan->cid.cid_rdnis, "unknown"), chan->priority, chan->name, ast_callerid_merge(callerid, sizeof(callerid), S_OR(chan->cid.cid_name, NULL), S_OR(chan->cid.cid_num, NULL), "Unknown"),