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. FOP2 Not Changing DND for "real"

FOP2 Not Changing DND for "real"

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 556 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.
  • F
    F
    FreeSoftwareServers
    wrote on last edited by
    #1

    Good Afternoon,

    I posted this question a while back, but since then, I have started fresh and am facing the same issue.

    http://forum.fop2.com/4272-fop2-not-changing-dnd-status since its been so long, and its a new setup, I'm posting again.

    When I change DND via *79/*78 and call from another phone it respects the status change.

    In FOP2 when I press *79/*78, the icon changes immedatley to DND/Available.

    On the CLI when I change to DND in FOP2, I can see it set it in the FOP2DB.

    root@node1:~ $ asterisk -rx "database show fop2state" | grep 847
    /fop2state/USER/847                               : Do not Disturb
    

    And then it goes away after I set to available, and also shows Out To Lunch correctly. BUT, when I set myself to DND in FOP2, my phone still rings, and basically, nothing I do with the FOP2 Drop down menu works. But it all shows correctly in FOP2.

    Here are some configs from the test setup.

    root@node1:~ $ cat /usr/local/fop2/fop2.cfg
    
    [general]
    ; AMI definitions
    ;PULLED FROM PREV SERVER
    manager_host=localhost
    manager_port=5038
    ;manager_user=fop2
    manager_user=fop2
    manager_secret=fop222
    ;manager_secret=fop222
    ;event_mask=agent,call,command,system,user,dialplan
    ;[general]
    ; AMI definitions
    ;AUTO GENERATED
    ;manager_host=localhost
    ;manager_port=5038
    ;manager_user=admin
    ;manager_secret=amp111
    ;event_mask=agent,call,command,system,user,dialplan
    
    root@node1:~ $ cat /etc/asterisk/manager.conf
    
    [admin]
    secret = amp111
    ;deny=0.0.0.0/0.0.0.0
    ;deny=192.168.1.1/32
    ;permit=127.0.0.1/255.255.255.0
    permit=0.0.0.0/0.0.0.0
    read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
    write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
    
    [fop2]
    secret = fop222
    ;deny = 0.0.0.0/0.0.0.0
    ;deny=192.168.1.1/32
    ;permit = 127.0.0.1/255.255.255.0
    permit=0.0.0.0/0.0.0.0
    read = all
    write = all
    writetimeout = 1000
    eventfilter=!Event: RTCP*
    eventfilter=!Event: VarSet
    eventfilter=!Event: Cdr
    eventfilter=!Event: DTMF
    eventfilter=!Event: AGIExec
    eventfilter=!Event: ExtensionStatus
    eventfilter=!Event: ChannelUpdate
    eventfilter=!Event: ChallengeSent
    eventfilter=!Event: SuccessfulAuth
    

    I have tried all variations of the above I can think off and also tried running the below code multiple times + rebooting the server.

    /usr/local/fop2/generate_override_contexts.pl -w
    

    Can you point me how to Debug this further? What combination of the above configs should I use? And if I pick one, do I need to update the DB Permissions/PWD accordingly?

    Appreciate your help, love the program!

    1 Reply Last reply
    0
    • F
      F
      FreeSoftwareServers
      wrote on last edited by
      #2

      This is blocking our company upgrade to new phone servers 😞

      1 Reply Last reply
      0
      • F
        F
        FreeSoftwareServers
        wrote on last edited by
        #3

        Well I feel dumb, just a piece of advice I should have taken myself, never forget to troubleshoot the basic! I needed to install FOP2 DND Presence Plugin :), now all works as expected.

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

          FOP2 does nothing for DND in Asterisk or the dialplan by default. You must install the proper plugin, and I have just see you found it yourself while I was writing the reply.

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

            As a side not, you cannot have both the presence dnd and the presence pause (to use presence to pause a queue member) at the same time. Well, you can do it, but then you might end up with incorrect visual status display as one element cannot reflect more than one state (pause +- dnd).

            So be sure NOT to install the presence pause plugin.

            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