On Wed, 2010-01-13 at 10:42 +0800, Zhang Shukun wrote:
> is there some function used to login a agent automaticlly like
>
> agentlogin("agentname","agentpassword","phonenumber")?
Depends what version you are running.
AgentCallBackLogin() is deprecated and you should not use it.
But the feature can be reproduced with dialplan logic.
http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%
20AgentCallbackLogin
This is a whole world of pain, as is using Agents in some situations.
It is better to use SIP channels. (Agents do not seem to work nicely
with a bunch of other features.) It is less flexible.
It may be better for you to do this using AddQueueMember and
RemoveQueueMember on SIP channels, and program a key (or keys) on the
handset to add and remove the member from the queue dynamically instead
of adding them as static members in queues.conf.
Rob
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users