There’s a difference between how DAHDI hangs up verses SIP. But the code is working so far. What you need to do now is have an agent log in. Just dial 28 from one of the VOIP phones, then run ‘queue show CallQueue3197’. If that works, you should see a member, and the call should be sent to the queue. Which should ring that phone.
First I need to set up the context for the agents log in and out, wich I didn’t. I understand that I need to create context in extensions.conf file but how should i name that context?? the name is related to the name of the conf file of the extension 3197??
You can just put that code in the same context that the voip phones current use to dial.
I can’t log in the agent. When I dial 28 in the voip phone it says “invalid extension”
Another thing, can I set up some music to the queue to see if when I dial from external at least hear the music??
If the login/out is in the same context as the rest of the dialing (same context as the extensions in sip.conf), then it should be able to find it as long as the dialplan was reloaded after the change was saved.
Yes, you can comment out what I listed above, and just have:
[Queues]
exten => 3197,1,Answer()
same => n,Queue(CallQueue3197)
You’ll also need to change joinempty to yes and leavewhenempty to no (like you had it before). Then do “queue reload all” (I think). it should allow you to enter the queue and hear the default music.
Definitely I can’t log in the agent. I’m very desperate. Would you like access to my PC through Team Viewer and from there access to my asterisk??
.
I could try. Does Team Viewer run on Linux?
I’m installing it now.
ok thanks my friend!!
Hi mkozusnik,
I appreciate your help very much. Thanks a lot!! Can I rate your help in anyway here in the community?? Please let me know if I can.
BR.
Glad I was able to help. I’m not sure if there’s a way to rate, but it’s not necessary anyway. We all help each other when we get stuck. Everyone is appreciative when someone helps them. It’s happened to me too recently. Best wishes on the new project.
Hi mkozusnik,
I’ve been running some test and have 2 doubts:
I already set up a voice message right before the agent’s extensions begin to ring like yo told me and that works fine, but when the extensions begin to ring the caller starts to listen a music (I think that’s the default music on hold) and I want eliminate that. I already remove the line musicclass=default in [CallQueue3197] in the queues.conf file but nothing happens, it’s the same
The second thing I need is to play a message for the callers who are waiting in queue while they’re waiting
Can you help me please?
Thanks in advance.
BR.
I’m not sure how to turn off the music on hold, but you could add the option r for ringing, but that might be annoying. I’d try setting it to musicclass=none.
For the announcements, there are several to choose from. See here:
http://www.voip-info.org/wiki/view/Asterisk+config+queues.conf
sorry, where should I add the option r?
I’d try setting musicclass=none in queue.conf file but nothing happens
BR.
same => n(agentexists),Queue(CallQueue3197|r)
Not sure about the MOH.
Hi mkozusnik,
I’d tried with the option r like you suggested me but nothing changed, anyway right now that’s not very important. What I’m really need to do now is set up a recorded message for the callers who are waiting on the queue and a message for the callers who can’t enter in queue because queue reached the maxlen. I don’t know if I explained myself??
Also I need to set up a loop like you suggested me for the extensions to login in queue with a password. I need that if the password is wrong the system plays a message like “please try again” let’s say 3 times and after that hangs up. I show you the code for the password:
[desconocido]
;Testing
exten => 46,1,Answer()
same => n,Read(code-entered,“vm-password”,6,3)
same => n,GotoIf($["${code-entered}"="*****"]?login)
same => n,Hangup()
same => n(login),AddQueueMember(CallQueue3197)
same => n,Hangup()
Am I asking too much??? Please let me know
Thanks in advance.
BR.
For recording, just use the Record dialplan function. A google search will give several bits of code. The best way to learn this stuff is to dive in, read the documentation, and play around.
Hi again,
I have my queue working fine now, but I need to correct some detail on it. Here´s the config:
[Queues]
exten => 3195,1,Answer() ; Not sure if this is necessary. Some apps will also a$
same => n,Set(acount=${QUEUE_MEMBER_COUNT(CallQueue3195)})
same => n,GoToIf($["${acount}" > “0”]?agentexists)
;In here, you could send the call to Voicemail or just hangup
same => n(?agentexists),Playback(operadores_ocupados)
same => n,Voicemail(3195,u)
same => n,Hangup()
the thing is that when the call goes to VM the caller hears a message “the number XXXX is busy right now…bla, bla” and then sounds the beep and is ready to record message from caller. What I want is to eliminate the previous message “the number XXXX is busy right now…bla, bla” so the caller hear the beep immediately after same => n(?agentexists),Playback(operadores_ocupados) message.
How can I do that?? Can anybody helpme please??
Thanks in advance.
I think you should read the Asterisk documentation to understand how it works.
The message is being played by Voicemail application. Check it here Home - Asterisk Documentation and try to figure out how you can disable the message
–Satish Barot
Problem solved!!
Thank you very much.