[Opalvoip-svn] SF.net SVN: opalvoip:[27390] opal/trunk/src/opal/rtpconn.cxx
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2012-03-30 07:59:43
|
Revision: 27390 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=27390&view=rev Author: rjongbloed Date: 2012-03-30 07:59:36 +0000 (Fri, 30 Mar 2012) Log Message: ----------- Only create INVITE sessions for media types we have local media formats for. Modified Paths: -------------- opal/trunk/src/opal/rtpconn.cxx Modified: opal/trunk/src/opal/rtpconn.cxx =================================================================== --- opal/trunk/src/opal/rtpconn.cxx 2012-03-30 04:37:17 UTC (rev 27389) +++ opal/trunk/src/opal/rtpconn.cxx 2012-03-30 07:59:36 UTC (rev 27390) @@ -117,7 +117,13 @@ vector<bool> OpalRTPConnection::CreateAllMediaSessions(CreateMediaSessionsSecurity security) { - const OpalMediaTypeList allMediaTypes = OpalMediaType::GetList(); + OpalMediaTypeList allMediaTypes; + for (OpalMediaFormatList::iterator it = m_localMediaFormats.begin(); it != m_localMediaFormats.end(); ++it) { + OpalMediaType mediaType = it->GetMediaType(); + if (std::find(allMediaTypes.begin(), allMediaTypes.end(), mediaType) == allMediaTypes.end()) + allMediaTypes.push_back(mediaType); + } + const PStringArray cryptoSuites = endpoint.GetMediaCryptoSuites(); vector<bool> openedMediaSessions(allMediaTypes.size()*cryptoSuites.GetSize()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |