Asterisk func agent

Synopsis:

Gets information about an Agent

Description:

  AGENT(<agentid>[:item])


The valid items to retrieve are:
  • status: (default) The status of the agent. Will/Must be one of the values: LOGGEDIN | LOGGEDOUT
  • password: The password of the agent
  • name: The name of the agent
  • mohclass: MusicOnHold class
  • exten: The callback extension for the Agent (AgentCallbackLogin)
  • channel: The name of the active channel for the Agent (AgentLogin)

Notes

  • *CLI> show function AGENT

Return value

Returns the resulting string.

Example

exten => s,1,Set(foo=${AGENT(27:name)})


See also


Synopsis:

Gets information about an Agent

Description:

  AGENT(<agentid>[:item])


The valid items to retrieve are:
  • status: (default) The status of the agent. Will/Must be one of the values: LOGGEDIN | LOGGEDOUT
  • password: The password of the agent
  • name: The name of the agent
  • mohclass: MusicOnHold class
  • exten: The callback extension for the Agent (AgentCallbackLogin)
  • channel: The name of the active channel for the Agent (AgentLogin)

Notes

  • *CLI> show function AGENT

Return value

Returns the resulting string.

Example

exten => s,1,Set(foo=${AGENT(27:name)})


See also


Created by: murf, Last modification: Sun 10 of Jun, 2012 (00:19 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+