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. user login and logout not reflected in fop2

user login and logout not reflected in fop2

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 89 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.
  • S
    S
    Slator
    wrote on last edited by
    #1

    Setup is trixbox 2.8.0.4 in device and user mode.

    fop2 displays the correct status for the users when started, but does not then reflect changes when users login or logout.

    Any ideas? I think I have just missed something somewhere, but I can't seem to find it.

    TIA,

    Slator

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

      Hello,

      You must have the "all" permission in /etc/asterisk/manager.conf read and write lines for the fop user. Last time I tried, ,in trixbox, the user events (permission "user") are not honored unless you enable the "all" permissions. This does not happen in other distros or plain asterisk. For some feature you need to enable userevents, including user and device mode.

      Best regards,

      1 Reply Last reply
      0
      • S
        S
        Slator
        wrote on last edited by
        #3

        I have set that, but it is still not picking up the user events.

        If I restart fop2 server it displays the status correctly, but I need it to report the user events as they happen.

        Regards,

        Slator

        1 Reply Last reply
        0
        • S
          S
          Slator
          wrote on last edited by
          #4

          If this helps, the asterisk console shows the events below when I login

          AGI Script Executing Application: (UserEvent) Options: (UserDeviceAdded|Data: 1601,7014)
          > user_login_out.agi,logout,7014: insert_user: Setting FollowMe DEVSTATES for device 7014
          > user_login_out.agi,logout,7014: get_followme_state: user 1601 got state returning INVALID
          > user_login_out.agi,logout,7014: insert_user: Setting DND DEVSTATES for device 7014
          > user_login_out.agi,logout,7014: get_dnd_state: user 1601 got state returning NOT_INUSE
          > user_login_out.agi,logout,7014: get_voicemail_context: user: 1601

          1 Reply Last reply
          0
          • S
            S
            Slator
            wrote on last edited by
            #5

            likewise fop2_server in debug mode shows this

            127.0.0.1 <- Event: UserEvent
            127.0.0.1 <- Privilege: hud,all
            127.0.0.1 <- UserEvent: DBPut
            127.0.0.1 <- Family: DEVICE
            127.0.0.1 <- Key: 7014/user
            127.0.0.1 <- Value: 010
            127.0.0.1 <- Server: 0

            127.0.0.1 <- Event: AGIExec
            127.0.0.1 <- Privilege: call,all
            127.0.0.1 <- SubEvent: End
            127.0.0.1 <- Channel: SIP/7014-00000090
            127.0.0.1 <- CommandId: 1649682460
            127.0.0.1 <- Command: DATABASE PUT "DEVICE" "7014/user" "1010"
            127.0.0.1 <- ResultCode: 200
            127.0.0.1 <- Result: Success
            127.0.0.1 <- Server: 0

            1 Reply Last reply
            0
            • S
              S
              Slator
              wrote on last edited by
              #6

              UPDATE:

              It now detects logins correctly, but not logouts. I think this is a Trixbox issue, as the presence monitoring lights on my phone display the same behaviour.

              Slator

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

                That's strange. I do not have a trixbox box to test myself yet... in regular FreePBX installs it works fine, but maybe in Trixbox there is some difference that makes it work like you describe.

                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