[asterisk-dev] [Code Review] 2625: Properly indicate a failure to open an audio stream in res_agi

Matt Jordan reviewboard at asterisk.org
Mon Jun 24 15:54:01 CDT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2625/#review8949
-----------------------------------------------------------

Ship it!


- Matt Jordan


On June 14, 2013, 5:01 p.m., Michael Young wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2625/
> -----------------------------------------------------------
> 
> (Updated June 14, 2013, 5:01 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-21903
>     https://issues.asterisk.org/jira/browse/ASTERISK-21903
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> If there is an error streaming an audio file, the current return status makes it difficult for an AGI script to determine that there was an error with the audio file.
> 
> This patches changes the result to return -1 and the function returns RESULT_FAILURE instead of RESULT_SUCCESS.  From looking at other parts of res_agi, this would appear to be the proper way to handle an error.
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/res/res_agi.c 391553 
> 
> Diff: https://reviewboard.asterisk.org/r/2625/diff/
> 
> 
> Testing
> -------
> 
> The reporter on the issue has tested out the patch on 1.8 and on 11.  He indicated that it was working for him.
> 
> 
> Thanks,
> 
> Michael Young
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130624/a2f4b140/attachment-0001.htm>


More information about the asterisk-dev mailing list