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. FreePBX Device and User mode problem

FreePBX Device and User mode problem

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 153 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.
  • R
    R
    ralph.burleson
    wrote on last edited by
    #1

    Hello,

    We have been using FOP@ for several months now. We recently moved from Elastix to FreePBX. After the migration we installed a NEW license of FOP2 and everything worked as expected.

    However when we changed to "Device and User" mode, all of our automatically populated users disappeared. Also, the board now displays that all lines are active, when many phones are offline.

    How can we fix this?

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

      The bug is in FREEPBX not in FOP2, It was discussed several times in the forum:

      View Post 1056

      Here is your own fix as you submited via email, for the benefit of other users bitten by that bug:

                   set_queue_hint($user, $device);
                      if(version_compare(get_var("ASTVERSION"), "1.6.1", "ge")) {
                              $user_event_body = "\"UserDeviceAdded|Data: {$user}\\,{$device}\"";
                      } else if(version_compare(get_var("ASTVERSION"), "1.6.0", "ge")) {
                              $user_event_body = "UserDeviceAdded,\"Data: {$user}\\\\,{$device}\"";
                      } else {
                              $user_event_body = "\"UserDeviceAdded|Data: {$user},{$device}\"";
                      }
                      //Added for FOP2 by Ralph Burleson on 24 Oct 2013
                      $user_event_body = "\"UserDeviceAdded,Data: {$user}\\\\,{$device}\"";
          $agi->exec("UserEvent", $user_event_body);
      

      Best regards,

      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