[asterisk-bugs] [Asterisk 0016523]: When hanging up a channel running chanspy, chanspy does not exit

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 13 10:31:17 CST 2010


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16523 
====================================================================== 
Reported By:                kobaz
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   16523
Category:                   Applications/app_chanspy
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Target Version:             1.6.0.22
Asterisk Version:           1.6.0.20 
JIRA:                       SWP-621 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-12-29 13:23 CST
Last Modified:              2010-01-13 10:31 CST
====================================================================== 
Summary:                    When hanging up a channel running chanspy, chanspy
does not exit
Description: 
extend context services {
  1 => {
    ChanSpy(SIP/3007,Wq);
  }
}

    -- Executing [1 at _cos_internal+local+ld+intl:1]
ChanSpy("SIP/3030-00000006", "SIP/3007,Wq") in new stack
  == Spying on channel SIP/3007-00000005
[Dec 29 14:21:36] NOTICE[1827]: app_chanspy.c:245 start_spying: Attaching
SIP/3030-00000006 to SIP/3007-00000005
[Dec 29 14:21:36] NOTICE[1827]: app_chanspy.c:245 start_spying: Attaching
SIP/3030-00000006 to SIP/3007-00000005

SIP/3030 dials 1 at services
chanspy launches
3030 hangs up.
channel never goes away

pa01*CLI>
pa01*CLI>

nothing happens to the channel that was spying. 

pa01*CLI> core show channels
Channel              Location             State   Application(Data)
SIP/3030-00000006    1 at _cos_internal+loca Up      ChanSpy(SIP/3007,Wq)
SIP/3007-00000005    s at macro-callee-picku Up      Wait(1000)

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0016524 Chanspy cannot spy on a non-bridged cha...
====================================================================== 

---------------------------------------------------------------------- 
 (0116597) svnbot (reporter) - 2010-01-13 10:31
 https://issues.asterisk.org/view.php?id=16523#c116597 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 239712

U   trunk/Makefile
U   trunk/apps/app_waitforring.c
U   trunk/apps/app_waitforsilence.c
U   trunk/main/channel.c

------------------------------------------------------------------------
r239712 | dvossel | 2010-01-13 10:31:15 -0600 (Wed, 13 Jan 2010) | 24
lines

add silence gen to wait apps

asterisk.conf's 'transmit_silence' option existed before
this patch, but was limited to only generating silence
while recording and sending DTMF.  Now enabling the
transmit_silence option generates silence during wait
times as well.

To achieve this, ast_safe_sleep has been modified to
generate silence anytime no other generators are present
and transmit_silence is enabled.  Wait apps not using
ast_safe_sleep now generate silence when transmit_silence
is enabled as well.

(closes issue https://issues.asterisk.org/view.php?id=16524)
Reported by: kobaz

(closes issue https://issues.asterisk.org/view.php?id=16523)
Reported by: kobaz
Tested by: dvossel

Review: https://reviewboard.asterisk.org/r/456/


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=239712 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-13 10:31 svnbot         Checkin                                      
2010-01-13 10:31 svnbot         Note Added: 0116597                          
2010-01-13 10:31 svnbot         Status                   assigned => resolved
2010-01-13 10:31 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list