Voicmailpwcheck.py fails

I have google searched for a solution to trivial passwords in asterisk mail
I have added the following to voicemail.conf
externpasscheck=/usr/local/bin/voicemailpwcheck.py

I have copied this script from this link https://github.com/asterisk/asterisk/blob/master/contrib/scripts/voicemailpwcheck.py
I have pasted into notepad++ and saved as a python file
I pasted the python script into /usr/local/bin/

When I reset the password to the extension number and login to voicemail using *97 , ComMedial mail forces me to change the password, Whatever i enter for a new password, whether it is a trivial password or complex, i get the prompt “that password does not meet the minimum requirements”

the asterisk user has the following permissions
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:~#

Does any one have a suggestion on what may be causing this error?

I found the error doing a little digging with python on the following script.

I changed the first line of the script from #!/usr/bin/env python to #!/usr/bin/python
The script appears to be working correctly now.

Thanks

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