External Password Verification Script

in voicemail General Settings. i have entered the path of /usr/local/bin/voicemailpwcheck.py in the External Password Verification Script.
I have copied the voicemailpwcheck.py scripts and pasted it into notepad++ and saved as a python file. I have placed a copy of voicemailpwcheck.py /usr/local/bin/
permissions are as follows:
ls -l
-rw-r–r-- 1 root root 1763 Jan 18 22:23 voicemailpwcheck.py

I have set a voicemail password to the extension number.
When i login to voicemail through the phone i am forced to to change the password, but continue to get the prompt “that password does not meet the minimum requirements”. It does not matter what password I enter i get the same prompt.

Current Asterisk Version: 16.15.0
Voicemail15.0.18.21

Does anyone have any suggestions on how to resolve this?

If you call that file directly the asterisk user will need ownership and eXecute permission on it

-rwxr–r-- 1 asterisk:asterisk

Thank you for the reply, I have changed the permissions for the file, and still having the same problem.

root@raspbx:~# ls -l /usr/local/bin/voicemailpwcheck.py
-rwxr–r-- 1 asterisk asterisk 1763 Jan 18 22:23 /usr/local/bin/voicemailpwcheck.py
root@raspbx:~#

26794[2021-01-19 19:49:23] VERBOSE[1706][C-00000004] file.c: <PJSIP/221-00000003> Playing ‘vm-newpassword.ulaw’ (language ‘en’)

26795[2021-01-19 19:49:29] NOTICE[1706][C-00000004] app_voicemail.c: Password doesn’t match policies for user 221 497362

26796[2021-01-19 19:49:29] NOTICE[1706][C-00000004] app_voicemail.c: Invalid password for user 221 (497362)

Do you have any other suggestions?

sorry, no idea what is in that script

(the password needs to be physically changed in /etc/asterisk/voicemail.conf, there is no other place to check authority)

Are you aware any other way of stopping users, from using a trivial password in their mailbox.?

I assumed that is exactly whay you are trying to do, but I have no idea what your script does. so . . . .

the script for password checking is found here.

doing a little digging on python I found something that works;
Change line 1 #!/usr/bin/env python
to the following; #!/usr/bin/python

Hope this helps someone else with the same issue.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.