[asterisk-dev] [Code Review] 4232: Testsuite: Tests for AMI NewConnectedLine and ARI ChannelConnectedLine events

Mark Michelson reviewboard at asterisk.org
Mon Dec 8 09:38:54 CST 2014

This is an automatically generated e-mail. To reply, visit:

(Updated Dec. 8, 2014, 3:38 p.m.)

Review request for Asterisk Developers.


Re-added the AMI test and addressed the version issue in the ARI test.

Bugs: ASTERISK-24554

Repository: testsuite


This adds two tests to the testsuite to ensure that connected line events are emitted when the connected line on the channel changes.

In tests/manager/connected_line, a channel places a call to an extension that uses the CONNECTEDLINE() dialplan function to change connected line information. We ensure that an AMI NewConnectedLine event is emitted and that it has the expected values for connected line name and number.

In tests/rest_api/channels/connected_line, a channel calls a Stasis application. When the channel enters Stasis, the Stasis application updates the connected line on the channel using the CONNECTEDLINE() dialplan function. We ensure that a ChannelConnectedLine event is emitted and that the connected line name and number have the expected values.

Diffs (updated)

  /asterisk/trunk/tests/rest_api/channels/tests.yaml 5983 
  /asterisk/trunk/tests/rest_api/channels/connected_line_update/test-config.yaml PRE-CREATION 
  /asterisk/trunk/tests/rest_api/channels/connected_line_update/configs/ast1/extensions.conf PRE-CREATION 
  /asterisk/trunk/tests/manager/tests.yaml 5983 
  /asterisk/trunk/tests/manager/connected_line/test-config.yaml PRE-CREATION 
  /asterisk/trunk/tests/manager/connected_line/configs/ast1/extensions.conf PRE-CREATION 

Diff: https://reviewboard.asterisk.org/r/4232/diff/


The tests pass. In addition, I tested for false positives by removing the calls to the CONNECTEDLINE() dialplan function and ensuring that the tests fail due to the events not being emitted.


Mark Michelson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20141208/615bf8d9/attachment.html>

More information about the asterisk-dev mailing list