After upgrading to 1.6 ChanSpy doesn't work

Discussion in 'General' started by jsmax, Dec 25, 2009.

  1. jsmax

    Joined:
    Dec 25, 2009
    Messages:
    4
    Likes Received:
    0
    Hi. Just upgraded to version 1.6-13 from 1.5.2. After that ChanSpy doesn't work: i hear just one channel at a time (the caller or the calee).

    About the system:

    Code:
    >uname -a
    Linux pbx.provider.tld 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
    
    >cat /etc/redhat-release
    CentOS release 5.4 (Final)
    
    >asterisk -V
    Asterisk 1.4.26.3
    FreePBX has version 2.6.0.0

    Sample extension:

    Code:
    [152]
    deny=0.0.0.0/0.0.0.0
    secret=XXXXXX
    dtmfmode=rfc2833
    canreinvite=no
    context=from-internal
    host=dynamic
    type=friend
    nat=yes
    port=5060
    qualify=yes
    callgroup=
    pickupgroup=
    dial=SIP/152
    accountcode=
    mailbox=152@device
    permit=0.0.0.0/0.0.0.0
    callerid=device <152>
    call-limit=50
    The ChanSpy:
    Code:
    [app-chanspy]
    include => app-chanspy-custom
    exten => 555,1,Macro(user-callerid,)
    exten => 555,n,Answer
    exten => 555,n,Wait(1)
    exten => 555,n,ChanSpy()
    exten => 555,n,Hangup
    Calling to 555 gives:
    Code:
      == Spying on channel SIP/152-09891b98
    During active calls i have:

    Code:
    pbx*CLI> core show channels
    Channel              Location             State   Application(Data)             
    SIP/155-b6c081b0  555@from-internal:4  Up      ChanSpy()                     
    SIP/152-09891b98     (None)               Up      AppDial((Outgoing Line))      
    SIP/provider-b6c004b s@macro-dial:7       Up      Dial(SIP/145&SIP/146&SIP
    3 active channels
    2 active call
    Finaly i hear just one channel (SIP/152-09891b98 in this case). In the 1.5.2 version it was all ok.
     
  2. jsmax

    Joined:
    Dec 25, 2009
    Messages:
    4
    Likes Received:
    0

Share This Page