提交 ac272818 authored 作者: Anthony Minessale's avatar Anthony Minessale

patch from MODAPP-156 with mods

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10137 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 42dd42eb
...@@ -1983,22 +1983,33 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro ...@@ -1983,22 +1983,33 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro
thehash = val; thehash = val;
} else if (!strcasecmp(var, "vm-a1-hash")) { } else if (!strcasecmp(var, "vm-a1-hash")) {
vmhash = val; vmhash = val;
} else if (!strcasecmp(var, "password")) { } else if (!auth && !thepass && !strcasecmp(var, "password")) {
thepass = val;
} else if (!strcasecmp(var, "vm-password")) {
thepass = val; thepass = val;
} else if (!auth && !strcasecmp(var, "vm-password")) {
if (!switch_strlen_zero(val) && !strcasecmp(val, "user-choose")) {
if (switch_strlen_zero(cbt.password)) {
auth = 1;
} else {
thepass = val;
}
} else {
thepass = val;
}
} else if (!strcasecmp(var, "vm-mailto")) { } else if (!strcasecmp(var, "vm-mailto")) {
vm_email = switch_core_session_strdup(session, val); vm_email = switch_core_session_strdup(session, val);
} else if (!strcasecmp(var, "storage-dir")) { } else if (!strcasecmp(var, "storage-dir")) {
vm_storage_dir = switch_core_session_strdup(session, val); vm_storage_dir = switch_core_session_strdup(session, val);
} else if (!switch_strlen_zero(cbt.password) && !thepass) { }
thepass = cbt.password;
}
} }
if (vmhash) { if (vmhash) {
thehash = vmhash; thehash = vmhash;
} }
if (!auth && !thepass && !switch_strlen_zero(cbt.password)) {
thepass = cbt.password;
}
if (!auth) { if (!auth) {
if (!switch_strlen_zero(cbt.password) && !strcmp(cbt.password, mypass)) { if (!switch_strlen_zero(cbt.password) && !strcmp(cbt.password, mypass)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论