[asterisk-bugs] [JIRA] (ASTERISK-25661) No clean way to stop Playback in Asterisk 13

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Jan 6 08:11:33 CST 2016


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

Asterisk Team commented on ASTERISK-25661:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> No clean way to stop Playback in Asterisk 13
> --------------------------------------------
>
>                 Key: ASTERISK-25661
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25661
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 13.3.2
>            Reporter: Neil L. Decapia
>
> In Asterisk 11, the {{Playback}} application can be terminated by redirecting the channel via the manager {{Redirect}} action. Channel breaks out of {{Playback}}, and {{PLAYBACKSTATUS}} is set to "SUCCESS":
> {noformat:title=Asterisk Call Manager/1.3}
> Action: Redirect
> Channel: SIP/301-00000000
> Exten: 3000
> Priority: 1
> Context: testing-redirect
> Response: Success
> Message: Redirect successful
> Event: VarSet
> Privilege: dialplan,all
> Channel: SIP/301-00000000
> Variable: PLAYBACKSTATUS
> Value: SUCCESS
> Uniqueid: 1452086660.0
> {noformat}
> In Asterisk 13, {{Redirect}} still breaks the channel out of {{Playback}}, but {{PLAYBACKSTATUS}} is now set to "FAILED":
> {noformat:title=Asterisk Call Manager/2.7.0}
> Action: Redirect
> Channel: SIP/301-00000000
> Exten: 3000
> Priority: 1
> Context: testing-redirect
> Response: Success
> Message: Redirect successful
> Event: VarSet
> Privilege: dialplan,all
> Channel: SIP/301-00000000
> ChannelState: 6
> ChannelStateDesc: Up
> CallerIDNum: 301
> CallerIDName: Carol
> ConnectedLineNum: <unknown>
> ConnectedLineName: <unknown>
> Language: en
> AccountCode: 
> Context: testing
> Exten: 300
> Priority: 1
> Uniqueid: 1452086716.0
> Variable: PLAYBACKSTATUS
> Value: FAILED
> {noformat}
> Scripts now cannot rely on the result to determine if {{Playback}} did indeed encounter an error or if it was merely stopped, etc.
> Asterisk 13 has the manager {{ControlPlayback}} action that can stop playback of a file being played to a channel. However, if {{Playback}} is given more than one file name, then {{ControlPlayback}} only stops the file that's currently playing; {{Playback}} will proceed to play the next file. So {{ControlPlayback}} doesn't really break out of {{Playback}}.
> So to have Asterisk 13 cleanly stop {{Playback}}, the regression\(?\) on the {{PLAYBACKSTATUS}} value (Asterisk 11: "SUCCESS", Asterisk 13: "FAILED") should be fixed, or {{ControlPlayback}} should be changed to completely break out of {{Playback}}.



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



More information about the asterisk-bugs mailing list