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. Extensions on the FOP2

Extensions on the FOP2

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 66 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.
  • C
    C
    cjkeeme
    wrote on last edited by
    #1

    Is it possible to set a login to FOP2 so that only certain extension are displayed to that login. I have an asterisk box with a multi-tenant environment where this could be useful.

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

      You can use contexts as described here:

      http://www.fop2.com/documentation-confi ... OP2Context

      Best regards,

      1 Reply Last reply
      0
      • C
        C
        cjkeeme
        wrote on last edited by
        #3

        I have followed the instructions from the following URL and still can not get contexts to work with fop2. Below is what my fop2.cfg looks like. I then go to http://<myserver>/fop2/?context=opa_1 and attempt to login and without fail it will not login me in (it simply brings me back to the login prompt).

        *NOTE: I'm still using the free version, perhaps this feature needs a license?

        [general]
        ; AMI definitions
        manager_host=127.0.0.1
        manager_port=5038
        manager_user=admin
        manager_secret=amp111
        ;event_mask=call,agent
        
        ; Daemon definitios
        ;listen_port      = 4445
        ;restrict_host    = www.asternic.org
        ;web_dir          = /var/www/html/operator/fop2
        
        ; Global Config
        language           = en
        poll_interval      = 86400
        poll_voicemail     = 1
        
        ;master_key = 5021050
        
        user=210:5045750:all
        buttonfile=buttons.cfg
        
        [opa_1]
        master_key=allsecrets
        user:300:4030040:all
        user:210:5081450:all
        buttonfile=opa_buttons.cfg
        
        1 Reply Last reply
        0
        • N
          N
          nicolas
          wrote on last edited by
          #4

          Hi,

          You do not need to license it to use contexts, but you need to fix fop2.cfg so the lines:

          user:300:4030040:all
          user:210:5081450:all
          

          look like:

          user=300:4030040:all
          user=210:5081450:all
          

          Best regards,

          --
          Nicolás Gudiño

          1 Reply Last reply
          0
          • C
            C
            cjkeeme
            wrote on last edited by
            #5

            That solved the problem. FYI, the help page that explains contexts, shows colons instead of the equal sign.

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

              Thanks for reporting the error in the docs! It is fixed now..

              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