Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Transfer to Queue Failes with Hangup

Transfer to Queue Failes with Hangup

Scheduled Pinned Locked Moved Support
3 Posts 3 Posters 143 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    J
    joe1981alAPR
    wrote on last edited by
    #1

    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.

    [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.

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      You are right, the context should be from-internal. It is a bug in the fop2manger.

      Look at the /var/www/html/fop2/admin/functions-freepbx.php file aournd line 360:

          $fpbx_version = preg_replace('/[^0-9]/','',freepbx_get_version());
          if($fpbx_version <= 260) {
              $context="from-internal";
          } else {
              $context="from-queue";
          }
      

      Replace all of that with just:

      $context='from-internal';
      

      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:

      mysql -u root -p asterisk -e "UPDATE fop2buttons SET context='from-internal' WHERE type='queue'
      
      1 Reply Last reply
      0
      • C
        C
        CoreyFlies
        wrote on last edited by
        #3

        I had this problem, but when I looked in functions-freepbx.php, I saw that the code block above was already commented out, and the $context="from-internal"; line was already added above it. Maybe I downloaded 2.28 after you found and fixed that bug, but I still had the issue. What I was missing was the database update. Thanks for the info.

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups