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:
parent
af2bdbb374
commit
44e89f8bcd
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue