Closed Stell0 closed 2 years ago
in 7.9.2009/nethesis-testing
:
in 7.9.2009/nethesis-testing
:
in 7.9.2009/nethesis-testing
:
This function will be added to wizard interface in the future. How to test:
secret=$(perl -mNethServer::Password -e "print NethServer::Password::store('nethvoice')")
User="admin"
fpbxPasswordHash=$(mysql asterisk -B --silent -e "SELECT password_sha1 FROM ampusers WHERE username = '$User'")
SecretKey=$(echo -n "${User}${fpbxPasswordHash}${secret}" | sha1sum | awk '{print $1}')
/tmp/google-auth.json
before launching the command
curl -kv "https://$(hostname)/freepbx/rest/configuration/googleauth" -H "User: ${User}" -H "SecretKey: ${SecretKey}" -H 'Accept: application/json, text/plain, */*' -H 'Content-Type: application/json;charset=utf-8' --data '{"file":"'$(base64 -w 0 /tmp/google-auth.json)'"}'
curl -kv "https://$(hostname)/freepbx/rest/configuration/voicemailgooglestt" -H "User: ${User}" -H "SecretKey: ${SecretKey}" -H 'Accept: application/json, text/plain, */*' -H 'Content-Type: application/json;charset=utf-8'
curl -kv "https://$(hostname)/freepbx/rest/configuration/voicemailgooglestt/enabled" -H "User: ${User}" -H "SecretKey: ${SecretKey}" -H 'Accept: application/json, text/plain, */*' -H 'Content-Type: application/json;charset=utf-8' -X POST
curl -kv "https://$(hostname)/freepbx/rest/configuration/voicemailgooglestt" -H "User: ${User}" -H "SecretKey: ${SecretKey}" -H 'Accept: application/json, text/plain, */*' -H 'Content-Type: application/json;charset=utf-8'
Voicemail are sent attached to email (if option is enabled)
Add the text of the message left to the body of the email, converting it to speech using Google Speech to Text