Summary: | ASTERISK-24092: testsuite: Add channel/bridge playback control tests | ||
Reporter: | Matt Jordan (mjordan) | Labels: | |
Date Opened: | 2014-07-22 14:55:49 | Date Closed: | 2014-08-14 15:30:17 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Tests/testsuite |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | 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 | ||
Comments: |