Firstly i try explain what I need to implement for client.
When somebody calls callcenter it get’s into queue, but noone like waiting and listening music, sa i want give it posibility to press for example ‘1’ and call back that number when his turn come. And also put in same way call back request. So my queque can look like:
normal_call, hangup_call, normal_call, callback_call, normal_call -> agent
normal_call - someone waiting on the line
hangup_call - someone who called us and dont want wait on line
callback_call - callback request from portal
As you see every call have a place in queue and it doesn’t matter if you are waiting online or request callback from within queue or portal.
And more but i can’t find good solution. Some kind of solution are callfiles but when a number stands in queue and want callback it loses it’s place and is intend to wait event more.
Some solution can be store queue in a databas with priority, but i don’t know how.
I use Asterisk 220.127.116.11