Skip to main content

line_options

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

Overview​

Nameline_options
TypeResource
Idovh.telephony.line_options

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
tone_on_call_waiting_sound_idintegerSound ID of on-call-waiting tone (wire: toneOnCallWaitingSoundId)
tone_on_hold_sound_idintegerSound ID of on-hold tone (wire: toneOnHoldSoundId)
tone_ringback_sound_idintegerSound ID of ringback tone (wire: toneRingbackSoundId)
absent_subscriberboolean (wire: absentSubscriber)
anonymous_call_rejectionbooleanReject anonymous calls (wire: anonymousCallRejection)
call_restriction_incomingbooleanWhether or not the line has restriction on incoming calls (wire: callRestrictionIncoming)
call_restriction_outgoingbooleanWhether or not the line has restriction on outgoing calls (wire: callRestrictionOutgoing)
call_waitingbooleanIf the line receives a new call and the line is already in communication, this new call is dispatched once the current call is completed (wire: callWaiting)
codecsstringCodecs preferences
default_voicemailstring (phone-number)The default voicemail of the line. It can be the voicemail of any line of your account. (wire: defaultVoicemail)
display_numberstring (phone-number)Phone number (wire: displayNumber)
do_not_disturbboolean (wire: doNotDisturb)
domainstringThe domain to configure in your SIP client.
forward_backupbooleanEnable calls forward when the line is unavailable (wire: forwardBackup)
forward_backup_naturestringNature of the forward when the line is unavailable (fax, number, voicemail) (wire: forwardBackupNature)
forward_backup_numberstring (phone-number)Destination of the forward when the line is unavailable (wire: forwardBackupNumber)
forward_busybooleanEnable calls forward when the line is busy (wire: forwardBusy)
forward_busy_naturestringNature of the forward when the line is busy (fax, number, voicemail) (wire: forwardBusyNature)
forward_busy_numberstring (phone-number)Destination of the forward when the line is busy (wire: forwardBusyNumber)
forward_no_replybooleanEnable calls forward on no-reply (wire: forwardNoReply)
forward_no_reply_delayintegerDelay before forward on no-reply (wire: forwardNoReplyDelay)
forward_no_reply_naturestringNature of the forward on no-reply (fax, number, voicemail) (wire: forwardNoReplyNature)
forward_no_reply_numberstring (phone-number)Destination of the forward on no-reply (wire: forwardNoReplyNumber)
forward_unconditionalbooleanEnable unconditional calls forward (wire: forwardUnconditional)
forward_unconditional_naturestringNature of the unconditional forward (fax, number, voicemail) (wire: forwardUnconditionalNature)
forward_unconditional_numberstring (phone-number)Destination of the unconditional forward (wire: forwardUnconditionalNumber)
identification_restrictionbooleanDo not display your number (wire: identificationRestriction)
intercomstringIntercom mode: takes automatically the call with the loudspeaker (no, prefixed, yes)
ip_restrictionsarrayThe ip restrictions of your line (wire: ipRestrictions)
languagestringLanguage of the line (Dutch, English (UK), French, French (BE), German, Italian, Spanish)
lock_out_callbooleanDisallow outgoing calls (wire: lockOutCall)
lock_out_call_passwordstringDisallow outgoing calls password (wire: lockOutCallPassword)
proxystringThe outbound proxy to configure in your SIP client.
record_outgoing_calls_betabooleanEnable or disable record of outgoing calls (wire: recordOutgoingCallsBeta)
voicemail_external_numberstring (phone-number)Voicemail number to dial from any other line (wire: voicemailExternalNumber)
voicemail_internal_numberstringVoicemail short number to dial from the line (wire: voicemailInternalNumber)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, service_nameGet the line options
updateupdatebilling_account, service_nameUpdate the line options

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)
service_namestring (wire: serviceName)

SELECT examples​

Get the line options

SELECT
tone_on_call_waiting_sound_id,
tone_on_hold_sound_id,
tone_ringback_sound_id,
absent_subscriber,
anonymous_call_rejection,
call_restriction_incoming,
call_restriction_outgoing,
call_waiting,
codecs,
default_voicemail,
display_number,
do_not_disturb,
domain,
forward_backup,
forward_backup_nature,
forward_backup_number,
forward_busy,
forward_busy_nature,
forward_busy_number,
forward_no_reply,
forward_no_reply_delay,
forward_no_reply_nature,
forward_no_reply_number,
forward_unconditional,
forward_unconditional_nature,
forward_unconditional_number,
identification_restriction,
intercom,
ip_restrictions,
language,
lock_out_call,
lock_out_call_password,
proxy,
record_outgoing_calls_beta,
voicemail_external_number,
voicemail_internal_number
FROM ovh.telephony.line_options
WHERE billing_account = '{{ billing_account }}' -- required
AND service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Update the line options

UPDATE ovh.telephony.line_options
SET
absent_subscriber = {{ absent_subscriber }},
anonymous_call_rejection = {{ anonymous_call_rejection }},
call_restriction_incoming = {{ call_restriction_incoming }},
call_restriction_outgoing = {{ call_restriction_outgoing }},
call_waiting = {{ call_waiting }},
codecs = '{{ codecs }}',
default_voicemail = '{{ default_voicemail }}',
display_number = '{{ display_number }}',
do_not_disturb = {{ do_not_disturb }},
domain = '{{ domain }}',
forward_backup = {{ forward_backup }},
forward_backup_nature = '{{ forward_backup_nature }}',
forward_backup_number = '{{ forward_backup_number }}',
forward_busy = {{ forward_busy }},
forward_busy_nature = '{{ forward_busy_nature }}',
forward_busy_number = '{{ forward_busy_number }}',
forward_no_reply = {{ forward_no_reply }},
forward_no_reply_delay = {{ forward_no_reply_delay }},
forward_no_reply_nature = '{{ forward_no_reply_nature }}',
forward_no_reply_number = '{{ forward_no_reply_number }}',
forward_unconditional = {{ forward_unconditional }},
forward_unconditional_nature = '{{ forward_unconditional_nature }}',
forward_unconditional_number = '{{ forward_unconditional_number }}',
identification_restriction = {{ identification_restriction }},
intercom = '{{ intercom }}',
ip_restrictions = '{{ ip_restrictions }}',
language = '{{ language }}',
lock_out_call = {{ lock_out_call }},
lock_out_call_password = '{{ lock_out_call_password }}',
record_outgoing_calls_beta = {{ record_outgoing_calls_beta }},
tone_on_call_waiting_sound_id = {{ tone_on_call_waiting_sound_id }},
tone_on_hold_sound_id = {{ tone_on_hold_sound_id }},
tone_ringback_sound_id = {{ tone_ringback_sound_id }}
WHERE
billing_account = '{{ billing_account }}' --required
AND service_name = '{{ service_name }}' --required;