--- asterisk-11.12.1/main/message.c 2014-09-25 12:31:10.575073358 +0200 +++ asterisk-11.12.1a/main/message.c 2014-09-25 12:37:21.343087119 +0200 @@ -1189,7 +1189,7 @@ if (ast_strlen_zero(to)) { astman_send_error(s, m, "No 'To' address specified."); - return -1; + return 0; } if (!ast_strlen_zero(base64body)) { @@ -1204,13 +1204,13 @@ if (!tech_holder) { astman_send_error(s, m, "Message technology not found."); - return -1; + return 0; } if (!(msg = ast_msg_alloc())) { ao2_ref(tech_holder, -1); astman_send_error(s, m, "Internal failure\n"); - return -1; + return 0; } data = astman_get_variables(m); @@ -1235,7 +1235,7 @@ } else { astman_send_ack(s, m, "Message successfully sent"); } - return res; + return 0; } int ast_msg_send(struct ast_msg *msg, const char *to, const char *from)