Edit Preference Setting

Update the system preference settings.

Request URL

POST {base_url}/{api_path}/preference/update?access_token={access_token}

Request parameters

Parameter Required Type Description
Basic
dev_name No String The device name.
name_disp_fmt No String The name display format.

Valid value:

  • first_last: First Name Last Name with Space Inbetween
  • last_first: Last Name First Name with Space Inbetween
  • lastfirst: Last Name First Name without Space Inbetween
max_call_duration No Integer The maximum call duration for an active call, in seconds.

Valid value: 0-9999999, where 0 indicates no limit.

tone_region No String The country or region whose default dial tone, busy tone, and ring tone are used.
Note: For valid values, see Supported Values for Tone Region.
fxo_mode No String The FXO mode.

Valid value:

  • FCC: FCC (United States).
  • TBR21: TBR21 (Europe).
  • ARGENTINA: Argentina.
  • AUSTRALIA: Australia.
  • AUSTRIA: Austria.
  • BAHRAIN: Bahrain.
  • BELGIUM: Belgium.
  • BRAZIL: Brazil.
  • BULGARIA: Bulgaria.
  • CANADA: Canada.
  • CHILE: Chile.
  • CHINA: China.
  • COLUMBIA: Colombia.
  • CROATIA: Croatia.
  • CYRPUS: Cyprus.
  • CZECH: Czech.
  • DENMARK: Denmark.
  • ECUADOR: Ecuador.
  • EGYPT: Egypt.
  • ELSALVADOR: El Salvador.
  • FINLAND: Finland.
  • FRANCE: France.
  • GERMANY: Germany.
  • GREECE: Greece.
  • GUAM: Guam.
  • HONGKONG: Hong Kong, China.
  • HUNGARY: Hungary.
  • ICELAND: Iceland.
  • INDIA: India.
  • INDONESIA: Indonesia.
  • IRELAND: Ireland.
  • ISRAEL: Israel.
  • ITALY: Italy.
  • JAPAN: Japan.
  • JORDAN: Jordan.
  • KAZAKHSTAN: Kazakhstan.
  • KUWAIT: Kuwait.
  • LATVIA: Latvia.
  • LEBANON: Lebanon.
  • LUXEMBOURG: Luxembourg.
  • MACAO: Macao, China.
  • MALAYSIA: Malaysia.
  • MALTA: Malta.
  • MEXICO: Mexico.
  • MOROCCO: Morocco.
  • NETHERLANDS: Netherlands.
  • NEWZEALAND: New Zealand.
  • NIGERIA: Nigeria.
  • NORWAY: Norway.
  • OMAN: Oman.
  • PAKISTAN: Pakistan.
  • PERU: Peru.
  • PHILIPPINES: Philippines.
  • POLAND: Poland.
  • PORTUGAL: Portugal.
  • ROMANIA: Romania.
  • RUSSIA: Russia.
  • SAUDIARABIA: Saudi Arabia.
  • SINGAPORE: Singapore.
  • SLOVAKIA: Slovakia.
  • SLOVENIA: Slovenia.
  • SOUTHAFRICA: South Africa.
  • SOUTHKOREA: South Korea.
  • SPAIN: Spain.
  • SWEDEN: Sweden.
  • SWITZERLAND: Switzerland.
  • SYRIA: Syria.
  • TAIWAN: Taiwan, China.
  • THAILAND: Thailand.
  • TURKEY: Turkey.
  • UAE: United Arab Emirates.
  • UK: United Kingdom.
  • USA: United States.
  • YEMEN: Yemen.
flash_event No String The event triggered when the hook flash is pressed.

Valid value:

  • threewaycall: 3-way calling.
  • tranfer: Call transfer.
enb_ring_back No Integer Whether to allow callers to hear the virtual ringback tone before the callee answers when making outbound calls through a cellular trunk.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
Organization Management
enb_organization_status No Integer Whether to organize extension users into organizations.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
company_name No String The company name, which is used as the root organization name.
Internal Chat
allow_im No Integer Whether to enable internal chat.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
Read Receipt
enb_message_read_receipt No Integer Whether to allow agents and customers to see a read status indicator () beside their messages in external chats conducted via online messaging channels (WhatsApp, Facebook, and Live Chat).

Valid value:

  • 0: Disabled.
  • 1: Enabled.
Caller ID Name
caller_id_display_rule_desktop No Integer The display rule for Caller ID Name on Linkus Web Client, Linkus Desktop Client, and extension endpoints (e.g. IP phones and softphones).

Valid value:

  • 0: Display both the contact name and the caller ID name carried by the caller
  • 1: Display only the contact name.
  • 2: Display the caller ID name carried by the caller. If the caller only send a number, display the matched contact name instead.
caller_id_display_rule_mobile No Integer The display rule for Caller ID Name on Linkus Mobile Client.

Valid value:

  • 0: Display both the local contact name and the name carried in the From header of the SIP message.
  • 1: Display only the local contact name.
  • 2: Display the name carried in the From header of the SIP message. If it is a number, display the local contact name instead.
Distinctive Caller ID Name
enb_cid_name_by_call_features No Integer Whether to display the originated name when users receive calls from a ring group, queue, IVR, or call flow.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_cid_name_by_trunk_did No Integer Whether to display the DID name associated with the source trunk.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_diversion_for_ext_forwarding No Integer Whether to display the name and number of the forwarding extension when an incoming call to an extension is forwarded directly to the destination configured for Extension Forwarding with Diversion SIP Header.

Valid value:

  • 0: Not displayed.
  • 1: Displayed.
Masked Number
enb_through_api No Integer Whether to mask the destination number when a third-party application initiates an outbound call through the API.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_through_speed_dial No Integer Whether to mask the destination number when an extension user makes an outbound call using Speed Dial.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_through_click2call No Integer Whether to mask the destination number when an extension user initiates a call via click-to-call using 'Yeastar Linkus for Google' Chrome extension.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_incoming_calls No Integer Whether to mask external phone numbers when extension users receiving inbound calls.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
Call Notes
enb_call_note No Integer Whether to enable call note.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_call_note_queue No Integer Whether queue agents can add tags and remarks during queue calls or wrap-up time, and review or edit call notes in the corresponding call logs.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_call_note_ring_group No Integer Whether ring group members can add tags and remarks during ring group calls, and review or edit call notes in the corresponding call logs.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_call_note_vm No Integer Whether extension users can add tags and remarks to the calls sent to their extension's voicemails, and review or edit call notes in the corresponding call log.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_call_note_ext No Integer Whether extension users can add tags and remarks during calls they receive, and review or edit call notes in the corresponding call logs.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
enb_call_note_outbound No Integer Whether extension users can add tags and remarks during outbound calls they initiate, and review or edit call notes in the corresponding call logs.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
Presence
presence_list No Array<Presence> The list of custom presence statuses.
Filter Number
enb_number_filter No Integer Whether to automatically remove all special characters (except digits, +, *, and #) from dialed numbers before sending them to the trunk.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
DTMF
enb_dtmf_passthrough No Integer Whether PBX passes DTMF tones directly to the other party without processing them.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
dtmf_duration No Integer The duration (in millisecond) of DTMF audio signal sent by the PBX.

Valid value: 80 - 300

dtmf_gap No Integer The interval (in millisecond) between consecutive DTMF audio signals sent by the PBX.
Extension Preferences
ext_start No String The start of the extension number range.
ext_end No String The end of the extension number range.
parking_start No String The start of the parking lot number range.
parking_end No String The end of the parking lot number range.
vm_group_start No String The start of the group voicemail number range.
vm_group_end No String The end of the group voicemail number range.
ivr_start No String The start of the IVR number range.
ivr_end No String The end of the IVR number range.
ring_group_start No String The start of the ring group number range.
ring_group_end No String The end of the ring group number range.
queue_start No String The start of the queue number range.
queue_end No String The end of the queue number range.
conference_start No String The start of the conference number range.
conference_end No String The end of the conference number range.
paging_start No String The start of the paging group number range.
paging_end No String The end of the paging group number range.
account_start No String The start of the account trunk number range.
account_end No String The end of the account trunk number range.
webrtc_trunk_start No String The start of the WebRTC trunk number range.
webrtc_trunk_end No String The end of the WebRTC trunk number range.
cfd_start No String The start of the call flow number range.
cfd_end No String The end of the call flow number range.
Presence
Parameter Type Description
display_icon Integer The icon representing the custom status.

Valid value:

  • 1: Available.
  • 2: Away.
  • 3: Business Trip.
  • 4: Do Not Disturb.
  • 5: Lunch.
  • 6: Off Work.
display_name String The display name of the custom status.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Example

Request example

POST /openapi/v1.0/preference/update?access_token=gwakjgu9ZBUfz36wql4ndsVKkryI0kdj HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: application/json
{
  "dtmf_duration": 100
}

Response example

HTTP/1.1 200 OK
{
  "errcode": 0,
  "errmsg": "SUCCESS",
  "submsg": ""
}