[Home]

Summary:ASTERISK-06442: VMAuthenticate's Silent Option Does not work
Reporter:A Brown (fool4kate)Labels:
Date Opened:2006-02-28 14:01:39.000-0600Date Closed:2011-06-07 14:10:05
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:The silent (s) option of the VMAuthenticate funtion in app_voicemail.c does not seem to work.

As an experiment try the following:
exten => *55,1,VMAuthenticate(310|s)
exten => *56,1,VMAuthenticate(310)

In both cases the "vm-password" sound file is played. I believe the correct behavior is that no audio should be placed in the *55 case.

****** ADDITIONAL INFORMATION ******

The fix is pretty straightforward. In the vm_authenticate function in app_voicemail.c, the call to ast_streamfile(chan, "vm-password", chan->language) must be qualified by the local variable silent, i.e:

if (!silent) {
     if (ast_streamfile(chan, "vm-password", chan->language)) {
           ast_log(LOG_WARNING, "Unable to stream password file\n");
           return -1;
     }
}
Comments:By: Tilghman Lesher (tilghman) 2006-02-28 23:22:25.000-0600

As noted in the application help, the "s" option is only to skip the INITIAL prompt, that is, the prompt for the username.  There is no provision for skipping the password prompt.