[Asterisk-Dev] AgentCallBackLogin passthru.
José Pablo Ezequiel Fernández
pablo.fernandez at reliable.com.ar
Tue Oct 25 12:47:02 MST 2005
Hello,
We have the situation where we use Agents but we only do outgoing calls, so,
we only use it for accounting. But want to improve that and do some checking,
so we have the following set of ideas (having as a priority the easy of
implementation):
- Add another application called IsAgentLoggedIn(Exten) which would be
branching depending on if the agent is logged in or not.
- Add a parameter to AgentCallBackLogin() that would make it check if there's
an agent logged in, if there is it would act as a NoOP and let the dial-plan
flow continue, if not, it would ask for the user and pass and on successful
log-in it would continue and on fail it would branch.
The last feature is a bit complex (to explain), let me show you an example:
[outgoing]
exten => _.,1,AgentCallbackLogin(|${CALLERIDNUM}@sip|p)
exten => _.,2,Dial(Zap/1,${EXTEN})
exten => _.,102,hangup
When you are logged in, it will jump to the Dial, if not it'll ask you to log
in. If you log in successfully it'll go to the Dial, if not, to the hangup.
I believe this won't need a lot of changes to the source code, but please,
send me any feedback or comments regarding this.
Thanks.
--
José Pablo Ezequiel Fernández
More information about the asterisk-dev
mailing list