Is there a way to Listen-in on calls ?

Discussion in 'General' started by azmerlin, Oct 28, 2008.

  1. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    Is it possible for one extension to listen to a conversation on another extension ( by dialing **XX<ext#> ) or some other type of option and then if he sees fit to grab the call ?
     
  2. danardf

    Joined:
    Dec 3, 2007
    Messages:
    8,069
    Likes Received:
    12
    The ChanSpy is already use by asterisk.
    555 = chanspy.

    See the "Feature Code Admin" into your freepbx GUI.
     
  3. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    Thanks, but I have tried, I called ext 515 from my mobile and the from another extension I dialed 555515 and it just told me the person was not available ??
    Also, after that does work, if while I am spying I want to take over the call, can I ?
    Thanks
     
  4. pawels

    Joined:
    May 19, 2008
    Messages:
    51
    Likes Received:
    0
  5. Telco

    Joined:
    Oct 4, 2007
    Messages:
    275
    Likes Received:
    0
    Here are my settings for Silent Monitor. Notice the authenticate code. That is so that you have to have a password for listening in on the calls otherwise anyone on the pbx can listen to anyone else.

    in the extensions_custom.conf

    [app-chanspy-custom]
    exten => 5555,1,Answer
    exten => 5555,2,Wait(1)
    exten => 5555,3,Goto(custom-app-enh-chanspy,s,1)
    exten => 5555,4,Hangup

    [custom-app-enh-chanspy]
    exten => s,1,BackGround(please-enter-the)
    exten => s,n,Read(SPYNUM|extension)
    exten => s,n,ChanSpy(SIP/${SPYNUM}|wv4)

    in extensions_override_freepbx.conf:

    [app-chanspy]
    include => app-chanspy-custom
    exten => 555,1,Authenticate(1234)
    exten => 555,2,Read(SPYNUM,extension)
    exten => 555,3,ChanSpy(SIP/${SPYNUM},wq)

    Enjoy!

    -T
     
  6. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    Hi again,
    So far so good, seems to be working, now the customer wants to either only enable this feature on some extensions ( so only specified extensions can be listened to) or that several can be specified that this feature will not be able to listen to them.
    Alternatively if that is not possible, then have some sort of notification for the extension listened to knows he is being listened to even if the listener is on mute.
     
  7. vperez69

    Joined:
    Sep 2, 2010
    Messages:
    71
    Likes Received:
    0
    Beautiful!!!! Works fantastic!
     
  8. vaibhavs

    Joined:
    Oct 2, 2009
    Messages:
    95
    Likes Received:
    0
    Hi,

    Code:
    in the extensions_custom.conf
    
    [app-chanspy-custom]
    exten => 5555,1,Answer
    exten => 5555,2,Wait(1)
    exten => 5555,3,Goto(custom-app-enh-chanspy,s,1)
    exten => 5555,4,Hangup
    
    [custom-app-enh-chanspy]
    exten => s,1,BackGround(please-enter-the)
    exten => s,n,Read(SPYNUM|extension)
    exten => s,n,ChanSpy(SIP/${SPYNUM}|wv4)
    
    in extensions_override_freepbx.conf:
    
    [app-chanspy]
    include => app-chanspy-custom
    exten => 555,1,Authenticate(1234)
    exten => 555,2,Read(SPYNUM,extension)
    exten => 555,3,ChanSpy(SIP/${SPYNUM},wq)
    
    This works great, but if I speak, both parties (Caller & helpdesk) are able to hear it.
    I assume this is not an expected behavior, I mean I am spying on live calls, right?
    So my voice should not travel to anyone, and both parties should not know that I am listening to their conversation. -- this is for

    How can this be corrected ?

    Thx & regards,
    Vai
     
  9. vaibhavs

    Joined:
    Oct 2, 2009
    Messages:
    95
    Likes Received:
    0


    I managed to solve this by reading and tweaking the ChanSpy parameters:
    The new working configuration is as below

    Code:
    [app-chanspy-custom]
    exten => 5555,1,Answer
    exten => 5555,2,Wait(1)
    exten => 5555,3,Goto(custom-app-enh-chanspy,s,1)
    exten => 5555,4,Hangup
    
    [custom-app-enh-chanspy]
    exten => s,1,BackGround(please-enter-the)
    exten => s,n,Read(SPYNUM|extension)
    exten => s,n,ChanSpy(SIP/${SPYNUM}|v4)
    
    [app-chanspy]
    include => app-chanspy-custom
    exten => 555,1,Authenticate(1234)
    exten => 555,2,Read(SPYNUM,extension)
    exten => 555,3,ChanSpy(SIP/${SPYNUM},q)
    
    
    I hope it will help someone.

    Thx
    Vai
     
  10. loboitm

    Joined:
    Oct 3, 2011
    Messages:
    46
    Likes Received:
    0
    hello i have a question. can i use this configuration for a zap extensions?
     

Share This Page