[Home]

Summary:ASTERISK-24579: TestSuite: Write Attended Transfers from Stasis Bridge to non-Stasis
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-12-02 12:25:32.000-0600Date Closed:2014-12-12 07:07:50.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.3 Attended: Stasis Bridge to Non-Stasis Application

*Note the second*: Test 1.3 is already met by the existing {{rest_api/bridges/attended_transfer}} test. As a result, that test should simply be renamed to {{rest_api/bridges/attended_transfer/stasis/app}}. Other than confirming that this is correct, no further work needs to be done for this test.

* 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 an attended transfer
* Alice dials the Echo application
* Alice completes the transfer
** (Expected scenario: A Local channel is created. One half is masqueraded into the Echo application. The other half is swapped into the Stasis bridge for Alice's channel)
** _Stasis should emit a StasisStart for the local channel and a StasisEnd for Alice's channel. The StasisStart on the Local channel should indicate it is replacing Alice._
* Bob hangs up.
** _Stasis should emit a StasisEnd event for Bob's channel._
* The Stasis application hangs up the local channel that was bridged to Bob.
** _Stasis should emit a StasisEnd event for the local channel._
* Destroy the Stasis bridge.

h1. 1.4 Attended: Stasis Bridge to Non-Stasis Bridge

* 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 an attended transfer.
* Alice dials the Dial() application to call Carol.
* When Alice and Carol are bridged, Alice completes the transfer.
** (Expected scenario: A local channel is created to link the Stasis and non-Stasis bridges)
** _Stasis should emit StasisStart for the Local channel and a StasisEnd for Alice's channel. The StasisStart on the Local channel should indicate it is replacing Alice._
* Bob hangs up.
** _Stasis should emit a StasisEnd for Bob's channel._
* Carol hangs up.
** (Expected scenario: Since Carol and the local channel are in a basic bridge, the local channel should be hung up)
** _Stasis should emit a StasisEnd for the Local channel._
* Destroy the Stasis bridge.

This test should be implemented in {{tests/rest_api/bridges/attended_transfer/stasis/bridge}}.
Comments: