Apply only strictly positive driver default timeouts.

git-svn-id: http://voip.null.ro/svn/yate@5466 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2013-04-15 12:46:48 +00:00
parent af2bdbb374
commit 44e89f8bcd
1 changed files with 4 additions and 1 deletions

View File

@ -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"));