Merge pull request #470 in FS/freeswitch from ~NCOPA/freeswitch:bugfix/FS-8131-voicemail-does-not-reject-change to master

* commit '7aba5d52ee609e63ede7e76ab955179e9c61244d':
  FS-8131: [mod_voicemail] fix disallowed empty password set
This commit is contained in:
Mike Jerris 2015-09-09 12:56:31 -05:00
commit 14c43c0804
1 changed files with 3 additions and 0 deletions

View File

@ -2305,6 +2305,9 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p
switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "VM-Domain", domain_name);
switch_channel_event_set_data(channel, params);
if (zstr(buf) && !profile->allow_empty_password_auth) {
fail = 1;
}
if (switch_xml_locate_user("id", myid, domain_name, switch_channel_get_variable(channel, "network_addr"),
&xx_domain_root, &xx_domain, &xx_user, NULL, params) == SWITCH_STATUS_SUCCESS) {
switch_xml_t x_result;