Extensions on the FOP2

  1. 15 years ago

    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.

  2. admin

    27 Aug 2009 Administrator

    You can use contexts as described here:

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

    Best regards,

  3. 14 years ago

    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
  4. admin

    14 Oct 2009 Administrator

    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

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

  6. admin

    14 Oct 2009 Administrator

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

    Best regards,

or Sign Up to reply!