[asterisk-bugs] [Asterisk 0018959]: Can't spy direct channel while spying in a group

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 31 12:26:51 CDT 2011


The following issue has been CLOSED 
====================================================================== 
https://issues.asterisk.org/view.php?id=18959 
====================================================================== 
Reported By:                jamicque
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18959
Category:                   Applications/app_chanspy
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.2.18-rc1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-03-11 09:37 CST
Last Modified:              2011-03-31 12:26 CDT
====================================================================== 
Summary:                    Can't spy direct channel while spying in a group
Description: 
When I want to run chanspy defining direct channel I want to spy, and a
group to cycle through I hear nothing.
here is a sample dialplan:
exten => 556,1,Set(SPYGROUP=TEST)
exten => 556,n,ChanSpy(test002,g(TEST)d)

if I run it: like that:
exten => 556,n,ChanSpy(,g(TEST)d)
or that:
exten => 556,n,ChanSpy(test002,d)
it works ok. But defining the channel and the extension is no possible.
On the other hand using ExtenSpy works ok:
exten => 556,n,ExtenSpy(test002,g(TEST)d)


Beneath is the log from connection:
  == Using SIP RTP CoS mark 5
    -- Executing [12 at phones:1] Goto("SIP/test004-00000080",
"internal,12,1") in new stack
    -- Goto (internal,12,1)
    -- Executing [12 at internal:1] Set("SIP/test004-00000080",
"SPYGROUP=TEST") in new stack
    -- Executing [12 at internal:2] Dial("SIP/test004-00000080",
"SIP/test002,10") in new stack
  == Using SIP RTP CoS mark 5
    -- Called test002
    -- SIP/test002-00000081 is ringing
    -- SIP/test002-00000081 answered SIP/test004-00000080
    -- Packet2Packet bridging SIP/test004-00000080 and
SIP/test002-00000081
  == Using SIP RTP CoS mark 5
    -- Executing [556 at phones:1] Goto("SIP/test003-00000082",
"queue,556,1") in new stack
    -- Goto (queue,556,1)
    -- Executing [556 at queue:1] Set("SIP/test003-00000082",
"SPYGROUP=TEST") in new stack
    -- Executing [556 at queue:2] ChanSpy("SIP/test003-00000082",
"test002,g(TEST)d") in new stack
    -- <SIP/test003-00000082> Playing 'beep.gsm' (language 'en')

====================================================================== 

---------------------------------------------------------------------- 
 (0133212) lmadsen (administrator) - 2011-03-31 12:26
 https://issues.asterisk.org/view.php?id=18959#c133212 
---------------------------------------------------------------------- 
You're using ChanSpy() wrong. The chanprefix option (which you've filled in
which test002) is incorrect. You should being using a channel prefix, such
as Agent, SIP, IAX2, DAHDI, etc... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-31 12:26 lmadsen        Note Added: 0133212                          
2011-03-31 12:26 lmadsen        Status                   new => closed       
======================================================================




More information about the asterisk-bugs mailing list