[asterisk-bugs] [JIRA] (ASTERISK-24093) testsuite: Add channel/bridge playback control tests

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


Matt Jordan created ASTERISK-24093:
--------------------------------------

             Summary: testsuite: Add channel/bridge playback control tests
                 Key: ASTERISK-24093
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24093
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: Tests/testsuite
            Reporter: Matt Jordan


This issue should result in 4 new tests:
# A test that covers playing back a sound file to a channel and controlling playback by rewinding the playback
# A test that covers playing back a sound file to a channel and controlling playback by fast forwarding the playback
# A test that covers playing back a sound file to a bridge and controlling playback by rewinding the playback
# A test that covers playing back a sound file to a bridge and controlling playback by fast forwarding the playback

h3. tests/rest_api/channels/playback/reverse

# Originate a Local channel into a Stasis application. Place on end in Stasis, the other end in Echo.
# On the Local channel in Stasis, issue a {{/play}} operation with a sound file with a long duration.
# On the returned {{playback}} object, issue a {{/control?operation=reverse}} operation
# Verify that a TestEvent is received indicating that the sound file was rewound:
{noformat}
                  Event: 'TestEvent'
                  State: 'PLAYBACK'
                  Control: 'Rewind'
                  SkipMs: '3000'
{noformat}
# Stop the playback by issuing a DELETE to the playback object
# Hangup the channels

h3. tests/rest_api/channels/playback/forward
# Originate a Local channel into a Stasis application. Place on end in Stasis, the other end in Echo.
# On the Local channel in Stasis, issue a {{/play}} operation with a sound file with a long duration.
# On the returned {{playback}} object, issue a {{/control?operation=forward}} operation
# Verify that a TestEvent is received indicating that the sound file was rewound:
{noformat}
                  Event: 'TestEvent'
                  State: 'PLAYBACK'
                  Control: 'FastForward'
                  SkipMs: '3000'
{noformat}
# Stop the playback by issuing a DELETE to the playback object
# Hangup the channels

h3. tests/rest_api/bridges/playback/reverse
# Originate a Local channel into a Stasis application. Place on end in Stasis, the other end in Echo.
# Make a bridge, and add the Local channel to the bridge.
# On the bridge, issue a {{/play}} operation with a sound file with a long duration.
# On the returned {{playback}} object, issue a {{/control?operation=reverse}} operation
# Verify that a TestEvent is received indicating that the sound file was rewound:
{noformat}
                  Event: 'TestEvent'
                  State: 'PLAYBACK'
                  Control: 'Rewind'
                  SkipMs: '3000'
{noformat}
# Stop the playback by issuing a DELETE to the playback object
# Hangup the channels
# Destroy the bridge

h3. tests/rest_api/bridges/playback/forward
# Originate a Local channel into a Stasis application. Place on end in Stasis, the other end in Echo.
# Make a bridge, and add the Local channel to the bridge.
# On the bridge, issue a {{/play}} operation with a sound file with a long duration.
# On the returned {{playback}} object, issue a {{/control?operation=forward}} operation
# Verify that a TestEvent is received indicating that the sound file was rewound:
{noformat}
                  Event: 'TestEvent'
                  State: 'PLAYBACK'
                  Control: 'FastForward'
                  SkipMs: '3000'
{noformat}
# Stop the playback by issuing a DELETE to the playback object
# Hangup the channels
# Destroy the bridge



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



More information about the asterisk-bugs mailing list