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
This commit is contained in:
parent
903683cddc
commit
4d79371ca9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue