From: Matthew Fredrickson Date: Tue, 27 Jan 2009 23:28:51 +0000 (+0000) Subject: Don't complain about lack of D-channels on PTMP connections X-Git-Tag: 1.6.2.0-beta1~347 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a695067278e4cda2e2f430a3135058d86966532;p=thirdparty%2Fasterisk.git Don't complain about lack of D-channels on PTMP connections git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@171793 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index edd32880e3..81e9655af6 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -3155,8 +3155,11 @@ static int pri_find_dchan(struct dahdi_pri *pri) } if (newslot < 0) { newslot = 0; - ast_log(LOG_WARNING, "No D-channels available! Using Primary channel %d as D-channel anyway!\n", - pri->dchannels[newslot]); + /* This is annoying to see on non persistent layer 2 connections. Let's not complain in that case */ + if (pri->sig != SIG_BRI_PTMP) { + ast_log(LOG_WARNING, "No D-channels available! Using Primary channel %d as D-channel anyway!\n", + pri->dchannels[newslot]); + } } if (old && (oldslot != newslot)) ast_log(LOG_NOTICE, "Switching from from d-channel %d to channel %d!\n",