login | register
Wed 03 of Dec, 2008 [22:43 UTC]

voip-info.org

Discuss [0] History

Asterisk func agent

Created by: murf,Last modification on Sat 14 of Jan, 2006 [05:14 UTC]

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



Comments