Skip to main content

line_tones

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

Overview​

Nameline_tones
TypeResource
Idovh.telephony.line_tones

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
call_waitingstringTone played when caller is waiting in queue (Custom sound, None) (wire: callWaiting)
end_callstringTone played when callee is ending call (Custom sound, None) (wire: endCall)
on_holdstringTone played when caller is put on hold (Custom sound, None, Predefined 1, Predefined 2) (wire: onHold)
ringbackstringRingback tone (Custom sound, None)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the tones
updateupdatebilling_account, service_nameUpdate the tones
tone_uploadexecbillingAccount, serviceName, typeUpload a tone

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"}})
billingAccountstringThe name of your billingAccount
billing_accountstringThe name of your billingAccount (wire: billingAccount)
serviceNamestring
service_namestring (wire: serviceName)

SELECT examples​

Get the tones

SELECT
call_waiting,
end_call,
on_hold,
ringback
FROM ovh.telephony.line_tones
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update the tones

UPDATE ovh.telephony.line_tones
SET
call_waiting = '{{ call_waiting }}',
end_call = '{{ end_call }}',
on_hold = '{{ on_hold }}',
ringback = '{{ ringback }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Upload a tone

EXEC ovh.telephony.line_tones.tone_upload
@billingAccount='{{ billingAccount }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"documentId": "{{ documentId }}",
"type": "{{ type }}",
"url": "{{ url }}"
}'
;