char *id = astman_get_header(m,"ActionID");
ast_mutex_lock(&s->lock);
ast_cli(s->fd, "Response: Error\r\n");
- if (id && &id)
+ if (id && strlen(id))
ast_cli(s->fd, "ActionID: %s\r\n",id);
ast_cli(s->fd, "Message: %s\r\n\r\n", error);
ast_mutex_unlock(&s->lock);
char *id = astman_get_header(m,"ActionID");
ast_mutex_lock(&s->lock);
ast_cli(s->fd, "Response: %s\r\n", resp);
- if (id && &id)
+ if (id && strlen(id))
ast_cli(s->fd, "ActionID: %s\r\n",id);
if (msg)
ast_cli(s->fd, "Message: %s\r\n\r\n", msg);
char bridge[256];
astman_send_ack(s, m, "Channel status will follow");
c = ast_channel_walk(NULL);
- if (id && &id)
+ if (id && strlen(id))
snprintf(idText,256,"ActionID: %s\r\n",id);
while(c) {
if (c->bridge)
astman_send_error(s, m, "Mailbox not specified");
return 0;
}
- if (id && &id)
+ if (id && strlen(id))
snprintf(idText,256,"ActionID: %s\r\n",id);
ast_cli(s->fd, "Response: Success\r\n"
"%s"
return 0;
}
ast_app_messagecount(mailbox, &newmsgs, &oldmsgs);
- if (id && &id) {
+ if (id && strlen(id)) {
snprintf(idText,256,"ActionID: %s\r\n",id);
}
ast_cli(s->fd, "Response: Success\r\n"
context = "default";
status = ast_extension_state(NULL, context, exten);
ast_get_hint(hint, sizeof(hint) - 1, NULL, context, exten);
- if (id && &id) {
+ if (id && strlen(id)) {
snprintf(idText,256,"ActionID: %s\r\n",id);
}
ast_cli(s->fd, "Response: Success\r\n"
astman_send_error(s, m, "Missing action in request");
return 0;
}
- if (id && *id) {
+ if (id && strlen(id)) {
snprintf(idText,256,"ActionID: %s\r\n",id);
}
if (!s->authenticated) {