Fixed bug: always look for transport candidates in session accept.

git-svn-id: http://yate.null.ro/svn/yate/trunk@5359 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2012-12-14 08:52:22 +00:00
parent 173bd0aff3
commit 0db06d7034
1 changed files with 3 additions and 7 deletions

View File

@ -2188,13 +2188,9 @@ void YJGConnection::processActionAccept(JGEvent* event)
if (mediaChanged && c == m_audioContent)
resetEp("audio");
// Update transport(s)
// Force changed for Version0 (we have valid common media)
bool changed = (m_sessVersion == JGSession::Version0);
if (changed) {
changed = updateCandidate(1,*c,*recv);
changed = updateCandidate(2,*c,*recv) || changed;
}
if (changed && !m_audioContent)
bool changed = updateCandidate(1,*c,*recv);
changed = updateCandidate(2,*c,*recv) || changed;
if (!m_audioContent || (changed && c == m_audioContent))
resetCurrentAudioContent(true,false,true,c);
}
if (!m_audioContent)