Disable Buttons

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=testi@testi.fi">email=testi@testi.fi</a><!-- e -->
external=001234567@default
group=test

i read english better than write :D

Comments

  • 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?
  • 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
  • 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.
  • clean installation, debian 32 bit works ok, 64 bit not.
  • That feature is not dependant on platform. Compare md5 sum for fop2.js in both installs, they should match.
  • 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?
  • 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.
  • 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.
  • so, if you have "transferexternal" and no external number configured, the button is not disabled (when it should), am I right ?
  • thanks, I verified the bug and fixed it. It will be available in the next fop2 release.

    Best regards,
Sign In or Register to comment.