diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index f8ef357a11..00aa40aa91 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -1171,8 +1171,8 @@ static void __send_ping(const void *data) /* I am the schedule, so I'm allowed to do this */ iaxs[callno]->pingid = -1; } - } else if (option_debug > 0) { - ast_log(LOG_DEBUG, "I was supposed to send a PING with callno %d, but no such call exists (and I cannot remove pingid, either).\n", callno); + } else { + ast_debug(1, "I was supposed to send a PING with callno %d, but no such call exists.\n", callno); } ast_mutex_unlock(&iaxsl[callno]); @@ -1217,7 +1217,7 @@ static void __send_lagrq(const void *data) iaxs[callno]->lagid = -1; } } else { - ast_log(LOG_WARNING, "I was supposed to send a LAGRQ with callno %d, but no such call exists (and I cannot remove lagid, either).\n", callno); + ast_debug(1, "I was supposed to send a LAGRQ with callno %d, but no such call exists.\n", callno); } ast_mutex_unlock(&iaxsl[callno]);