0 Replies Last post: Aug 22, 2008 12:02 PM by Guest  
Guest

Aug 22, 2008 12:02 PM

[OpenSIPStack] [SoftPhone] OpalOSSConnection::m_RemoteFormatList. Wrong filling?

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;
}


This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel