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

Ali Raza (JIRA) noreply at issues.asterisk.org
Fri Apr 17 14:50:25 CDT 2020


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

Ali Raza commented on ASTERISK-26661:
-------------------------------------

I have done some changes at asterisk side code and now i am getting proper response. I can differentiate between actual file played successful and complete and when was unable to play successful then i got error response on PlaybackFinished. I want to share my contribution with asterisk code i am finding a way to do that. please help me 

> res_ari: 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