From 4d79371ca9c26bc0eb4b1b6a835e5c9c10bd62b0 Mon Sep 17 00:00:00 2001 From: marian Date: Thu, 10 Mar 2011 10:52:29 +0000 Subject: [PATCH] Added and chaged debug to see when a channel is trying to make a call on a trunk and fails. git-svn-id: http://yate.null.ro/svn/yate/trunk@4171 acf43c95-373e-0410-b603-e72c3f656dc1 --- modules/server/ysigchan.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/server/ysigchan.cpp b/modules/server/ysigchan.cpp index eb7ada42..1e188d03 100644 --- a/modules/server/ysigchan.cpp +++ b/modules/server/ysigchan.cpp @@ -994,6 +994,8 @@ bool SigChannel::startCall(Message& msg, SigTrunk* trunk) if (ns && ns->name().startsWith(prefix)) sigMsg->params().addParam(ns->name().substr(prefix.length()),*ns); } + Debug(this,DebugAll,"Trying to call on trunk '%s' [%p]", + trunk->name().safe(),this); m_call = trunk->controller()->call(sigMsg,m_reason); if (m_call) { m_call->userdata(this); @@ -1001,7 +1003,7 @@ bool SigChannel::startCall(Message& msg, SigTrunk* trunk) m_reason.clear(); return true; } - DDebug(this,DebugNote,"Failed to call on trunk '%s' reason: '%s' [%p]", + Debug(this,DebugAll,"Failed to call on trunk '%s' reason: '%s' [%p]", trunk->name().safe(),m_reason.c_str(),this); return false; }