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 status

FOP2 not changing DND status

Scheduled Pinned Locked Moved Support
6 Posts 3 Posters 493 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

    I am working on a new system that I migrated some stuff from old computer, so this is likely because of that process, but I would like to get some help/pointers on how to solve this.

    On a side note, I didn't migrate any FOP2 files, FOP2 is a fresh install, but I did migrate the settings via FreePBX gui.

    On the old working system, If i press *79 or *78 FOP2 shows that I have turned DND on/off. On the new phone systems, It took me a while to figure out FOP2 wasn't working when I hit available, and that I default to DND, I had to hit *79 and then I got calls inbound. (I was very happy at this moment!), but now I need to fix the issue of being able to hit DND/Available in FOP2 and have it correctly change that attribute in the phone systems so phones do or don't ring according to FOP2 status.

    Any pointers to get me started?

    1st thing I did was change FOP2 from running as user [admin] (I had 2 users [admin] with different permissions], FOP2 now runs under fop2 based on the following and has read/write = all permissions. Beyond that, not sure what I need to do, thanks in advance!

    [root@node2 ~]# cat /usr/local/fop2/fop2.cfg
    
    [general]
    ; AMI definitions
    manager_host=localhost
    manager_port=5038
    manager_user=fop2
    manager_secret=amp111
    ;event_mask=agent,call,command,system,user,dialplan
    
    [root@node2 ~]# cat /etc/asterisk/manager.conf
    
    [fop2]
    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 = 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
    
    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      You must create override macros for FreePBX to make DND and other feature codes signal FOP2:

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

      Best regards,

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

        I believe I already did that, but I will do it again, no harm right?

        Regardless, I think I fixed the issue, We use Device and User mode, and when I pulled over the Tarball with our settings, it didn't implement some of the functions. I went to Advanced Settings and changed it to Extensions mode, then back to Device and Users and hit apply, this seems to have resolved the problem, when I hit *79/*78 FOP2 changed its status. I still need to test with real outbound/inbound calling, but I can't ATM (We are open 4 business), but I think its fixed! If it is fixed, I will come back and mark as solved.

        Thanks for your quick reply.

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

          Just wanted to link posts, but really, in another post I read, I found a good tip to check if its "working" which is

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

          Here is my second post Re same thing, figured I'd like them..

          http://forum.fop2.com/4442-fop2-not-changing-dnd-for-real

          Solution:

          Install DND Presence Plugin in FOP2

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

            And to check if its working, for FREEPBX check if the DND entry is set:

            asterisk -rx "database show DND" | grep 847

            1 Reply Last reply
            0
            • S
              S
              sigmarelocation
              wrote on last edited by
              #6

              I am having some difficulty with this, although possibly because we are using FOP2 on a separate server. I did follow these instructions, also running the command
              /usr/local/fop2/generate_override_contexts.pl -w
              I can see the extensions change status to DND within the extension settings report in FreePBX.
              However, users are still able to make calls using the dialer or with click to call, which requires an incoming call, and we do not want that to work when presence is set to anything other than available. How can this be done?

              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