Problems with spy

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.

Comments

  • 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,
  • I'm using 2.23
    I'll try to update to 2.24 tonight and post results in a couple of days, after testing.
  • I've upgraded to 2.24 and nothing changed. The issue is still here.
  • 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,
  • 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.
  • 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.
Sign In or Register to comment.