Skip to main content

easy_hunting_hunting_queues

Creates, updates, deletes, gets or lists an easy_hunting_hunting_queues resource.

Overview​

Nameeasy_hunting_hunting_queues
TypeResource
Idovh.telephony.easy_hunting_hunting_queues

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
queue_idinteger (wire: queueId)
action_on_closurestringAction executed when there is no member in queue (playback, voicemail) (wire: actionOnClosure)
action_on_closure_paramstringThe additionnal parameter of the on closure action (wire: actionOnClosureParam)
action_on_overflowstringAction executed when caller enters a full queue (playback, voicemail) (wire: actionOnOverflow)
action_on_overflow_paramstringThe additionnal parameter of the overflow action (wire: actionOnOverflowParam)
ask_for_record_disablingbooleanAllow the caller to disable call record by pressing a key (wire: askForRecordDisabling)
confirm_keystringThe key that tells the IVR that digit-entry is finished. Also used as a "repeat" key in the menus when no input is expected. (#, *, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9) (wire: confirmKey)
descriptionstringThe name of the queue
follow_call_forwardsbooleanFollow the calls forwarding (wire: followCallForwards)
max_memberintegerThe maximum of people waiting in the queue (wire: maxMember)
max_wait_timeintegerThe maximum waiting time (in seconds) in the queue (wire: maxWaitTime)
recordbooleanEnable record on calls in queue
record_disabling_digitintegerKey to press to disable record (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) (wire: recordDisablingDigit)
record_disabling_languagestringLanguage of the sound played to the caller to inform that he can disable record (english, french) (wire: recordDisablingLanguage)
sound_on_holdintegerThe id of the OvhPabxSound played to caller when on hold (wire: soundOnHold)
strategystringThe calls dispatching strategy (cumulationByAgentOrder, longestHangupAgent, longestIdleAgent, random, ringAll, roundRobin, sequentiallyByAgentOrder)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, queue_id, service_nameGet a queue
listselectbilling_account, service_namex_pagination_modeList queues
createinsertbilling_account, service_name, strategyCreate a queue
updateupdatebilling_account, queue_id, service_nameUpdate a queue
deletedeletebilling_account, queue_id, service_nameDelete a queue

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"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
queue_idinteger (wire: queueId)
service_namestring (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a queue

SELECT
queue_id,
action_on_closure,
action_on_closure_param,
action_on_overflow,
action_on_overflow_param,
ask_for_record_disabling,
confirm_key,
description,
follow_call_forwards,
max_member,
max_wait_time,
record,
record_disabling_digit,
record_disabling_language,
sound_on_hold,
strategy
FROM ovh.telephony.easy_hunting_hunting_queues
WHERE billing_account = '{{ billing_account }}' -- required
AND queue_id = '{{ queue_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a queue

INSERT INTO ovh.telephony.easy_hunting_hunting_queues (
action_on_closure,
action_on_closure_param,
action_on_overflow,
action_on_overflow_param,
ask_for_record_disabling,
description,
max_member,
max_wait_time,
record,
record_disabling_digit,
record_disabling_language,
sound_on_hold,
strategy,
billing_account,
service_name
)
SELECT
'{{ action_on_closure }}',
'{{ action_on_closure_param }}',
'{{ action_on_overflow }}',
'{{ action_on_overflow_param }}',
{{ ask_for_record_disabling }},
'{{ description }}',
{{ max_member }},
{{ max_wait_time }},
{{ record }},
{{ record_disabling_digit }},
'{{ record_disabling_language }}',
{{ sound_on_hold }},
'{{ strategy }}' /* required */,
'{{ billing_account }}',
'{{ service_name }}'
RETURNING
queue_id,
action_on_closure,
action_on_closure_param,
action_on_overflow,
action_on_overflow_param,
ask_for_record_disabling,
confirm_key,
description,
follow_call_forwards,
max_member,
max_wait_time,
record,
record_disabling_digit,
record_disabling_language,
sound_on_hold,
strategy
;

UPDATE examples​

Update a queue

UPDATE ovh.telephony.easy_hunting_hunting_queues
SET
action_on_closure = '{{ action_on_closure }}',
action_on_closure_param = '{{ action_on_closure_param }}',
action_on_overflow = '{{ action_on_overflow }}',
action_on_overflow_param = '{{ action_on_overflow_param }}',
ask_for_record_disabling = {{ ask_for_record_disabling }},
confirm_key = '{{ confirm_key }}',
description = '{{ description }}',
follow_call_forwards = {{ follow_call_forwards }},
max_member = {{ max_member }},
max_wait_time = {{ max_wait_time }},
record = {{ record }},
record_disabling_digit = {{ record_disabling_digit }},
record_disabling_language = '{{ record_disabling_language }}',
sound_on_hold = {{ sound_on_hold }},
strategy = '{{ strategy }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND queue_id = '{{ queue_id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete a queue

DELETE FROM ovh.telephony.easy_hunting_hunting_queues
WHERE billing_account = '{{ billing_account }}' --required
AND queue_id = '{{ queue_id }}' --required
AND service_name = '{{ service_name }}' --required
;