Skip to main content

voicemails

Creates, updates, deletes, gets or lists a voicemails resource.

Overview​

Namevoicemails
TypeResource
Idovh.freefax.voicemails

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
full_greeting_sound_idintegerSound ID of the long greeeting (wire: fullGreetingSoundId)
short_greeting_sound_idintegerSound ID of the short greeting played before an automated message (wire: shortGreetingSoundId)
temporary_greeting_sound_idintegerSound ID of the temporary greeeting (wire: temporaryGreetingSoundId)
from_namestringName from which emails will be sent (wire: fromName)
annouce_messagestringName of the voicemail panel announce file (wire: annouceMessage)
audio_formatstringVoicemail audio format (aiff, au, flac, mp3, ogg, wav) (wire: audioFormat)
do_not_recordbooleanDon't allow callers to leave voicemails (wire: doNotRecord)
force_passwordbooleanForce password request to access the voicemail panel (wire: forcePassword)
from_emailstringEmail address from which emails will be sent (wire: fromEmail)
greeting_typestringGreeting type (default, full, short) (wire: greetingType)
is_new_versionbooleanCurrent voicemail version (wire: isNewVersion)
keep_messagebooleanDon't delete voicemails after they've been sent by email (wire: keepMessage)
redirection_emailsarrayEmail addresses to notify when a new voicemail is left (wire: redirectionEmails)
temporary_greeting_activatedbooleanPlay the temporary greeting instead of the regular one (wire: temporaryGreetingActivated)
unread_messagesintegerQuantity of unread voicemails (wire: unreadMessages)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet the Freefax voicemail information
updateupdateservice_nameEdit the Freefax voicemail
change_passwordexecserviceName, passwordChange the voicemail password. It must be 4 digit
change_routingexecserviceName, routingDisable/Enable voicemail. Available only if the line has fax capabilities

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
serviceNamestring (phone-number)Service name
service_namestring (phone-number)Service name (wire: serviceName)

SELECT examples​

Get the Freefax voicemail information

SELECT
full_greeting_sound_id,
short_greeting_sound_id,
temporary_greeting_sound_id,
from_name,
annouce_message,
audio_format,
do_not_record,
force_password,
from_email,
greeting_type,
is_new_version,
keep_message,
redirection_emails,
temporary_greeting_activated,
unread_messages
FROM ovh.freefax.voicemails
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Edit the Freefax voicemail

UPDATE ovh.freefax.voicemails
SET
audio_format = '{{ audio_format }}',
do_not_record = {{ do_not_record }},
force_password = {{ force_password }},
from_email = '{{ from_email }}',
from_name = '{{ from_name }}',
full_greeting_sound_id = {{ full_greeting_sound_id }},
greeting_type = '{{ greeting_type }}',
keep_message = {{ keep_message }},
redirection_emails = '{{ redirection_emails }}',
short_greeting_sound_id = {{ short_greeting_sound_id }},
temporary_greeting_activated = {{ temporary_greeting_activated }},
temporary_greeting_sound_id = {{ temporary_greeting_sound_id }}
WHERE
service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Change the voicemail password. It must be 4 digit

EXEC ovh.freefax.voicemails.change_password
@serviceName='{{ serviceName }}' --required
@@json=
'{
"password": "{{ password }}"
}'
;