Add an Outbound Queue

Add an outbound queue.

Request URL

POST {base_url}/{api_path}/outbound_queue/create?access_token={access_token}

Request parameters

Parameter Required Type Description
name Yes String Queue name.
number Yes String Queue number.
fail_dest Yes String The destination type of unanswered queue calls.

Valid value:

  • end_call: Hang Up.
  • extension: Extension.
  • ext_vm: Extension Voicemail.
  • group_vm: Group Voicemail.
  • ivr: IVR.
  • call_flow: Call Flow.
  • ring_group: Ring Group.
  • queue: Queue.
  • external_num: External Number.
  • play_greeting: Play Prompt and Exit.
fail_dest_prefix No String This parameter defines different settings depending on the destination type of unanswered queue calls (fail_dest).
  • When the destination type is external_num, this parameter defines the dial-out prefix of the external number.
  • When the destination type is play_greeting, this parameter defines the play count of the prompt. The valid value is 1 - 5.
fail_dest_value No String The destination of unanswered queue calls. This parameter defines different settings depending on the destination type of unanswered queue calls (fail_dest).
  • When the destination type is play_greeting, this parameter defines the custom prompt file name. E.g. demo.wav.
  • When the destination type is extension, ext_vm, group_vm, ivr, call_flow, ring_group, or queue, this parameter should be the unique ID of the destination.

    For example, the destination is the extension 2002, then this parameter should be set to the extension's ID 2.

  • When the destination type is external_num, this parameter defines the external number.
dynamic_agents No String The extension numbers of dynamic agents.
Note:
  • You can query the available extension numbers using the Query Extension List interface; Use a comma to separate multiple extension numbers.
  • The extension numbers must not overlap with those of static_agents.
static_agents No String The extension numbers of static agents.
Note:
  • You can query the available extension numbers using the Query Extension List interface; Use a comma to separate multiple extension numbers.
  • The extension numbers must not overlap with those of dynamic_agents.
managers No String The extension numbers of queue managers.
Note:
  • You can query the available extension numbers using the Query Extension List interface.
  • Use a comma to separate multiple extension numbers.
agent_prompt No String The prompt to be played to agents when they answer a queue call.
Valid value:
  • Empty string: No prompt played.
  • Other value: The filename of the custom prompt (e.g. demo.wav).
    Note:

    You can query the filename of custom prompts using Get Menu Options ("menu":"custom_prompt").

agent_timeout No Integer Ringing timeout for agents (Unit: Second).
Valid value: 1 - 9999999.
Note: If an agent did not answer the call after the ringing timeout, system will ring the next available agent according to the ring strategy.
alert_info No String The "Alert-info" Header in the INVITE request to trigger the IP phone to play distinctive ringtones when receiving an incoming call from this queue.
caller_announce_freq No Integer The time interval to announce the number of people waiting ahead to the callers (Unit: Second).

Valid value: 1 - 999.

client_unique_ringtone No String The distinctive ringtone that will be played on agents' Linkus clients when they receive calls from this queue.
Valid value:
  • Empty string: The system will use the ringtone set on the Linkus clients.
  • Other value: The filename of the ringtone (e.g. Ring1.mp3).
    Note: You can query the ringtone name using Query Custom Ringtone List.
enb_announce_agent_id No Integer Announce the agent ID to callers.

Valid value:

  • 0: Disable.
  • 1: Enable.
enb_announce_default_prompt No Integer Periodically play the prompt "Thank You for Your Patience" to callers while they are waiting in the queue.

Valid value:

  • 0: Disable.
  • 1: Enable.
enb_announce_hold_time No Integer Periodically announce the estimated waiting time to callers while they are waiting in the queue.

Valid value:

  • 0: Disable.
  • 1: Enable.
enb_announce_pos No Integer When callers are waiting in the queue, periodically announce the number of people waiting ahead of them.

Valid value:

  • 0: Disable.
  • 1: Enable.
enb_auto_pause No Integer When the number of consecutive missed queue calls for an agent reach the threshold, the system automatically pauses the agent and sends a notification email.

Valid value:

  • 0: Disable.
  • 1: Enable.
enb_custom_language No Integer

Whether to enable custom prompt language for the queue.

Valid value:
  • 0: Disabled.
  • 1: Enabled.
enb_email_abandon_call No Integer Notify queue managers by email when a queue call is abandoned.

Valid value:

  • 0: Disable.
  • 1: Enable.
enb_email_miss_call No Integer Notify queue managers by email when a queue call is missed.

Valid value:

  • 0: Disable.
  • 1: Enable.
enb_extension_always_forward No Integer Whether to apply the Always call forwarding destinations of agents' extensions for the queue calls.

After enabled, if an agent's extension has an Always call forwarding destination configured to Extension, Mobile Number, or External Number, and is currently in the corresponding presence, the system will directly ring the configured forwarding destination instead of the agent's extension upon receiving a queue call, while other agents still ring normally based on the ring strategy.

Valid value:
  • 0: Disable.
  • 1: Enable.
enb_queue_skill_based_routing No Integer Whether to route queue calls based on agents' skill levels.
Valid value:
  • 0: Disable.
  • 1: Enable.
enb_ring_in_use No Integer Assign queue calls to agents that are during an active call.

Valid value:

  • 0: Disable.
  • 1: Enable.
join_prompt No String The prompt played to callers when they join the queue.
Valid value:
  • Empty string: Play the next stage's prompt; if no prompt exists, play the caller's own ringing tone (beep sound).
  • Other value: The filename of the custom prompt (e.g. demo.wav).
    Note:

    You can query the filename of custom prompts using Get Menu Options ("menu":"custom_prompt").

max_pause_miss_call No Integer The threshold for agent's consecutive missed calls.

Valid value: 1 - 5.

Note: This parameter is required when enb_auto_pause is set to 1.
max_wait_time No Integer The maximum time that callers are allowed to wait for an available agent in the queue (Unit: Second).
Valid value: 0 - 9999999.
Note: 0 indicates no restriction on the caller's waiting time in the queue.
moh No String The music to be played when callers are waiting in the queue.
Valid value:
  • follow_system: Follow system setting (Set on PBX Settings > Voice Prompt > Prompt Preferences > Music on Hold).
  • Empty string: No music played.
  • Other value: The name of the MoH (Music on Hold) playlist.

    Note: You can query the name of MoH playlists using Query MoH Playlists.
play_full_join_prompt No Integer Whether to play full join prompt to callers before ringing members.
Valid value:
  • 0: Disable.
  • 1: Enable.
prompt_language No String The custom language for system prompts in the queue.

Valid value: The prompt language existed in PBX System Prompt.

Note: You can query the available system prompt languages using Get Menu Options ("menu":"system_prompt").
retry_time No Integer The time interval before ringing the next available agent after the previous available agent's ringing timeout (Unit: Second).

Valid value: 1 - 9999999.

ring_strategy No String The ring strategy of the queue.

Valid value:

  • ring_all: Ring all available agents simultaneously until someone answers.
  • least_recent: Ring the available agent that was least recently called.
  • fewest_calls: Ring the available agent with the fewest completed calls.
  • random: Ring the agents randomly.
  • rrmemory: Round robin with memory.
  • linear: Ring the available agent in specific order based on the type of agents in the queue.
Note: If enb_queue_skill_based_routing is set to 1, queue calls will be routed in descending order of the agents' skill levels, and the ring strategy will only apply to agents with the same skill level.
ringback_tone No String The prompt or music to be played to callers before members answer the calls.

Valid value:

  • Empty string: Continue to play the previous stage's prompt; if no prompt exists, play the caller's own ring tone (beep sound).
  • Other value: The filename of custom prompt (e.g. demo.wav) or the name of MoH (music on hold) playlist.
    Note: You can query the filename of custom prompts using Get Menu Options ("menu":"custom_prompt"), and query the name of MoH playlists using Query MoH Playlists.
sys_announce_freq No Integer The time interval to play the queue announcements (Unit: Second).

Valid value: 1 - 9999.

sys_announce_prompt No String The queue announcement which is periodically played to callers after they reach the queue.
Valid value:
  • Empty string: No prompt played.
  • Other value: The filename of the custom prompt (e.g. demo.wav).
    Note:

    You can query the filename of custom prompts using Get Menu Options ("menu":"custom_prompt").

wrap_up_time No Integer Wrap-up time for agents, which can be used to handle post-call tasks after finishing a call (Unit: Second).

Valid value: 1 - 9999999.

Note: Agents will NOT receive queue calls until the wrap-up time is over.

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.
id Integer The unique ID of the newly created outbound queue.

Example

Request example

POST /openapi/v1.0/outbound_queue/create?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1
Host: 192.168.5.150:8088
Content-Type: application/json
{
    "name": "API Test Outbound Queue",
    "number": "9100",
    "fail_dest": "end_call",
    "ring_strategy": "least_recent",
    "static_agents": "3200",
    "managers": "3200",
    "agent_timeout": 30
}

Response example

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