Disable Buttons

  1. 12 years ago

    Old 2.20 version disable button, if example extension not have mobile number or voicemail in buttons.cfg. New 2.25 version not. Whats the problem?

    We have 3 lisences, one fop is version 2.20 and two 2.25. All asterisk servers is same versions and same configs.

    buttons.cfg (example)

    [SIP/1111]
    type=extension
    extension=1111
    context=default
    label=Test
    mailbox=1111@default
    privacy=clid
    queuecontext=Testi
    <!-- e --><a href="mailto:email=[email protected]">email=[email protected]</a><!-- e -->
    external=001234567@default
    group=test

    i read english better than write :D

  2. admin

    12 Mar 2012 Administrator

    Not sure if I understand your issue.. do you want to disable a button? What is your expected behavior and what happens instead? What do you mean by "disabled" button?

  3. for example, if person doesnt have cellphone set in config, it should disable 'transfer external' button when that person is selected, but it doesnt disable it in 2.25

  4. admin

    12 Mar 2012 Administrator

    Yes it does, most probably you have a mixed version of server/client after an upgrade (probably cached js files in your browser). Be sure to refresh your browser cache, or try with a different browser to verify.

  5. clean installation, debian 32 bit works ok, 64 bit not.

  6. admin

    13 Mar 2012 Administrator

    That feature is not dependant on platform. Compare md5 sum for fop2.js in both installs, they should match.

  7. All version works. Problem is user permissions in fop.cfg.

    work:
    user=1234:1234:all

    example not work:
    user=1234:1234:dial,hangup,pickup,transfer,transferexternal

    next problem: how i hide example "spy" button?

  8. admin

    13 Mar 2012 Administrator

    ok.! that sounds like a bug, the button is disabled on some circumstances only? But you wanted to disable the transfer to external button, what permission cause that button to not be disabled when it should? Having "all" ?

    If you do not have "spy" permissions the spy button should not be displayed.

  9. it only works when user has all permissions. I only want to disable(not hide) it when selected user doesnt have cellphone number set in config.

  10. admin

    13 Mar 2012 Administrator

    so, if you have "transferexternal" and no external number configured, the button is not disabled (when it should), am I right ?

  11. yes

  12. admin

    13 Mar 2012 Administrator

    thanks, I verified the bug and fixed it. It will be available in the next fop2 release.

    Best regards,

or Sign Up to reply!