[asterisk-bugs] [JIRA] (ASTERISK-24354) AMI sendMessage closes AMI connection on error

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Sep 25 08:51:28 CDT 2014


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

Rusty Newton commented on ASTERISK-24354:
-----------------------------------------

Looks like a super simple patch, but feel free to go ahead and put it on Reviewboard to help get it pushed through. 

https://wiki.asterisk.org/wiki/display/AST/Review+Board+Usage

> AMI sendMessage closes AMI connection on error
> ----------------------------------------------
>
>                 Key: ASTERISK-24354
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24354
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/ManagerInterface
>    Affects Versions: 11.13.0
>         Environment: ubuntu precise
>            Reporter: Peter Katzmann
>         Attachments: sendMessage.patch
>
>
> Nearly all AMI functions only report an error on failure but do not interrupt the connection.
> The new AMI sendMessage instead reports the error and returns -1 which closes the connection.
> A better approach would be to do it like neraly all other AMI functions, report the error and returning 0 so the connection keeps alive



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



More information about the asterisk-bugs mailing list