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. Problems with spy

Problems with spy

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 221 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
    fsat
    wrote on last edited by
    #1

    HI.

    Fop shows a strange behavior when i'm trying to spy a channel.
    Sometimes it just ignores me.
    I see a command to spy in fop log (something like <= <msg data="19|tospy|38|5a80f4ab867759349c0892c7768a9032" /> ) but fop server doesn't send spy to asterisk.
    What can be a reason for this?

    If a spy session was successfully established fop server log shows something like this:

    127.0.0.1       -> Action: Originate
    127.0.0.1       -> Channel: Local/1001@from-internal
    127.0.0.1       -> CallerID: 1001
    127.0.0.1       -> Application: ChanSpy
    127.0.0.1       -> Data: SIP/1053,bq
    127.0.0.1       -> ActionID: fop2spy!SIP/1053
    127.0.0.1       -> Async: True
    

    I haven't find any regularity for successful and unsuccessful attempts.

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

      Are you using fop2 version 2.23 or lower? If so, upgrade to 2.24, there is a known bug since 2.22 or so in where spy permissions are "forgotten" after a while.

      Best regards,

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

        I'm using 2.23
        I'll try to update to 2.24 tonight and post results in a couple of days, after testing.

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

          I've upgraded to 2.24 and nothing changed. The issue is still here.

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

            Hi,

            The issue I mention is not there anymore (fop2 forgetting the spy permissions after a manager disconnection/reload). If you still face issues, is another thing. Did you restart fop2 after upgrade? If you want to check again, you need to do a full debug in fop2_server with level 511: /usr/local/fop2/fop2_server -X 511 and look at the events and messages when it works and when it does not.

            Best regards,

            1 Reply Last reply
            0
            • F
              F
              fsat
              wrote on last edited by
              #6

              Here is a debug dump from failing spy session.

              79.135.228.xxx   <= <msg data="19|tospy|31|ade261879d45d5b8e6f3918741fc1515" />^M
              
              -- PROCESS_FLASH_COMMAND origen 19 accion tospy destino 31 password ade261879d45d5b8e6f3918741fc1515
              
              VALIDAR USUARIO 1030@GENERAL
              
              VALIDAR USUARIO 1030 OK con clave regular (79.135.228.xxx)
              
              Validation ok, have all permissions for all buttons (0) 31
              
              It's blessed into class Extension
              It's blessed into class Extension
              
              TO SPY no hay canal activo a espiar!
              

              Can you describe what is happening. I can understand only english.

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

                TO SPY no hay canal activo a espiar!

                Means:

                There is no active channel to spy on! FOP2 can spy on bridged calls, if its not bridged it fails.

                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