aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-27 23:28:51 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2009-01-27 23:28:51 +0000
commit50319cf4f9e2503a8aa60ba6836e72dc0ee71bc2 (patch)
treed6d285f07518077b75f0252d74e154a954b22c99 /channels/chan_dahdi.c
parent904a944798e0a2dd202362098155b3fede7be672 (diff)
Don't complain about lack of D-channels on PTMP connections
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@171793 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index edd32880e..81e9655af 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",