Skip to main content

line_automatic_calls

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

Overview​

Nameline_automatic_calls
TypeResource
Idovh.telephony.line_automatic_calls

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
answer_datetimestring (date-time)answer date (wire: answerDatetime)
applicationstringApplication and dialplan running for call
application_resultstringend status of application (wire: applicationResult)
billing_numberstring (phone-number)billingNumber (service used) (wire: billingNumber)
call_created_datetimestring (date-time)creation date of the call (wire: callCreatedDatetime)
call_durationintegercall duration on seconds (wire: callDuration)
calleestring (phone-number)number called
callerstring (phone-number)number where the call come from
dtmfstringDTMF received during the call separate by commas
hangup_causestringhangup cause (AccessInformationDiscarded, AllottedTimeout, AttendedTransfer, BlindTransfer, CallAwardedbeing, ChannelTypeNotImplemented, ChannelUnacceptable, CodeSip403BearerCapabilityNotAuthorized, CodeSip403IncomingCallsBarred, CodeSip403OutgoingCallsBarred, CodeSip404NoRouteToDestination, CodeSip404NoRouteToSpecifiedTransitNetwork, CodeSip404UnallocatedNumber, CodeSip408NoUserResponding, CodeSip410NumberChanged, CodeSip410RedirectionToNewDestination, CodeSip480NoAnswerFromUser, CodeSip480NormalUnspecified, CodeSip480SubscriberAbsent, CodeSip483ExchangeRoutingError, CodeSip484InvalidNumberFormatAddressIncomplete, CodeSip486UserBusy, CodeSip487OriginatorCancel, CodeSip488IncompatibleDestination, CodeSip488bearerCapabilityNotImplemented, CodeSip501FacilitiesRejected, CodeSip501RequestedFacilityNotImplemented, CodeSip501ServiceOrOptionNotImplementedUnspecified, CodeSip502DestinationOutOfOrder, CodeSip503BearerCapabilityNotPresentlyAvailable, CodeSip503NetworkOutOfOrder, CodeSip503NoCircuitChannelAvailable, CodeSip503RequestedCircuitOrChannelNotAvailable, CodeSip503SwitchingEquipmentCongestion, CodeSip503TemporaryFailure, CodeSip504RecoveryOnTimerExpiry, CodeSip603CallRejected, Crash, GatewayDown, InformationElementOrParameterNonExistentOrNotImplemented, InterworkingUnspecified, InvalidCallReferenceValue, InvalidInformationElementContents, InvalidMessageUnspecified, LoseRace, ManagerRequest, MandatoryInformationElementIsMissing, MediaTimeout, MessageNotCompatibleWithCallState, MessageNotCompatibleWithCallStateOrMessageTypeNonExistentOrNotImplemented, MessageTypeNonExistentOrNotImplemented, NormalCallClearing, ParameterNonExistentOrNotImplementedPassedOnNationalUse, PickedOff, PreEmpted, ProgressTimeout, ProtocolErrorUnspecified, RequestedFacilityNotSubscribed, ResponseToStatusInquiry, ServiceOrOptionNotAvailableUnspecified, SystemShutdown, UnknownOrCallUnfinished, UnspecifiedNoOtherCauseCodesApplicable, UserChallenge, UserNotRegistered) (wire: hangupCause)
hangup_datetimestring (date-time)hangup date (wire: hangupDatetime)
identifierstringGenerated call identifier
transfer_fromstringoriginal call uuid if it's a transfer (wire: transferFrom)
uuidstringunique call id

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, identifier, service_nameGet an automatic call
listselectbilling_account, service_namex_pagination_modeList automatic calls
createinsertbilling_account, service_name, called_number, dialplan, is_anonymousMake an automatic 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
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)
identifierstringGenerated call identifier
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 an automatic call

SELECT
answer_datetime,
application,
application_result,
billing_number,
call_created_datetime,
call_duration,
callee,
caller,
dtmf,
hangup_cause,
hangup_datetime,
identifier,
transfer_from,
uuid
FROM ovh.telephony.line_automatic_calls
WHERE billing_account = '{{ billing_account }}' -- required
AND identifier = '{{ identifier }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Make an automatic call

INSERT INTO ovh.telephony.line_automatic_calls (
bridge_number_dialplan,
called_number,
calling_number,
dialplan,
is_anonymous,
playback_audio_file_dialplan,
timeout,
tts_text_dialplan,
billing_account,
service_name
)
SELECT
'{{ bridge_number_dialplan }}',
'{{ called_number }}' /* required */,
'{{ calling_number }}',
'{{ dialplan }}' /* required */,
{{ is_anonymous }} /* required */,
'{{ playback_audio_file_dialplan }}',
{{ timeout }},
'{{ tts_text_dialplan }}',
'{{ billing_account }}',
'{{ service_name }}'
;