mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 00:41:41 +00:00
mod_voicemail: use vm_email as notification address if vm_notify_email isn't set (that behavior was in voicemail_leave_main but not in deliver_vm)
This commit is contained in:
parent
a966c2b0ef
commit
8974f9d62e
@ -2773,6 +2773,10 @@ static switch_status_t deliver_vm(vm_profile_t *profile,
|
|||||||
|
|
||||||
|
|
||||||
if (send_notify) {
|
if (send_notify) {
|
||||||
|
if (zstr(vm_notify_email)) {
|
||||||
|
vm_notify_email = vm_email;
|
||||||
|
}
|
||||||
|
|
||||||
if (zstr(profile->notify_email_headers)) {
|
if (zstr(profile->notify_email_headers)) {
|
||||||
headers = switch_mprintf("From: FreeSWITCH mod_voicemail <%s@%s>\n"
|
headers = switch_mprintf("From: FreeSWITCH mod_voicemail <%s@%s>\n"
|
||||||
"Subject: Voicemail from %s %s\nX-Priority: %d", myid, domain_name, caller_id_name, caller_id_number, priority);
|
"Subject: Voicemail from %s %s\nX-Priority: %d", myid, domain_name, caller_id_name, caller_id_number, priority);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user