API Docs for: 2.6
Show:

queueMemberPauseUnpause Class

Module: plugins_command_11
Parent Module: ast_proxy

Command plugin to pause or unpause an extension from the specified queue. The queue parameter can be omitted. If it's, the pause or unpause is done in all queues.

Use it with ast_proxy module as follow:

ast_proxy.doCmd({ command: 'queueMemberPauseUnpause', queue: '401', exten: '214', reason: 'some reason', paused: true }, function (res) {
    // some code
});

ast_proxy.doCmd({ command: 'queueMemberPauseUnpause', exten: '214', reason: 'some reason', paused: true }, function (res) {
    // some code
});

Item Index

Methods

Properties

Methods

data

(
  • data
)
static

It's called from ast_proxy component for each data received from asterisk and relative to this command.

Parameters:

  • data Object

    The asterisk data for the current command

execute

(
  • am
  • args
  • cb
)
static

Execute asterisk action to pause/unpause an agent of a queue.

Parameters:

  • am Object

    Asterisk manager to send the action

  • args Object

    The object contains optional parameters passed to doCmd method of the ast_proxy component

  • cb Function

    The callback function called at the end of the command

setLogger

(
  • log
)
static

Set the logger to be used.

Parameters:

  • log Object

    The logger object. It must have at least three methods: info, warn and error

Properties

IDLOG

String private final

The module identifier used by the logger.

Default: [queueMemberPauseUnpause]

logger

Object private

The logger. It must have at least three methods: info, warn and error.

Default: console

map

Object private

Map associations between ActionID and callback to execute at the end of the command.