[asterisk-dev] [Code Review] 3564: TALK_DETECT: Tests for Asterisk Test Suite

Matt Jordan reviewboard at asterisk.org
Sat May 24 23:47:48 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3564/
-----------------------------------------------------------

Review request for Asterisk Developers.


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/20140525/032e918e/attachment.html>


More information about the asterisk-dev mailing list