[asterisk-bugs] [JIRA] (ASTERISK-26661) channels/play REST api call should send an error when media resource not found

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Dec 13 16:31:10 CST 2016


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

Rusty Newton updated ASTERISK-26661:
------------------------------------

    Description: 
The issue is described [here|https://github.com/asterisk/node-ari-client/issues/75].

[Edit by Rusty - copying issue description from Github to here.. ]

When I try to play a non-existing media by doing something like this
{code}
        channel.play({media: 'sound:nonexisting'}, playback).then(function() {
            console.log('Everything is fine');
        }).catch((err) => {
            console.log('Error>', err);
        });
{code}
I never get an error even though in asterisk's logs I can find
{noformat}
WARNING[10620] res_stasis_playback.c: 1481280112.80: Playback failed for sound:nonexisting
{noformat}
I don't know if this is a node-ari-client issue or rather an ari one. I haven't been able to create an issue in https://github.com/asterisk/asterisk repo.

  was:The issue is described [here|https://github.com/asterisk/node-ari-client/issues/75].


> channels/play REST api call should send an error when media resource not found
> ------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26661
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26661
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_ari_channels
>    Affects Versions: 14.1.2
>            Reporter: Artyom Dmitriev
>
> The issue is described [here|https://github.com/asterisk/node-ari-client/issues/75].
> [Edit by Rusty - copying issue description from Github to here.. ]
> When I try to play a non-existing media by doing something like this
> {code}
>         channel.play({media: 'sound:nonexisting'}, playback).then(function() {
>             console.log('Everything is fine');
>         }).catch((err) => {
>             console.log('Error>', err);
>         });
> {code}
> I never get an error even though in asterisk's logs I can find
> {noformat}
> WARNING[10620] res_stasis_playback.c: 1481280112.80: Playback failed for sound:nonexisting
> {noformat}
> I don't know if this is a node-ari-client issue or rather an ari one. I haven't been able to create an issue in https://github.com/asterisk/asterisk repo.



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



More information about the asterisk-bugs mailing list