Add vm_announce_cid_after_msg_number

Add option vm_announce_cid_after_msg_number in mod_voicemail to announce the caller id after the "message number x announce" (option vm_announce_cid does it before)
This commit is contained in:
dvillaume 2022-12-08 18:01:32 +01:00 committed by GitHub
parent eb22faad12
commit ec443727b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1623,6 +1623,10 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t
args.input_callback = control_playback;
TRY_CODE(switch_ivr_phrase_macro(session, VM_SAY_MESSAGE_NUMBER_MACRO, input, NULL, &args));
if (!zstr(cbt->cid_number) && (switch_channel_var_true(channel, "vm_announce_cid_after_msg_number"))) {
TRY_CODE(switch_ivr_phrase_macro(session, VM_SAY_PHONE_NUMBER_MACRO, cbt->cid_number, NULL, NULL));
}
play_file:
if (!*cc.buf && (profile->play_date_announcement == VM_DATE_FIRST)) {