ast_sip_get_sorcery(), "endpoint", endpoint_name))) {
astman_send_error_va(s, m, "Unable to retrieve endpoint %s\n",
endpoint_name);
- return -1;
+ return 0;
}
astman_send_listack(s, m, "Following are Events for each object associated with the the Endpoint",
ast_sip_create_ami_event("EndpointList", ami), ast_free);
if (!buf) {
- return -1;
+ return CMP_STOP;
}
sip_sorcery_object_ami_set_type_name(endpoint, &buf);
endpoints = ast_sip_get_endpoints();
if (!endpoints) {
- return -1;
+ astman_send_error(s, m, "Could not get endpoints\n");
+ return 0;
}
if (!(num = ao2_container_count(endpoints))) {