Queue module - Login/Logoff quickfix
I have had nothing but trouble integrating queue member login and logoff with the Queue module "feature codes" *11 and *12 always rejecting my call with "Phone XXX is currently unavailable. Goodbye." And I'm aware that I can call the queue number followed by * or ** to control things that way, but some of my phones don't like that dialplan change. Therefore, I've written a quickfix change that I am hoping will be integrated into the Queue module on the next update as this, to me and my employees, seems to be the fastest and best method.
To login: dial *51+queue number
To logoff: dial *50+queue number
Now you can setup speed dial keys on the phone sets for these shortcuts. Probably could expand with prompting if only enter *50 or *51 without following digits, but I didn't feel like adding all that. Could we now please agree to fix the Queues module with something this simplistic instead of whatever *11 and *12 are now failing to do??
; fix for queue login problem, add this to extensions_custom.conf
exten => *50,1,Playback(that-is-not-rec-phn-num)
exten => *50,n,Playback(please-try-again)
exten => *50,n,SayDigits(${EXTEN})
exten => *50,n,Hangup
exten => _*50.,1,Wait(1)
exten => _*50.,2,RemoveQueueMember(${EXTEN:3})
exten => _*50.,n,SayDigits(${CALLERID(number)})
exten => _*50.,n,Playback(agent-loggedoff)
exten => _*50.,n,SayDigits(${EXTEN:3})
exten => _*50.,n,Hangup
exten => _*50.,103,Playback(num-not-in-db)
exten => _*50.,n,SayDigits(${EXTEN:3})
exten => _*50.,n,Playback(please-try-again)
exten => _*50.,n,Hangup
exten => *51,1,Playback(that-is-not-rec-phn-num)
exten => *51,n,Playback(please-try-again)
exten => *51,n,SayDigits(${EXTEN})
exten => *51,n,Hangup
exten => _*51.,1,Wait(1)
exten => _*51.,2,AddQueueMember(${EXTEN:3})
exten => _*51.,n,SayDigits(${CALLERID(number)})
exten => _*51.,n,Playback(agent-loginok)
exten => _*51.,n,SayDigits(${EXTEN:3})
exten => _*51.,n,Hangup
exten => _*51.,103,Playback(warning)
exten => _*51.,n,SayDigits(${CALLERID(number)})
exten => _*51.,n,Playback(is-currently)
exten => _*51.,n,Playback(in-the-queue)
exten => _*51.,n,SayDigits(${EXTEN:3})
exten => _*51.,n,Playback(please-try-again)
exten => _*51.,n,Hangup
You'll need to enable user logins on FreePBX to use the *11 and *12 feature codes. Find this line on /etc/amportal.conf:
AMPEXTENSIONS=extensions
And change it to this:
AMPEXTENSIONS=deviceanduser
Restart Asterisk, and you should be able to see the Devices and Users links in lieu of Extensions. Create your users, and then your devices. Set Device Type = Adhoc to all the devices which needs a user login.
Hi!
I am using this script for all my users (60) in my company. It is working great, but sometimes errors happen.
This interface: 'Local/*513030@from-internal' sometimes becomes a member of the queue 3030. *513030 is coded as speeddial on all the phones. Maybe the error occures when several people login at the same time?
Please advise.
Thanks

Member Since:
2007-01-12