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 permissions

User permissions

Scheduled Pinned Locked Moved Support
7 Posts 4 Posters 329 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
    synergy
    wrote on last edited by
    #1

    After editing the config file and setting the permissions and restarting the fop2 service I still see the listen and whisper buttons. Please advise.

    /usr/local/fop2/fop2.cfg
    user=EXT:PASS:dial,hangup,meetme,pickup,record,transfer

    1 Reply Last reply
    0
    • K
      K
      kongar
      wrote on last edited by
      #2

      Can you USE this buttons?

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

        You might want to comment the #exec line, but that would also prevent the buttons for being generated. It is better to run by hand the autconfig-users-freepbx.sh script, copy the output to fop2.cfg verbatim commenting the #exec line adding a semi colon and then tweaking the permissions for the user.

        Best regards

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

          Aww I see what you mean. Here is what I did to make it work.

          1. Commented out line from autoconfig-users-freepbx.sh
            #for A in cat /etc/asterisk/voicemail.conf | grep "=>" | cut -d, -f1 | sed 's/ => /:/g'; do echo user=$A:all; done

          That will allow USERS defined in /usr/local/fop2/fop2.cfg not to get overridden by the execution of the shell script.

          Muchos Gracias Nicolas!

          Basil

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

            I am not familiar with shell script's commands but can someone help me rewrite this:

            for A in cat /etc/asterisk/voicemail.conf | grep "=>" | cut -d, -f1 | sed 's/ => /:/g'; do echo user=$A:all; [/color:2dq5m1pf]

            so it will check for an extension or a group of extensions so that different permissions can be set?

            something like this:

            for A in cat /etc/asterisk/voicemail.conf | grep "=>" | cut -d, -f1 | sed 's/ => /:/g'; do [/color:2dq5m1pf]if ($A=extn1) echo user=$A:all else echo user=$A:dial,hangup,pickup,record,transfer fi[/color:2dq5m1pf];[/color:2dq5m1pf]

            user=extn1:pass:all
            user=extn2:pass:dial,hangup,pickup,record,transfer
            user=extn3:pass:dial,hangup,pickup,record,transfer

            The reason for why this is need is the voicemail passwords will change and the FOP2 user password will not be in sync. Unless there is something else that can automate this that I am missing

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

              Hi,

              There is a script that replaces autoconfig-users-freepbx.sh and lets you specify fop2 permissions using the voicemail options in Freepbx's extension config screen. You can download it from here:

              http://www.fop2.com/downloads/autoconfi ... erm.pl.txt

              Rename it to autoconfig-users-freepbx-voicemailperm.pl and set execute permissions to the script. Then you can call it from fop2.cfg using the #exec method.

              You will have to add in every extension the voicemail option: fop2=dial!transfer!hangup or whatever permission you like.

              Then only the extensions that have the fop2 option set in voicemail will be able to login to fop2 and they will have the permissions you define in the gui.

              This method will soon be replaced by a native freepbx module.

              Best regards,

              1 Reply Last reply
              0
              • G
                G
                ghenry
                wrote on last edited by
                #7

                Hi,

                There is a script that replaces autoconfig-users-freepbx.sh and lets you specify fop2 permissions using the voicemail options in Freepbx's extension config screen. You can download it from here:

                http://www.fop2.com/downloads/autoconfi ... erm.pl.txt

                Rename it to autoconfig-users-freepbx-voicemailperm.pl and set execute permissions to the script. Then you can call it from fop2.cfg using the #exec method.

                You will have to add in every extension the voicemail option: fop2=dial!transfer!hangup or whatever permission you like.

                Then only the extensions that have the fop2 option set in voicemail will be able to login to fop2 and they will have the permissions you define in the gui.

                This method will soon be replaced by a native freepbx module.

                Best regards,

                When will the native module be ready?

                Thanks.

                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