]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: use vm_email as notification address if vm_notify_email isn't set...
authorMathieu Rene <mrene@avgs.ca>
Mon, 5 Sep 2011 15:34:25 +0000 (17:34 +0200)
committerMathieu Rene <mrene@avgs.ca>
Mon, 5 Sep 2011 15:34:39 +0000 (17:34 +0200)
src/mod/applications/mod_voicemail/mod_voicemail.c

index d21fb47ad8e31da7df2c48b98319eb0ce4227ca8..691ede9ba0a0f2cfb15f96f80235599a142f7861 100644 (file)
@@ -2773,6 +2773,10 @@ static switch_status_t deliver_vm(vm_profile_t *profile,
 
 
                if (send_notify) {
+                       if (zstr(vm_notify_email)) {
+                               vm_notify_email = vm_email;
+                       }
+       
                        if (zstr(profile->notify_email_headers)) {
                                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);