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. Fop showing all buttons as available

Fop showing all buttons as available

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 171 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.
  • B
    B
    biguel1
    wrote on last edited by
    #1

    Hi,

    I moved from Asterisk 1.8.15.1 to 1.8.23.0. After installation, FOP is showing all extension buttons as available. I guess that in first instance, FOP asks for extension states through AMI and gest this. However, when doing "sip show peers" info is right. Where can I start from to debug this?

    Thank you.

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

      Start by creating a manager user specifically for FOP2 and giving "all" permissions (in manger.conf). To be sure you are not filtering needed manager events to get status information. Also, all your sip peers might have qualify=yes defined.

      In FOP 2.27 (beta) there is now an option in presence.js to start with all extensions in unavailable state, and only enable them when the proper event is received (this is to make it work with sip realtime configuration, where initial state is not advertised by AMI).

      1 Reply Last reply
      0
      • B
        B
        biguel1
        wrote on last edited by
        #3

        The configuration was already as you indicated:
        There was a manager user specifically for FOP2 with following configuration:

        [fop2]
        secret = **********
        deny=0.0.0.0/0.0.0.0
        permit=127.0.0.1/255.255.255.0
        read = all
        write = all
        writetimeout = 1000
        eventfilter=!Event: RTCPSent
        eventfilter=!Event: RTCPReceived
        eventfilter=!Event: VarSet
        eventfilter=!Event: Cdr
        eventfilter=!Event: ExtensionStatus
        eventfilter=!Event: ChannelUpdate
        

        All SIP peers have qualify=yes defined.

        We are in production and it worked alright until installing newer Asterisk version. I don't espect to get the solution to the problem here. However, I woul like to know which can be the causes of having all extension buttons showing as available at start. Is there more than one option? Is my reason logic ok? (At FOP2 start, fop2 manager user "asks" for peers' status and it shows them as it gets it. I think Asterisk might be sending that they are available, although it's strange. Where does Asterisk get this information from?..astdb?

        Regards,
        Borja

        1 Reply Last reply
        0
        • B
          B
          biguel1
          wrote on last edited by
          #4

          How does FOP2 fetch the peer information in first instance? I mean, what is the first action perfomed by FOP2 in order to know peers status?

          When I start fop2 server it displays all peers as available and looking AMI no Action is performed when starting fop2 server. But when I go offline with any of the peers, fop2 displays the correct information for that peer from that moment on. It seems that by default fop2 "think" all are available. I wouldn't be asking this if I didn't use fop2 before. When using it with Asterisk 1.8.15.1 fop2 shows correct information at start.

          What can I do to have the same behaviour as before?

          Regards,

          B.

          1 Reply Last reply
          0
          • B
            B
            biguel1
            wrote on last edited by
            #5

            Could you please answer my questions please?

            I'm running 2.27. Which option is it the one that forces all buttons as unavailable?

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

              How does FOP2 fetch the peer information in first instance? I mean, what is the first action perfomed by FOP2 in order to know peers status?

              If you are curious about what FOP2 does, you should run it in debug mode to see the manager dialog:

              service fop2 stop
              cd /usr/local/fop2
              ./fop2_server -X 3
              

              and watch the show. In particular the SIPPeers command is being sent at startup.

              When I start fop2 server it displays all peers as available and looking AMI no Action is performed when starting fop2 server. But when I go offline with any of the peers, fop2 displays the correct information for that peer from that moment on. It seems that by default fop2 "think" all are available. I wouldn't be asking this if I didn't use fop2 before. When using it with Asterisk 1.8.15.1 fop2 shows correct information at start.
              B.

              I do not think there is any change between the manager output/commands from 1.8.15 to newer versions.

              FOP2 does not think anything, it will react to commands. By default it starts with a registration "ok" status, because many people have extensions with unmonitored state completely, or even some channel drivers do not have the concept of registrations (not everyone uses sip).

              If you use 2.27 beta and want to change the initial status, look at /var/www/html/fop2/js/presence.js, the settings there are self explanatory:

              var startNotRegistered = false;
              
              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