From 44e89f8bcdee210847384be1083a781e08248873 Mon Sep 17 00:00:00 2001 From: paulc Date: Mon, 15 Apr 2013 12:46:48 +0000 Subject: [PATCH] Apply only strictly positive driver default timeouts. git-svn-id: http://voip.null.ro/svn/yate@5466 acf43c95-373e-0410-b603-e72c3f656dc1 --- engine/Channel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/engine/Channel.cpp b/engine/Channel.cpp index 97efe81e..e92fd07c 100644 --- a/engine/Channel.cpp +++ b/engine/Channel.cpp @@ -808,7 +808,10 @@ bool Channel::callRouted(Message& msg) void Channel::callAccept(Message& msg) { status("accepted"); - setMaxcall(msg,m_driver ? m_driver->timeout() : 0); + int defTout = m_driver ? m_driver->timeout() : -1; + if (defTout <= 0) + defTout = -1; + setMaxcall(msg,defTout); if (m_billid.null()) m_billid = msg.getValue(YSTRING("billid")); m_targetid = msg.getValue(YSTRING("targetid"));