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. Plugins
  3. Agent is not removed from Queue upon logout

Agent is not removed from Queue upon logout

Scheduled Pinned Locked Moved Plugins
11 Posts 4 Posters 440 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.
  • A
    A
    avayax
    wrote on last edited by
    #1

    Using the Queue Plugin.
    Agents get logged in to the queues that I select when I log in, but they do not get removed upon logout from FOP2.

    On queue show in Asterisk CLI, I still see the extensions in the queue.

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

      How do you logout from FOP2?

      1 Reply Last reply
      0
      • A
        A
        avayax
        wrote on last edited by
        #3

        I press this "Logout" button:
        [attachment:56775306c2f11]

        1 Reply Last reply
        0
        • A
          A
          avayax
          wrote on last edited by
          #4

          My user logs in automatically into the queue upon fop2 login, but does not log out. I have set Queue Plugin to"Automatically Login To All Queues: YES"

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

            Do you use the chrome extension also?

            1 Reply Last reply
            0
            • A
              A
              avayax
              wrote on last edited by
              #6

              Yes I am. Guess that's the problem.
              Any way to make both work?

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

                Yes, that is the problem. There is no way to make both work. What happens is this: the plugin checks for logout events, but if it sees the user still being logged/connected, it won't execute the logout actions. The plugin will log you in and keep you connected, no matter if you logout from the main fop2 display. And so the logout actions won't kick in.

                The problem here is that I had to make the logout actions only work when no sessions were active because different browser versions could have erratic management of websocket sessions, where you could have two sessions open at the same time (but only one actual session working), and one of them is then killed by the browser after some time. If the server detects that ang logs you off, while you still have a valid connected session, the result is unexpected and wrong.

                When using the Chrome extension, you do have two valid connections using the same extension, and hence you are never logged out (unless you close/deactivate the chrome extension).

                There is no easy way to make them work together. A plugin upgrade is not enough. But I will see if I can work on something for a next release, trying to identify chrome extension clients from regular browser clients and work from there.

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

                  Yes, that is the problem. There is no way to make both work. What happens is this: the plugin checks for logout events, but if it sees the user still being logged/connected, it won't execute the logout actions. The plugin will log you in and keep you connected, no matter if you logout from the main fop2 display. And so the logout actions won't kick in.

                  The problem here is that I had to make the logout actions only work when no sessions were active because different browser versions could have erratic management of websocket sessions, where you could have two sessions open at the same time (but only one actual session working), and one of them is then killed by the browser after some time. If the server detects that ang logs you off, while you still have a valid connected session, the result is unexpected and wrong.

                  When using the Chrome extension, you do have two valid connections using the same extension, and hence you are never logged out (unless you close/deactivate the chrome extension).

                  There is no easy way to make them work together. A plugin upgrade is not enough. But I will see if I can work on something for a next release, trying to identify chrome extension clients from regular browser clients and work from there.

                  1 Reply Last reply
                  0
                  • T
                    T
                    tomwer
                    wrote on last edited by
                    #9

                    @admin Did you find a way for logout to work with the chrome extension running?

                    1 Reply Last reply
                    0
                    • M
                      M
                      m0nkey
                      wrote on last edited by
                      #10

                      Hello, i am just opening up this discussion to possibly see if you were able to get the agent logout to work the chrome extension being enabled.

                      I suppose the solution would be to allow agents to just status themselves as DND but there are some old dogs here...

                      please let us know if there was ever a fix for this.
                      thanks!!

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

                        Unfortunately the queue login plugin won't work if you use the chrome extension (as the chrome extension will keep the agent logged all the time, there would not be a logout event if you use it). I did not find a way around that yet.

                        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