How can agents access some functions?

Agents log in using AgentLogin command.
(This makes them stay online until they hang up. Going on hook makes agent to logoff.)

We need some features available for agents.
In particular:

  • requesting number of last caller (or - saying number before they get connected)
  • denote status code of last call.
  • setting agents to pause and to unpause (staying on hold).

However, while agent is online, seems like no service codes available for agents.
wiki-page mentions status “after call working”.
but nothing detailed i could found about it.

How to achieve mentioned features?