[asterisk-bugs] [JIRA] (ASTERISK-24006) app_waitforsilence logic error when used as WaitForNoise

M vd S (JIRA) noreply at issues.asterisk.org
Tue Jul 8 21:56:56 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

M vd S updated ASTERISK-24006:
------------------------------

    Description: 
Actually 2 connected issues:

1) In do_waiting(), a condition in which no frames are received is treated as if it would trigger the dsp function. This is okay if the dsp tries to find silence, but if the dsp needs noise, you get the odd result that a muted channel is seen as noise.

2) For some reason, when calling outbound using SIP, and invoking WaitForNoise() almost immediately (as to wait for the called party to start talking), no frames are received, nor is any audio recorded by the Monitor, while WaitForNoise() is running.

Issue 1 is resolved by changing this line:

   dsptime = timereqd;

to 

   if ( wait_for_silence ) dsptime = timereqd; 

Issue 2 is worked around by simply playing a short (1 ms) silent audio file before doing anything else.

I personally don't need to have this fixed, but it might save other users a few hours of searching, since the combined effect of these issues is quite obscure.


  was:
Actually 2 connected issues:

1) In do_waiting(), a condition in which no frames are received is treated as if it would trigger the dsp function. This is okay if the dsp tries to find silence, but if the dsp needs noise, you get the odd result that a muted channel is seen as noise.
2) For some reason, when calling outbound using SIP, and invoking WaitForNoise() almost immediately (as to wait for the called party to start talking), no frames are received, nor is any audio recorded by the Monitor, while WaitForNoise() is running.

Issue 1 is resolved by changing this line:

   dsptime = timereqd;

to 

   if ( wait_for_silence ) dsptime = timereqd; 

Issue 2 is worked around by simply playing a short (1 ms) silent audio file before doing anything else.

I personally don't need to have this fixed, but it might save other users a few hours of searching, since the combined effect of these issues is quite obscure.



> app_waitforsilence logic error when used as WaitForNoise
> --------------------------------------------------------
>
>                 Key: ASTERISK-24006
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24006
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_waitforsilence
>    Affects Versions: 1.8.13.1
>         Environment: N/A (but observed on Debian 7.5)
>            Reporter: M vd S
>            Severity: Trivial
>
> Actually 2 connected issues:
> 1) In do_waiting(), a condition in which no frames are received is treated as if it would trigger the dsp function. This is okay if the dsp tries to find silence, but if the dsp needs noise, you get the odd result that a muted channel is seen as noise.
> 2) For some reason, when calling outbound using SIP, and invoking WaitForNoise() almost immediately (as to wait for the called party to start talking), no frames are received, nor is any audio recorded by the Monitor, while WaitForNoise() is running.
> Issue 1 is resolved by changing this line:
>    dsptime = timereqd;
> to 
>    if ( wait_for_silence ) dsptime = timereqd; 
> Issue 2 is worked around by simply playing a short (1 ms) silent audio file before doing anything else.
> I personally don't need to have this fixed, but it might save other users a few hours of searching, since the combined effect of these issues is quite obscure.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list