Skip to main content

ovh_pabx_hunting_agent_calls

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

Overview​

Nameovh_pabx_hunting_agent_calls
TypeResource
Idovh.telephony.ovh_pabx_hunting_agent_calls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
caller_id_namestringName of the caller (or anonymous if unknown) (wire: callerIdName)
agentstringName or number of the agent who answered the call
answeredstring (date-time)Answer date of the call
beginstring (date-time)Begin date of the call
caller_id_numberstringPhone number of the caller (or anonymous if unknown) (wire: callerIdNumber)
destination_numberstringPhone number called (in case of an outgoing call) (wire: destinationNumber)
endstring (date-time)End date of the call
on_holdbooleanWhether or not the call is on hold (wire: onHold)
queuestringName of the queue of the call
statestringCurrent state of the call (Answered, Waiting)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagent_id, billing_account, id, service_nameGet a live call
listselectagent_id, billing_account, service_namex_pagination_modeList agent calls
eavesdropexecagentId, billingAccount, id, serviceName, numberEavesdrop on a call
hangupexecagentId, billingAccount, id, serviceNameHang up a call
holdexecagentId, billingAccount, id, serviceNameToggle hold on a call
interceptexecagentId, billingAccount, id, serviceName, numberIntercept an unanswered call
transferexecagentId, billingAccount, id, serviceName, numberTransfer an answered call
whisperexecagentId, billingAccount, id, serviceName, number, whisperingModeWhisper on a call

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
agentIdinteger
agent_idinteger (wire: agentId)
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)
idintegerId of the object
serviceNamestring
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 live call

SELECT
id,
caller_id_name,
agent,
answered,
begin,
caller_id_number,
destination_number,
end,
on_hold,
queue,
state
FROM ovh.telephony.ovh_pabx_hunting_agent_calls
WHERE agent_id = '{{ agent_id }}' -- required
AND billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Eavesdrop on a call

EXEC ovh.telephony.ovh_pabx_hunting_agent_calls.eavesdrop
@agentId='{{ agentId }}' --required,
@billingAccount='{{ billingAccount }}' --required,
@id='{{ id }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"number": "{{ number }}"
}'
;