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

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Jan 6 16:25:33 CST 2016


     [ https://issues.asterisk.org/jira/browse/ASTERISK-25661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-25661:
------------------------------------

    Summary: No clean way to stop Playback in Asterisk 13 and PLAYBACKSTATUS regression  (was: No clean way to stop Playback in Asterisk 13)

> No clean way to stop Playback in Asterisk 13 and PLAYBACKSTATUS regression
> --------------------------------------------------------------------------
>
>                 Key: ASTERISK-25661
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25661
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_playback, Core/ManagerInterface
>    Affects Versions: 13.3.2, 13.6.0
>            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