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. DND Status not Transfering

DND Status not Transfering

Scheduled Pinned Locked Moved Support
9 Posts 2 Posters 77 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.
  • J
    J
    joc1985
    wrote on last edited by
    #1

    Hello,
    I have the full version of fop2 installed and working however I wanted to display the DND status on my fop so I installed fop2beta. The installation went well and everything works except I am still not getting DND status to transfer. I have added the extensions_override to the ./etc/asterisk however alhough I can see the phone dialing *78 once that is done nothing gets updated. Below are my configs, any help is appreciated
    /etc/asterisk/extensons_override_freepbx.conf

    [macro-faxreceive]
    exten => s,1,Set(FAXFILE=${ASTSPOOLDIR}/fax/${UNIQUEID}.tif)
    exten => s,2,Set(EMAILADDR=${FAX_RX_EMAIL})
    exten => s,3,ReceiveFAX(${FAXFILE})
    exten => s,103,Set(EMAILADDR=${FAX_RX_EMAIL})
    exten => s,104,Goto(3)

    [ext-fax]
    exten => s,1,Answer
    exten => s,2,Goto(in_fax,1)
    exten => in_fax,1,StopPlayTones
    exten => in_fax,2,GotoIf($["${FAX_RX}" = "system"]?3:analog_fax,1)
    exten => in_fax,3,Macro(faxreceive)
    exten => in_fax,4,Hangup
    exten => analog_fax,1,GotoIf($["${FAX_RX}" = "disabled"]?4:2) ;if fax is disabled, just hang up
    exten => analog_fax,2,Set(DIAL=${DB(DEVICE/${FAX_RX}/dial)});
    exten => analog_fax,3,Dial(${DIAL},20,d)
    exten => analog_fax,4,Hangup
    ;exten => out_fax,1,wait(7)
    exten => out_fax,1,SendFAX(${TXFAX_NAME},caller)
    exten => out_fax,2,Hangup
    exten => h,1,system(/var/lib/asterisk/bin/fax-process-edit.pl --to ${EMAILADDR} --from ${FAX_RX_FROM} --dest "${FROM_DID}" --subject "Fax from ${URIENCODE(${CALLERID(number)})} ${URIENCODE(${CALLERID(name)}$
    exten => h,2,Hangup()

    [app-dnd-off]
    include => app-dnd-off-custom
    exten => *79,1,Answer
    exten => *79,n,Wait(1)
    exten => *79,n,Macro(user-callerid,)
    exten => *79,n,dbDel(DND/${AMPUSER})
    exten => *79,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *79,n,dbDel(fop2state/${CHAN})
    exten => *79,n,UserEvent(FOP2ASTDB|Family: fop2state|Channel: ${CHAN}|Value: )
    exten => *79,n,Playback(do-not-disturb&de-activated)
    exten => *79,n,Macro(hangupcall,)

    [app-dnd-on]
    include => app-dnd-on-custom
    exten => *78,1,Answer
    exten => *78,n,Wait(1)
    exten => *78,n,Macro(user-callerid,)
    exten => *78,n,Set(DB(DND/${AMPUSER})=YES)
    exten => *78,n,Set(CHAN=${CUT(CHANNEL,-,1)})
    exten => *78,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
    exten => *78,n,UserEvent(FOP2ASTDB|Family: fop2state|Channel: ${CHAN}|Value: Do not
    Disturb)
    exten => *78,n,Playback(do-not-disturb&activated)
    exten => *78,n,Macro(hangupcall,)
    [fop2-park]
    exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)},${CUT(E
    XTEN,:,2)})
    exten => _X.,n,ParkAndAnnounce(|||${RETURN_CONTEXT},${RETURN_EXTENSION},1)
    exten => _X.,n,Goto(${RETURN_CONTEXT},${RETURN_EXTENSION},1)
    exten => _X.,n,Hangup

    [fop2-dummy]
    exten => dummy,1,Answer
    exten => dummy,2,Wait(1)
    exten => dummy,3,Hangup

    I am using the sample FOP2Callbacks.pm

    Anything else I need to do?

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

      Do you have the "user" permissions in the manager user ? What distribution are you using?

      1 Reply Last reply
      0
      • J
        J
        joc1985
        wrote on last edited by
        #3

        I am running Debian
        With asterisk 1.6 with FreePBX
        I am not sure what you mean by the user's permission. But I gave the manager account full rights, and the buttons are auto-generated along with the users from the FreePBX script.

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

          I was referring to he "user" permission in /etc/asterisk/manager.conf user that you use in the fop2.cfg file. For changing DND status fop2 utilizes manager UserEvents. In order to generate and read them, you need the "user" permission in the manager user. In trixbox I believe there is a bug, and you also need the "all" permission.. so the manager entry should look like:

          read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan,all
          write = system,call,agent,user,config,command,reporting,originate,all

          The "all" is needed in some trixbox versions as it does not honor the "user" permission (I believe is something with some hud patches).

          1 Reply Last reply
          0
          • J
            J
            joc1985
            wrote on last edited by
            #5

            This is what my manger.conf looks like

            [administrator]
            secret = *************************
            deny=0.0.0.0/0.0.0.0
            permit=127.0.0.1/255.255.255.0
            ;read = system,call,log,verbose,command,agent,user
            ;write = system,call,log,verbose,command,agent,user
            read =all
            write=all

            That's the same account I use in fop2.cfg

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

              You might want to try with the latest beta that includes a sample extensions_override_freepbx.conf that implements the proper dialplan changes and also some hooks so you can set the DND status when using fop2 as a console.

              Best regards,

              1 Reply Last reply
              0
              • J
                J
                joc1985
                wrote on last edited by
                #7

                I am using the latest beta with the extension override.

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

                  In that case start fop2_server capturing manager events to see if the UserEvents are being propagated.

                  ./fop2_server -X 15

                  Capture all the log and look for userevents when changing presence state in fop2 or setting DND. Be sure to have the file FOP2Callbacks.pm installed too in the same dir as fop2_server . If it has the .sample prefix, rename it.

                  Best regards,

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

                    The solution was to modify the dialplan in extensions_override_freepbx.conf to use commas instead of pipes as delimiters becuase the pipe is deprecated in Asterisk 1.6. There was also a typo in one of the lines that was causing problems.

                    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