[asterisk-users] tired of "midget packet received" warnings
Russell Bryant
russell at digium.com
Sun Nov 9 09:15:04 CST 2008
On Nov 8, 2008, at 1:30 PM, Atis Lezdins wrote:
> Asterisk offers very much the same flexibility. You can disable
> specific log levels (for example warnings) in logger.conf or you can
> log everything to syslog, where filter out this specific message.
Of course, there is always this method, which is an even easier way to
disable this specific message:
Index: channels/chan_iax2.c
===================================================================
--- channels/chan_iax2.c (revision 155670)
+++ channels/chan_iax2.c (working copy)
@@ -7058,7 +7058,6 @@
memcpy(&sin, &thread->iosin, sizeof(sin));
if (res < sizeof(*mh)) {
- ast_log(LOG_WARNING, "midget packet received (%d of %zd min)\n",
res, sizeof(*mh));
return 1;
}
if ((vh->zeros == 0) && (ntohs(vh->callno) & 0x8000)) {
--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
More information about the asterisk-users
mailing list