Changed some debug info.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1097 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2006-11-01 16:51:40 +00:00
parent 5ba84fb8d8
commit 378a084d99
1 changed files with 3 additions and 2 deletions

View File

@ -389,10 +389,11 @@ JGEvent* JGSession::processEvent(JBEvent* jbev, u_int64_t time)
JGEvent* event = 0;
// Process state Ending
if (state() == Ending) {
if (isResponse(jbev) || time > m_timeout) {
bool response = isResponse(jbev);
if (response || time > m_timeout) {
DDebug(m_engine,DebugAll,
"Session. Terminated in state Ending. Reason: '%s'. [%p]",
time > m_timeout ? "timeout" : "hangup",this);
response ? "confirmation" : "timeout",this);
event = new JGEvent(JGEvent::Destroy,this);
}
}