Hello all,
Sorry if this is already answered, but I did search both the forum and google. Maybe I just can’t make the best search phrase.
I need to implement simple agent logon and logoff on Asterisk 1.8.7, running on CentOS 5.5 if that matters.
From what I could read so far, AgentCallBackLogin is deprecated and AgentLogin has to be used. But I don’t know how and don’t have the Asterisk experience to figure it out. Also, the system has FreePBX 2.9 installed but since FreePBX doesn’t handle agents I think this is only Asterisk question (correct me if I’m wrong).
Comparing from an older system with Asterisk 1.2, I have created the following in extensions_custom.conf (since you don’t edit extensions.conf directly when FreePBX is involved):
[from-internal-custom]
exten => 200,1,Answer
exten => 200,2,AgentLogin()
exten => 200,3,Hangup()
That worked sort of, allowing me to hear the agent login message when dialing 200 and logging in the agent after entering the agent number followed by # (there are no agent passwords set).
But if you hang up the call, it logs off.
What I need is:
- Agent picks up the phone, dials 200 and listens to the agent message.
- Enters the agent number,# and listens to a message asking about the extension (which doesn’t happen in the above scenario).
- After entering the extension,# it gets “permanently” logged in on that extension even after he hangs up.
- He stays logged in until he logs off by doing the same procedure as above only without entering any extension number (agent number,#,#).
This is how it works on the old system I am trying to replace. I know things have changed in 1.8, so I am asking if there is anything simple and very similar or even better identical to the above. If it can be done, how?
I am good with linux CLI but a real beginner in Asterisk, so I prefer a simple solution that works. I don’t need anything fancy, just something that would log an agent, keep him logged in after hanging up the call he used to log in, and log him off on demand.
Sorry for the long post, I wanted to give as much information in advance. Thanks for any advice and help.
Darko.