[Home]

Summary:ASTERISK-24578: TestSuite: Write Attended Transfers from non-Stasis to a Stasis bridge
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-12-02 12:11:51.000-0600Date Closed:2015-02-13 12:55:31.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.1 Attended: Non-Stasis Application to Stasis Bridge

* Alice calls into the Echo application
* Alice initiates an attended transfer
* 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 event for Bob's channel_
* When Bob answers, the Stasis application bridges Alice and Bob
* Alice completes the Transfer
** (Expected scenario: A Local channel is created. One half masquerades into the Echo application, and the other half is swapped in for Alice's channel in the bridge with Bob)
** _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 for Bob's channel._
* The Stasis application hangs up the Local channel half that is in the bridge with Bob.
** _Stasis should emit a StasisEnd for the Local channel half._
* Destroy the Stasis Bridge.

This test should be implemented in {{tests/rest_api/bridges/attended_transfer/non_stasis/app}}.

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

* Alice dials the Dial() application to call Bob
* Once they are bridged, Alice initiates an attended transfer
* Alice dials a Stasis application
** _Stasis should emit a StasisStart event for Alice's channel_
* The Stasis application originates a call to Carol
** _Stasis should emit a StasisStart event for Carol's channel_
* When Carol answers, the Stasis application bridges Alice and Carol
* Alice completes the transfer.
** (Expected scenario: A Local channel is created to link the Stasis bridge and Non-Stasis bridges)
** _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.
** (Expected scenario: Since Bob 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._
* Carol hangs up.
** _Stasis should emit a StasisEnd for Carol's channel._
* Destroy the Stasis bridge.

This test should be implemented in {{tests/rest_api/bridges/attended_transfer/non_stasis/bridge}}.
Comments:By: John Bigelow (jbigelow) 2015-02-13 12:55:25.146-0600

Committed revision 6407.