Transfer to Queue Failes with Hangup
Having an issue with transfering to queues from FOP2.
Asterisk 11 on FreePBX Distro 5.211.65-15 with FOP2 2.28
Getting this in Asterisk log.
This is FOP2 AMI command being executed.
I followed the trail and the "from-queue" context is for the queue to originate a call to an extension, not for putting a call into the queue. I updated the database table fop2buttons and set context for the queue buttons to "ext-queues" and the transfer works as expected.
Just wanted to put this out there so it could possibly be fixed or so that others could fix this if they have the same problem.
Asterisk 11 on FreePBX Distro 5.211.65-15 with FOP2 2.28
Getting this in Asterisk log.
[2014-08-21 14:01:15] WARNING[22364][C-00000116]: pbx.c:6646 __ast_pbx_run: Channel 'Local/6001@from-queue-00000011;2' sent to invalid extension but no invalid handler: context,exten,priority=from-queue-exten-only,6001,1
This is FOP2 AMI command being executed.
127.0.0.1 -> Action: Redirect
127.0.0.1 -> Channel: SIP/5004-000000c2
127.0.0.1 -> Exten: 6001
127.0.0.1 -> Context: from-queue
127.0.0.1 -> Priority: 1
127.0.0.1 -> Async: True
127.0.0.1 <- Response: Success
127.0.0.1 <- Message: Redirect successful
I followed the trail and the "from-queue" context is for the queue to originate a call to an extension, not for putting a call into the queue. I updated the database table fop2buttons and set context for the queue buttons to "ext-queues" and the transfer works as expected.
Just wanted to put this out there so it could possibly be fixed or so that others could fix this if they have the same problem.
Comments
Look at the /var/www/html/fop2/admin/functions-freepbx.php file aournd line 360:
Replace all of that with just:
That should fix the problem for newly created buttons. For your existing ones, you will have to update the fop2buttons table and update the context field, something like this: