User Login Passwords not 'Syncing'

  1. 13 years ago

    Hello,

    When a user changes their voicemail password through the ARI or voicemail prompts this change is not reflected in FOP2 until Asterisk is reloaded. Is there something I'm missing? My config is:

    PBX in a Flash Version = 1.7.5.6
    FreePBX Version = 2.9.0.7
    Running Asterisk Version = 1.6.2.18

    A.J.

  2. admin

    6 Aug 2011 Administrator

    Hi,

    Unfortunately, there is no way in fop2 to know if the password have changed, except for an asterisk reload. You are not missing anything. I can investigate the AMI output when you change the password from the phone, perhaps there is a way to track the password change in that case (not ari).. but I think voicemailadmin does not broadcast anything in AMI.

  3. Also. Just noticed when I set my presence to "at lunch" or any other status FOP2 doesn't reflect the change till you log off and in again. Something must be a miss here.

  4. admin

    7 Aug 2011 Administrator

    Your manager permissions are not dispatching user events. Add "all" both to read/write in /etc/asterisk/manager.conf

  5. pbx*CLI> manager show user admin

    username: admin
    secret: <Set>
    acl: yes
    read perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,all
    write perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,all
    displayconnects: yes

    Still not responding as expected.

    A.J.

  6. admin

    9 Aug 2011 Administrator

    All I can say is that it works fine. You should start fop2_server in debug mode and try to capture the output and look for clues there.

    service fop2 stop
    cd /usr/local/fop2
    script capture.log
    ./fop2_server -X 511

    then change status a couple of time and look for UserEvents or activity when you do the change.

  7. OK got it working. Changed the default port on the original FOP panel seemed to do the trick. Even though I have the original FOP set to not startup in amportal.conf this still was affecting things somehow?

    For now I'll just reload asterisk every so often to refresh the login password. If this could be added as a feature in the next update it'd be much appreciated.

    A.J.

  8. admin

    10 Aug 2011 Administrator

    Hi,

    good you have it working. Regarding the update of passwords, changes from any external tool cannot be tracked, the feature should be added to that tool (it must send some kind of event to AMI). Changing the password from voicemail might be possible, but I *think& that comedian mail does not broadcast *any* event at all in AMI.. in that case, the feature should be added to asterisk, not fop2.

    In any case, my recommendation is to use a big long password for fop2 and not resuse the easy to guess voicemail pin number.

  9. If you must use asterisk voicemail passwords, this works really well:

    In /etc/asterisk/voicemail.conf set:

    externpassnotify = /usr/local/fop2/tickle_fop2.sh

    And then have a script like this:

    # cat > /usr/local/fop2/tickle_fop2.sh 
    #!/bin/bash
    sudo /usr/bin/killall -HUP fop2_server
    exit 0;
    <CTRL><d>
    
    # chown asterisk.asterisk /usr/local/fop2/tickle_fop2.sh
    # chmod u+x /usr/local/fop2/tickle_fop2.sh
    

    Don't forget to add user asterisk to /etc/sudoers (using visudo):

    asterisk ALL=(ALL) NOPASSWD: /usr/bin/killall -HUP fop2_server

    Cheers,

    JPS

  10. 12 years ago

    I also noticed that if I change a display name in freepbx that this change isn't reflected in FOP2 after a reload. What should be triggering this?

  11. admin

    20 Jan 2012 Administrator

    The fop2 buttons configuration page will not update a label automatically, you have to control button labels from that page when using fop2admin. There is a button to update all labels in the fop2 buttons page, or you can modify them individually.

    Best regards,

  12. OK back to this topic. In regard to "use a big long password for FOP2" what is the easiest way to implement this? If I use the FreePBX FOP2 Admin module can I set one long password for all the users easily? Is there an easy way to let users manage their own pass from the panel settings menu? Even better yet can I sync this pass with Active Directory?

  13. admin

    25 Sep 2012 Administrator

    Hi,

    You can modify the autoconfig-users-freepbx.sh script and use whatever tool you like to create user configurations, including ldap queries. But you will have to install the proper tools and write/modify the script to suit your needs.

    Best regards,

or Sign Up to reply!