]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5025 Added user/group/domain merge of param/var before calling vm delivery allowin...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 24 Jan 2013 21:41:29 +0000 (16:41 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 24 Jan 2013 21:41:29 +0000 (16:41 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index b6f81db01067e0711102336d6274b20f6b4fc79e..fd1d5856bc777ffd109280a3c415f353f50403b4 100644 (file)
@@ -3107,6 +3107,7 @@ static switch_status_t voicemail_inject(const char *data, switch_core_session_t
                                                                switch_xml_t ux;
 
                                                                if (switch_xml_locate_user_in_domain(uname, x_domain, &ux, NULL) == SWITCH_STATUS_SUCCESS) {
+                                                                       switch_xml_merge_user(ux, x_domain, group);
                                                                        switch_event_create(&my_params, SWITCH_EVENT_REQUEST_PARAMS);
                                                                        status =
                                                                                deliver_vm(profile, ux, domain, path, 0, read_flags, my_params, pool, cid_name, cid_num, forwarded_by,
@@ -3116,6 +3117,7 @@ static switch_status_t voicemail_inject(const char *data, switch_core_session_t
                                                                continue;
                                                        }
 
+                                                       switch_xml_merge_user(ut, x_domain, group);
                                                        switch_event_create(&my_params, SWITCH_EVENT_REQUEST_PARAMS);
                                                        status = deliver_vm(profile, ut, domain, path, 0, read_flags, 
                                                                                                my_params, pool, cid_name, cid_num, forwarded_by, SWITCH_TRUE, 
@@ -3139,6 +3141,7 @@ static switch_status_t voicemail_inject(const char *data, switch_core_session_t
                                                                continue;
                                                        }
 
+                                                       switch_xml_merge_user(ut, x_domain, group);
                                                        switch_event_create(&my_params, SWITCH_EVENT_REQUEST_PARAMS);
                                                        status = deliver_vm(profile, ut, domain, path, 0, read_flags, 
                                                                                                my_params, pool, cid_name, cid_num, forwarded_by, SWITCH_TRUE,
@@ -3153,6 +3156,7 @@ static switch_status_t voicemail_inject(const char *data, switch_core_session_t
                        switch_xml_t x_group = NULL;
 
                        if ((status = switch_xml_locate_user_in_domain(user, x_domain, &ut, &x_group)) == SWITCH_STATUS_SUCCESS) {
+                               switch_xml_merge_user(ut, x_domain, x_group);
                                switch_event_create(&my_params, SWITCH_EVENT_REQUEST_PARAMS);
                                status = deliver_vm(profile, ut, domain, path, 0, read_flags, 
                                                                        my_params, pool, cid_name, cid_num, forwarded_by, SWITCH_TRUE,