[asterisk-bugs] [JIRA] (ASTERISK-24094) testsuite: Add mute/unmute tests

Matt Jordan (JIRA) noreply at issues.asterisk.org
Tue Jul 22 15:15:56 CDT 2014


Matt Jordan created ASTERISK-24094:
--------------------------------------

             Summary: testsuite: Add mute/unmute tests
                 Key: ASTERISK-24094
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24094
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: Tests/testsuite
            Reporter: Matt Jordan


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.






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



More information about the asterisk-bugs mailing list