<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Asterisk 1.2.17</FONT></DIV>
<DIV><FONT face=Arial size=2>Right now I am using AGENTBYCALLERID_<agent
number> variable to track agent login/logoff status. When an agent log into
queue using AgentCallbackLogin(), AGENTBYCALLERID_<agent number> is
set to agent phone number. When agent logoff, I use SetGlobalVar() to empty
AGENTBYCALLERID_<agent number>. This way by checking this variable, I can
tell wether an agent is login or logoff in my dialplan. But
sometime AGENTBYCALLERID_<agent number> is set to empty even if
the agent is still in login mode. My guess is that somewhere asterisk reset this
variable. Here are my questions:</FONT></DIV>
<DIV><FONT face=Arial size=2>1) Can I use this variable
(AGENTBYCALLERID_<agent number>) to track the status of agent for login
and logff purpose?</FONT></DIV>
<DIV><FONT face=Arial size=2>2) What other event in Asterisk can also change
value of this variable beside AgentCallbackLogin() function?</FONT></DIV>
<DIV><FONT face=Arial size=2>3) Any better way to do this?</FONT></DIV>
<DIV><FONT face=Arial size=2>4) Somebody metioned another function called AGENT.
But I can not find it in my Asterisk. Does this function really
exist?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I know I can use AMI to check status of agent but I
only need the agent status inside my dialplan.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Gary</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>