[asterisk-dev] [Code Review] 3564: TALK_DETECT: Tests for Asterisk Test Suite
Matt Jordan
reviewboard at asterisk.org
Fri May 30 07:48:43 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3564/
-----------------------------------------------------------
(Updated May 30, 2014, 7:48 a.m.)
Status
------
This change has been marked as submitted.
Review request for Asterisk Developers.
Changes
-------
Committed in revision 5085
Bugs: ASTERISK-23786
https://issues.asterisk.org/jira/browse/ASTERISK-23786
Repository: testsuite
Description
-------
This adds a test for func_talkdetect. For more information on that function, see r3563.
The test consists of four iterations. In each iteration, the same set of sounds are passed through a Local channel. TALK_DETECT is placed on one half of the local channel, while playbacks are initiated via ARI on the other half. Based on the various parameters passed to TALK_DETECT, a different number of events should be received over AMI/ARI. The iterations are:
- An iteration that sets TALK_DETECT with its default settings. A single pair of events is expected to be received.
- An iteration that sets TALK_DETECT with a short silence threshold and a different talk threshold. Two pairs of events are expected to be received.
- An iteration that sets TALK_DETECT with a very short silence threshold. Three pairs of events are expected to be received.
- An iteration that removes TALK_DETECT. No events should be received.
The test verifies that a total of 6 event pairs are received (over both AMI/ARI), and that in the 'end' events, a duration that is non-zero is present.
Diffs
-----
/asterisk/trunk/tests/funcs/tests.yaml 5060
/asterisk/trunk/tests/funcs/func_talkdetect/test-config.yaml PRE-CREATION
/asterisk/trunk/tests/funcs/func_talkdetect/talk_detect.py PRE-CREATION
/asterisk/trunk/tests/funcs/func_talkdetect/configs/ast1/extensions.conf PRE-CREATION
/asterisk/trunk/lib/python/asterisk/ari.py 5060
Diff: https://reviewboard.asterisk.org/r/3564/diff/
Testing
-------
Thanks,
Matt Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140530/6143a871/attachment.html>
More information about the asterisk-dev
mailing list