[Home]

Summary:ASTERISK-24094: testsuite: Add mute/unmute tests
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-07-22 15:15:03Date Closed:2014-08-29 14:26:08
Priority:MajorRegression?
Status:Closed/CompleteComponents:Tests/testsuite
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:This test is to cover the {{/mute}} operation on channels. In order to 'know' whether or not we are effectively muting a channel's audio in a particular direction, we have to test to see if we are getting 'speaking' during a particular period of time.

The general structure of all of these tests is to send a Local channel (both halves) into a Stasis application. Once there, the TALK_DETECT function should be used to determine if audio is flowing through the Local channel. Note that *order matters*: if you place a TALK_DETECT function in the incorrect order, you may incorrectly 'detect' audio before it has been squelched by the mute functionality.

h3. Mute/unmute bi-directional
* On the {{;1}} Local channel, mute the channel
* Place a TALK_DETECT hook on both sides of the Local channel
* Issue {{/play}} operations on both sides of the Local channel
* Verify that talk detection events are only received from the {{;2}} channel
* Delete the {{/mute}}
* Issue {{/play}} operations on both sides of the Local channel
* Verify that talk detection events are received from both channels

h3. Mute/unmute in only
* On the {{;1}} Local channel, mute the 'in' side of the channel only
* Place a TALK_DETECT hook on both sides of the Local channel
* Issue a {{/play}} operation on the {{;1}} channel. Verify that only talk detection events from the {{;2}} channel are received.
* Issue a {{/play}} operation on the {{;2}} channel. Verify that talk detection events are received from both channels.

h3. Mute/unmute out only
* On the {{;1}} Local channel, mute the 'out' side of the channel only
* Place a TALK_DETECT hook on both sides of the Local channel
* Issue a {{/play}} operation on the {{;1}} channel. Verify that  talk detection events from both channels are received.
* Issue a {{/play}} operation on the {{;2}} channel. Verify that talk detection events are received from only the {{;2}} channel.


Comments:By: Matt Jordan (mjordan) 2014-08-29 14:26:09.062-0500

Suspending the issue until the tests that were developed can be re-looked at.