@ -7296,7 +7296,6 @@ static int forward_message(struct ast_channel *chan, char *context, struct vm_st
}
}
} else {
} else {
/* Ask for an extension */
/* Ask for an extension */
ast_test_suite_event_notify ( " PLAYBACK " , " Message: vm-extension " ) ;
res = ast_streamfile ( chan , " vm-extension " , chan - > language ) ; /* "extension" */
res = ast_streamfile ( chan , " vm-extension " , chan - > language ) ; /* "extension" */
prompt_played + + ;
prompt_played + + ;
if ( res | | prompt_played > 4 )
if ( res | | prompt_played > 4 )
@ -9820,7 +9819,6 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
adsi_begin ( chan , & useadsi ) ;
adsi_begin ( chan , & useadsi ) ;
if ( ! skipuser & & useadsi )
if ( ! skipuser & & useadsi )
adsi_login ( chan ) ;
adsi_login ( chan ) ;
ast_test_suite_event_notify ( " PLAYBACK " , " Message: vm-login " ) ;
if ( ! silent & & ! skipuser & & ast_streamfile ( chan , " vm-login " , chan - > language ) ) {
if ( ! silent & & ! skipuser & & ast_streamfile ( chan , " vm-login " , chan - > language ) ) {
ast_log ( AST_LOG_WARNING , " Couldn't stream login file \n " ) ;
ast_log ( AST_LOG_WARNING , " Couldn't stream login file \n " ) ;
return - 1 ;
return - 1 ;
@ -9868,7 +9866,6 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
/* saved password is blank, so don't bother asking */
/* saved password is blank, so don't bother asking */
password [ 0 ] = ' \0 ' ;
password [ 0 ] = ' \0 ' ;
} else {
} else {
ast_test_suite_event_notify ( " PLAYBACK " , " Message: %s " , vm_password ) ;
if ( ast_streamfile ( chan , vm_password , chan - > language ) ) {
if ( ast_streamfile ( chan , vm_password , chan - > language ) ) {
ast_log ( AST_LOG_WARNING , " Unable to stream password file \n " ) ;
ast_log ( AST_LOG_WARNING , " Unable to stream password file \n " ) ;
return - 1 ;
return - 1 ;
@ -9905,13 +9902,11 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_
logretries + + ;
logretries + + ;
if ( ! valid ) {
if ( ! valid ) {
if ( skipuser | | logretries > = max_logins ) {
if ( skipuser | | logretries > = max_logins ) {
ast_test_suite_event_notify ( " PLAYBACK " , " Message: vm-incorrect " ) ;
if ( ast_streamfile ( chan , " vm-incorrect " , chan - > language ) ) {
if ( ast_streamfile ( chan , " vm-incorrect " , chan - > language ) ) {
ast_log ( AST_LOG_WARNING , " Unable to stream incorrect message \n " ) ;
ast_log ( AST_LOG_WARNING , " Unable to stream incorrect message \n " ) ;
return - 1 ;
return - 1 ;
}
}
} else {
} else {
ast_test_suite_event_notify ( " PLAYBACK " , " Message: vm-incorrect-mailbox " ) ;
if ( useadsi )
if ( useadsi )
adsi_login ( chan ) ;
adsi_login ( chan ) ;
if ( ast_streamfile ( chan , " vm-incorrect-mailbox " , chan - > language ) ) {
if ( ast_streamfile ( chan , " vm-incorrect-mailbox " , chan - > language ) ) {