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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 10 14:29:05 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
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:                     feedback
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:              
====================================================================== 
Date Submitted:             2011-03-11 09:37 CST
Last Modified:              2011-05-10 14:29 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')

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

---------------------------------------------------------------------- 
 (0134729) lmadsen (administrator) - 2011-05-10 14:29
 https://issues.asterisk.org/view.php?id=18959#c134729 
---------------------------------------------------------------------- 
You must still be doing something wrong, because I just tested it here and
everything works fine as I'd expect.

This is on trunk, so perhaps you should update to the latest 1.6.2 branch
and test there. If that doesn't work, please verify this is still an issue
on the 1.8 branch as the 1.6.2 branch is now in security fix only mode.

Here is my simply dialplan that works for me:


<pre>
exten => 556,1,Answer()
same => n,ChanSpy(SIP/0004f2,g(TEST)d)

exten => 557,1,NoOp()
same => n,Set(SPYGROUP=TEST)
same => n,Playback(tt-monkeys)
</pre>


Dialplan output:

<pre>
    -- Executing [556 at internal:1] Answer("SIP/w7-0000003b", "") in new
stack
    -- Executing [556 at internal:2] ChanSpy("SIP/w7-0000003b",
"SIP/0004f2,g(TEST)d") in new stack
    -- <SIP/w7-0000003b> Playing 'beep.ulaw' (language 'en')
  == Using UDPTL CoS mark 5
  == Using SIP RTP CoS mark 5
    -- Executing [557 at internal:1] NoOp("SIP/0004f2297d42-0000003c", "") in
new stack
    -- Executing [557 at internal:2] Set("SIP/0004f2297d42-0000003c",
"SPYGROUP=TEST") in new stack
    -- Executing [557 at internal:3] Playback("SIP/0004f2297d42-0000003c",
"tt-monkeys") in new stack
    -- <SIP/0004f2297d42-0000003c> Playing 'tt-monkeys.g722' (language
'en')
    -- <SIP/w7-0000003b> Playing 'spy-sip.ulaw' (language 'en')
    -- <SIP/w7-0000003b> Playing 'digits/4.ulaw' (language 'en')
  == Spying on channel SIP/0004f2297d42-0000003c
[2011-05-10 15:27:03] NOTICE[27645]: app_chanspy.c:483 start_spying:
Attaching SIP/w7-0000003b to SIP/0004f2297d42-0000003c
[2011-05-10 15:27:03] NOTICE[27645]: app_chanspy.c:483 start_spying:
Attaching SIP/w7-0000003b to SIP/0004f2297d42-0000003c
  == Spawn extension (internal, 557, 3) exited non-zero on
'SIP/0004f2297d42-0000003c'

</pre> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-10 14:29 lmadsen        Note Added: 0134729                          
======================================================================




More information about the asterisk-bugs mailing list