[Home]

Summary:ASTERISK-24581: TestSuite: Write Blind Transfer tests for Stasis application interaction
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-12-02 13:21:30.000-0600Date Closed:2015-01-09 11:48:06.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Tests/testsuite
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:*Note*: For reference information, see the [Test Plan|https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=30279826] on the Asterisk wiki.

h1. 1.8 Blind: Stasis Bridge to Non-Stasis application

* Alice dials a Stasis application.
** _Stasis should emit a StasisStart event for Alice's channel._
* The Stasis application originates a call to Bob
** _Stasis should emit a StasisStart for Bob's channel._
* When Bob answers, the Stasis application bridges Alice and Bob.
* Alice initiates a blind transfer.
* Alice dials an extension that calls the Echo() application
** (Expected scenario: A local channel will be created. One half of the local channel will be masqueraded into the Echo application. The other half will be swapped in for Alice's channel in the Stasis bridge.)
** _Stasis should emit a StasisStart for the local channel and a StasisEnd event for Alice. The StasisStart on the Local channel should indicate it is replacing Alice._
* Bob hangs up.
** _Stasis should emit a StasisEnd for Bob's channel._
* The Stasis application hangs up the local channel that was bridged to Bob.
** _Stasis should emit a StasisEnd for the local channel._
* Destroy the Stasis bridge.

*NOTE*: This test is currently covered by the existing {{tests/rest_api/bridges/blind_transfer}} test. It should be renamed to {{tests/rest_api/bridges/blind_transfer/non_stasis}}. The {{test-config.yaml}} should be updated for a more appropriate description of the test.

h1. 1.9 Blind: Stasis Bridge to same Stasis application
* Alice dials a Stasis application.
** _Stasis should emit a StasisStart event for Alice's channel._
* The Stasis application originates a call to Bob
** _Stasis should emit a StasisStart for Bob's channel._
* When Bob answers, the Stasis application bridges Alice and Bob.
* Alice initiates a blind transfer.
* Alice dials an extension that calls the same Stasis application
(Expected scenario: A local channel will be created. One half of the local channel will be masqueraded into the Stasis application. The other half will be swapped in for Alice's channel in the Stasis bridge.)
** _Stasis should emit a StasisStart for each of the local channel halves and a StasisEnd event for Alice. The StasisStart on one of the Local channel halves should indicate it is replacing Alice._
* Bob hangs up.
** _Stasis should emit a StasisEnd for Bob's channel._
* The Stasis application hangs up the local channel that was bridged to Bob.
** _Stasis should emit StasisEnd events for both local channel halves._
* Destroy the Stasis bridge.

This test should be implemented in {{tests/rest_api/bridges/blind_transfer/stasis/stasis_app_same}}.

h1. 1.10 Blind: Stasis Bridge to different Stasis application
* Alice dials Stasis application A.
** _Stasis should emit a StasisStart event for Alice's channel, application A._
* The Stasis application originates a call to Bob
** _Stasis should emit a StasisStart for Bob's channel, application A._
* When Bob answers, the Stasis application bridges Alice and Bob.
* Alice initiates a blind transfer.
* Alice dials an extension that calls Stasis application B.
(Expected scenario: A local channel will be created. One half of the local channel will be masqueraded into the Stasis application. The other half will be swapped in for Alice's channel in the Stasis bridge.)
** _Stasis should emit a StasisStart for each of the local channel halves, one for application A and one for application B, and a StasisEnd event for Alice in application A. The StasisStart for the Local channel in application A should indicate it is replacing Alice._
* Bob hangs up.
** _Stasis should emit a StasisEnd for Bob, application A._
* The Stasis application hangs up the local channel that was bridged to Bob.
** _Stasis should emit StasisEnd events for both local channel halves, one for application A and one for application B._
* Destroy the Stasis bridge.

This test should be implemented in {{tests/rest_api/bridges/blind_transfer/stasis/stasis_app_different}}.
Comments:By: Matt Jordan (mjordan) 2014-12-12 07:11:50.902-0600

Note: 1.8 already exists as {{tests/rest_api/external_interaction/blind_transfer/stasis_bridge_to_non_stasis_app}}

By: John Bigelow (jbigelow) 2015-01-09 11:47:43.941-0600

Committed revision 6220.