Skip to main content

Function Keys

Function keys can be used as shortcuts for dialing a number, or accomplishing other menial tasks, by pushing a button on the phone. A function key's action is determined by its destination.

Function keys can be added directly on a user, or in a template. Templates are useful for creating a set of common function keys that can be used by the same group of people.

This page only describes the data models used by the REST API. Consult the API documentation for further details on URLs.

Function Key Template

Parameters

FieldTypeRequiredValue
namestringNoA name for the template.
keysFunction KeyNoA collection of function keys under the form {"position": "funckey"}. See the example for more details.

Example

{
"name": "Example template",
"keys": {
"1": {
"destination": {
"type": "user",
"user_id": 34
}
},
"2": {
"blf": true,
"label": "Call mom",
"destination": {
"type": "custom",
"exten": "5551234567"
}
}
}
}

Function Key

Description

FieldTypeRequiredValue
blfbooleanNoTurn on BLF when there is activity on the destination
labelstringNoLabel to display next to the function key
destinationDestinationYesDestination to call

Example

{
"blf": true,
"label": "Call john",
"destination": {
"type": "user",
"user_id": 34
}
}

Destination

A destination determines the number to dial when using a function key. Destinations are composed of a parameter named type and any additional parameters required by its type.

Available destination types:

  • agent: An agent
  • bsfilter: Boss/Secretary filter
  • conference: Conference room
  • custom: A custom number to dial
  • forward: Forward a call towards another number
  • group: A group
  • groupmember: Join or leave a group
  • onlinerec: Record a conversation during a call
  • paging: A paging
  • park: Park a call
  • park_position: Pick up a parked call
  • queue: Call queue
  • service: A call service
  • transfer: Transfer a call
  • user: A User

Here are the parameters required for each destination:

Agent

FieldTypeValue
agent_idnumericID of the agent
actionstringWhat to do with this agent. Valid values: login, logout, toggle

BSFilter

FieldTypeValue
filter_member_idnumericID of the filter member

Conference

FieldTypeValue
conference_idnumericID of the conference

Custom

FieldTypeValue
extenstringExtension to dial

Forward

FieldTypeValue
forwardstringType of forward. Possible values: busy, noanswer, unconditional
extenstringForward destination extension (optional)

Group

FieldTypeValue
group_idnumericID of the group

Group Member

FieldTypeValue
group_idnumericID of the group
actionstringWhat to do with this group. Valid values: join, leave, toggle

Online call recording

No parameters are required for this destination

Paging

FieldTypeValue
paging_idnumericID of the paging

Parking

FieldTypeValue
parking_lot_idnumericID of the parking lot

Parking Position

FieldTypeValue
parking_lot_idnumericID of the parking lot
positionnumeric stringPosition inside the parking to pick up

Queue

FieldTypeValue
queue_idnumericID of the queue

Service

FieldTypeValue
servicestringName of the service

Currently supported services:

  • phonestatus: Phone Status
  • recsnd: Sound Recording
  • callrecord: Call recording
  • incallfilter: Incoming call filtering
  • enablednd: Enable "Do not disturb" mode
  • pickup: Group Interception
  • calllistening: Listen to online calls
  • directoryaccess: Directory access
  • fwdundoall: Disable all forwaring
  • enablevm: Enable Voicemail
  • vmusermsg: Consult the Voicemail
  • vmuserpurge: Delete messages from voicemail

Transfer

FieldTypeValue
transferstringType of transfer. Possible values: blind, attended

User

FieldTypeValue
user_idnumericID of the user