X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=chan_lcr.c;h=634c08b84644e8167483d712b5e16c94b6b73456;hp=20d522f35dbfd9e0283cd62afd2bf5b6d5ed7c17;hb=1732b615a146a79d651b0f15d0e7c15334d5bece;hpb=0b497a74737ae2a03da278093a5b42b68549dd7b diff --git a/chan_lcr.c b/chan_lcr.c index 20d522f..634c08b 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -246,8 +246,10 @@ void chan_lcr_log(int type, const char *file, int line, const char *function, st strncpy(ast_text, ast->name, sizeof(ast_text)-1); ast_text[sizeof(ast_text)-1] = '\0'; -printf("\n[call=%s ast=%s] %s\n", call_text, ast_text, buffer); // ast_log(type, file, line, function, "[call=%s ast=%s] %s", call_text, ast_text, buffer); +#if 0 + printf("[call=%s ast=%s] %s", call_text, ast_text, buffer); +#endif ast_mutex_unlock(&log_lock); } @@ -1669,7 +1671,7 @@ again: if (*p && ast) { if (ast_channel_trylock(ast)) { ast_mutex_unlock(&chan_lock); - usleep(1000); + usleep(1); ast_mutex_lock(&chan_lock); goto again; } @@ -1977,8 +1979,8 @@ static void send_digit_to_chan(struct ast_channel * ast, char digit ) ast_playtones_start(ast,0,dtmf_tones[15], 0); else { /* not handled */ -// ast_log(LOG_DEBUG, "Unable to handle DTMF tone " -// "'%c' for '%s'\n", digit, ast->name); + CDEBUG(NULL, ast, "Unable to handle DTMF tone " + "'%c' for '%s'\n", digit, ast->name); } }