No subject
Fri Sep 2 03:59:05 CDT 2011
> get_ast_cmd doesn't differentiate between failure and empty list return
> -----------------------------------------------------------------------
>
> Key: ASTERISK-20109
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-20109
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_agi
> Affects Versions: 10.5.1
> Environment: openSuSE 11.4 64bit on Dell M610 blade
> Reporter: Jeremiah Gowdy
> Assignee: Rusty Newton
> Severity: Minor
> Attachments: jgowdy-7-9-2012.diff
>
>
> In res_agi, the get_ast_cmd method returns NULL in the case of "Async AGI datastore disappeared" and in the fairly normal case of empty work list. In the current code, when the datastore disappears (which I've yet to determine why), the at least one of the channels in the associated bridge tend to survive for approximately 30 seconds with repeated broken pipe errors.
> By changing the return value to int and taking the struct pointer by pointer, we are able to properly convey the different conditions to the caller, and thus fail much more quickly.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list