[asterisk-bugs] [JIRA] (ASTERISK-23973) testsuite: Add test rest_api/channels/ring

Matt Jordan (JIRA) noreply at issues.asterisk.org
Fri Jul 11 10:15:56 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=220470#comment-220470 ] 

Matt Jordan commented on ASTERISK-23973:
----------------------------------------

Unfortunately, this is rather hard to test.

# When a channel is not in a Stasis application, you can't change its state.
# When a channel is in Stasis, it generally is already in a state of Ringing.
# For Local channels, when you Answer the ;2 side (Ringing => Up), the ;1 side goes from a state of Down => Up. Hence, while you can indicate ringing and verify it manually, you can't verify that a POST /ring actually does what you want.

Drat.

> testsuite: Add test rest_api/channels/ring
> ------------------------------------------
>
>                 Key: ASTERISK-23973
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23973
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Resources/res_ari, Tests/testsuite
>    Affects Versions: 12.3.2
>            Reporter: Matt Jordan
>
> This improvement to the testsuite is to add a test for the {{ring}} operation in the channels resource. The test should:
> # Originate a channel into a Stasis application. The channel's state should not be modified - that is, it should be unanswered and no indications should be made on the channel.
> # Use the {{POST /channels/ring}} operation to start a ringing operation on the channel. Verify that the channel's state changes in ARI and AMI.
> # Use the {{DELETE /channels/ring}} operation to end the ringing operation on the channel. Verify that the channel's state changes in ARI and AMI.
> # Hang up the channel!



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



More information about the asterisk-bugs mailing list