[OpenSIPStack] [SoftPhone] OpalOSSConnection::m_RemoteFormatList. Wrong filling?
Brought to you by:
joegenbaclor
From: H.Kropf <mai...@gl...> - 2008-08-22 16:03:05
|
Hi, Line "OnReceivedSDPMediaDescription( ..., ...Video, ...DefaultVideoSessionID) " deletes audio formats from the m_RemoteFormatList and leaves only video formats (if the called endpoint announces video in the "200 OK" response) //=================================================== // OpalOSSConnection.cxx //=================================================== BOOL OpalOSSConnection::OnIncomingSDPOffer( const SIPMessage & _sdp ) { OString sdp = _sdp.GetBody(); SDPSessionDescription* remoteSDP = new SDPSessionDescription( GetLocalAddress() ); SDPMediaDescription * mediaDescription; BOOL ok = FALSE; if ( remoteSDP->Decode( sdp ) ) { m_RemoteSDP = *remoteSDP; mediaDescription = m_RemoteSDP.GetMediaDescription( SDPMediaDescription::Audio ); if ( mediaDescription ) { ok = OnReceivedSDPMediaDescription( m_RemoteSDP, SDPMediaDescription::Audio, OpalMediaFormat::DefaultAudioSessionID ); m_RemoteFormatList += OpalRFC2833; } mediaDescription = m_RemoteSDP.GetMediaDescription( SDPMediaDescription::Video ); if ( mediaDescription ) ok = OnReceivedSDPMediaDescription( m_RemoteSDP, SDPMediaDescription::Video, OpalMediaFormat::DefaultVideoSessionID ) || ok; } delete remoteSDP; return ok; } |