Skip to main content

line_calls

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

Overview​

Nameline_calls
TypeResource
Idovh.telephony.line_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
getselectbilling_account, id, service_nameGet a live call (Deprecated, will be removed)
listselectbilling_account, service_namex_pagination_modeList live calls (Deprecated, will be removed)
eavesdropexecbillingAccount, id, serviceName, numberEavesdrop on a call (Deprecated, will be removed)
hangupexecbillingAccount, id, serviceNameHang up a call (Deprecated, will be removed)
holdexecbillingAccount, id, serviceNameToggle hold on a call (Deprecated, will be removed)
interceptexecbillingAccount, id, serviceName, numberIntercept an unanswered call (Deprecated, will be removed)
transferexecbillingAccount, id, serviceName, numberTransfer an answered call (Deprecated, will be removed)
whisperexecbillingAccount, id, serviceName, number, whisperingModeWhisper on a call (Deprecated, will be removed)

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)
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 (Deprecated, will be removed)

SELECT
id,
caller_id_name,
agent,
answered,
begin,
caller_id_number,
destination_number,
end,
on_hold,
queue,
state
FROM ovh.telephony.line_calls
WHERE 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 (Deprecated, will be removed)

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