}
res = ast_wait_for_input(ser->fd, -1);
if (res < 0) {
- ast_log(LOG_DEBUG, "ast_wait_for_input returned %d\n", res);
+ ast_debug(1, "ast_wait_for_input returned %d\n", res);
goto cleanup;
}
int res = 0;
const struct sockaddr_in *dst = sip_real_dst(p);
- ast_log(LOG_DEBUG, "Trying to put '%.10s' onto %s socket...\n", data, get_transport(p->socket.type));
+ ast_debug(1, "Trying to put '%.10s' onto %s socket...\n", data, get_transport(p->socket.type));
if (sip_prepare_socket(p) < 0)
return XMIT_ERROR;
if (p->socket.ser->f)
res = server_write(p->socket.ser, data, len);
else
- ast_log(LOG_DEBUG, "No p->socket.ser->f len=%d\n", len);
+ ast_debug(1, "No p->socket.ser->f len=%d\n", len);
}
if (p->socket.lock)
ast_log(LOG_WARNING, "'%s' is not a valid transport value for registration '%s' at line '%d'\n", trans, value, lineno);
} else {
username = buf;
- ast_log(LOG_DEBUG, "no trans\n");
+ ast_debug(1, "no trans\n");
}
/* First split around the last '@' then parse the two components. */
s->fd = ca.accept_fd;
if (ast_pthread_create_background(&ca.master, NULL, sip_tcp_helper_thread, p)) {
- ast_log(LOG_DEBUG, "Unable to launch '%s'.", ca.name);
+ ast_debug(1, "Unable to launch '%s'.", ca.name);
close(ca.accept_fd);
s->fd = ca.accept_fd = -1;
}