mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 11:44:14 +00:00
fix vm to inherit params from domain/group
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16644 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b38730539b
commit
ea5db72a26
2 files changed
+7
-12
No files matched your search
@@ -2821,7 +2821,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
||||
const char *read_id = NULL;
|
||||
const char *caller_id_name = NULL;
|
||||
const char *caller_id_number = NULL;
|
||||
switch_xml_t x_domain = NULL, x_domain_root = NULL, x_user = NULL, x_params = NULL, x_param = NULL;
|
||||
switch_xml_t x_user = NULL, x_params = NULL, x_param = NULL;
|
||||
switch_event_t *vars = NULL;
|
||||
const char *vm_cc = NULL, *vtmp, *vm_ext = NULL;
|
||||
int disk_quota = 0;
|
||||
@@ -2845,22 +2845,15 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
|
||||
int ok = 1;
|
||||
switch_event_t *locate_params = NULL;
|
||||
const char *email_addr = NULL;
|
||||
char *x;
|
||||
|
||||
|
||||
|
||||
switch_event_create(&locate_params, SWITCH_EVENT_REQUEST_PARAMS);
|
||||
switch_assert(locate_params);
|
||||
|
||||
if (switch_xml_locate_user("id", id, domain_name, switch_channel_get_variable(channel, "network_addr"),
|
||||
&x_domain_root, &x_domain, &x_user, NULL, locate_params) == SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_xml_locate_user_merged("id", id, domain_name, switch_channel_get_variable(channel, "network_addr"),
|
||||
&x_user, locate_params) == SWITCH_STATUS_SUCCESS) {
|
||||
id = switch_core_session_strdup(session, switch_xml_attr(x_user, "id"));
|
||||
|
||||
x = switch_xml_toxml(x_user, SWITCH_FALSE);
|
||||
x_user = switch_xml_parse_str_dynamic(x, SWITCH_FALSE);
|
||||
x_domain = NULL;
|
||||
switch_xml_free(x_domain_root);
|
||||
x_domain_root = NULL;
|
||||
|
||||
if ((x_params = switch_xml_child(x_user, "params"))) {
|
||||
for (x_param = switch_xml_child(x_params, "param"); x_param; x_param = x_param->next) {
|
||||
const char *var = switch_xml_attr_soft(x_param, "name");
|
||||
|
||||
Reference in new issue
Block a user