[asterisk-bugs] [Asterisk 0016262]: ChanSpy Whisper not working properly when peer has VAD and CNG on.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 18 11:06:18 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16262 
====================================================================== 
Reported By:                CrackBabie
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16262
Category:                   Applications/app_chanspy
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-17 12:32 CST
Last Modified:              2009-11-18 11:06 CST
====================================================================== 
Summary:                    ChanSpy Whisper not working properly when peer has
VAD and CNG on.
Description: 
when I use a SIP provider with VAD/CNG that is always ON. firt of all I get
this in the CLI:

rtp.c:831 process_rfc3389: Comfort noise support incomplete in Asterisk
(RFC 3389). Please turn off on client if possible. Client IP: 0.0.0.0

which is normal and the call would work fine.

the strange thing is when I ChanSpy on the call.
A(Sping)
B(Spied)
C(Person on the other end of the peer.)

A can hear B and C
B can only hear A if C is not silent

so it feels to me that in order for B to hear A there must be audio coming
from C for asterisk to mix it in with A's audio.

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

---------------------------------------------------------------------- 
 (0113939) CrackBabie (reporter) - 2009-11-18 11:06
 https://issues.asterisk.org/view.php?id=16262#c113939 
---------------------------------------------------------------------- 
CONSOLE OUTPUT:

 -- Executing [1234567890 at OUTGOING_CONTEXT:1] Macro("SIP/8000-00000000",
"trunkdial|SIP/SIPProvider1/1235467890|SIP/SIPProvider2/1234567890|SIPProvider1|SIPProvider2")
in new stack
    -- Executing [s at macro-trunkdial:1] GotoIf("SIP/8000-00000000",
"0?2:4") in new stack
    -- Goto (macro-trunkdial,s,4)
    -- Executing [s at macro-trunkdial:4] Set("SIP/8000-00000000",
"CALLERID(all)=CID NAME<8000>") in new stack
    -- Executing [s at macro-trunkdial:5] Goto("SIP/8000-00000000",
"1-dial|1") in new stack
    -- Goto (macro-trunkdial,1-dial,1)
    -- Executing [1-dial at macro-trunkdial:1] Dial("SIP/8000-00000000",
"SIP/SIPProvider1/1234567890") in new stack
    -- Called SIPProvider1/123546890
    -- SIP/SIPProvider1-00000001 is making progress passing it to
SIP/8000-00000000
[Nov 18 11:30:54] NOTICE[6109]: rtp.c:831 process_rfc3389: Comfort noise
support incomplete in Asterisk (RFC 3389). Please turn off on client if
possible. Client IP: 204.8.108.60
    -- SIP/SIPProvider1-00000001 answered SIP/8000-00000000
    -- Executing [007 at ChanSPY_CONTEXT:1] Goto("SIP/9000-00000002",
"SPY|s|1") in new stack
    -- Goto (SPY,s,1)
    -- Executing [s at SPY:1] NoOp("SIP/9000-00000002", "007") in new stack
    -- Executing [s at SPY:2] Read("SIP/9000-00000002", "SPYNUM|extension")
in new stack
    -- <SIP/9000-00000002> Playing 'extension' (language 'en')
    -- Executing [s at SPY:3] ChanSpy("SIP/9000-00000002", "SIP/8000|qw") in
new stack
  == Spying on channel SIP/8000-00000000
[Nov 18 11:31:30] NOTICE[6110]: app_chanspy.c:218 start_spying: Attaching
SIP/9000-00000002 to SIP/8000-00000000
[Nov 18 11:31:30] NOTICE[6110]: app_chanspy.c:218 start_spying: Attaching
SIP/9000-00000002 to SIP/8000-00000000
  == Done Spying on channel SIP/8000-00000000
  == Spawn extension (SPY, s, 3) exited non-zero on 'SIP/9000-00000002'
  == Spawn extension (macro-trunkdial, 1-dial, 1) exited non-zero on
'SIP/8000-00000000' in macro 'trunkdial'
  == Spawn extension (OUTGOING_CONTEXT, 1235468790, 1) exited non-zero on
'SIP/8000-00000000'

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

DIALPLAN

[ChanSPY_CONTEXT]
exten=007,1,Goto(SPY,s,1)

[SPY]
exten=s,1,NoOp(007)
exten=s,2,Read(SPYNUM,extension)
exten=s,3,ChanSpy(SIP/${SPYNUM},qw)

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

Everything works as it should. the only thing is that B(Spied ON) can not
hear A(Spy) if C(Called Party) is silent.

When I try it with another SIP Provider with VAD disabled, B can hear A
even if C is muted.

I know I can tell SIPProvider1 to just disable VAD. but they won't. and
most cheap provider won't. cause they want to save on bandwidth. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-18 11:06 CrackBabie     Note Added: 0113939                          
======================================================================




More information about the asterisk-bugs mailing list