[Freeswitch-svn] [commit] r10088 - freeswitch/trunk/src/mod/applications/mod_voicemail
Freeswitch SVN
mikej at freeswitch.org
Mon Oct 20 19:42:01 EDT 2008
Author: mikej
Date: Mon Oct 20 19:42:00 2008
New Revision: 10088
Modified:
freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
Log:
add vm-a1-hash param to override the a1-hash for voicemail
Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c Mon Oct 20 19:42:00 2008
@@ -1583,7 +1583,7 @@
switch_xml_t x_domain = NULL, x_domain_root = NULL, x_user = NULL, x_params, x_param;
switch_status_t status;
char pass_buf[80] = "", *mypass = NULL, id_buf[80] = "", *myfolder = NULL;
- const char *thepass = NULL, *myid = id, *actual_id = NULL, *thehash = NULL;
+ const char *thepass = NULL, *myid = id, *actual_id = NULL, *thehash = NULL, *vmhash = NULL;
char term = 0;
uint32_t timeout, attempts = 0;
int failed = 0;
@@ -1981,6 +1981,8 @@
if (!strcasecmp(var, "a1-hash")) {
thehash = val;
+ } else if (!strcasecmp(var, "vm-a1-hash")) {
+ vmhash = val;
} else if (!strcasecmp(var, "password")) {
thepass = val;
} else if (!strcasecmp(var, "vm-password")) {
@@ -1993,6 +1995,10 @@
thepass = cbt.password;
}
}
+
+ if (vmhash) {
+ thehash = vmhash;
+ }
if (!auth) {
if (!switch_strlen_zero(cbt.password) && !strcmp(cbt.password, mypass)) {
More information about the Freeswitch-svn
mailing list