Mark media as muted if chan.rtp returned an empty local IP address.

git-svn-id: http://voip.null.ro/svn/yate@2858 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-09-25 13:16:00 +00:00
parent 1f4f91598c
commit 748e8b3ae6
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ bool SDPSession::dispatchRtp(SDPMedia* media, const char* addr, bool start,
}
m_rtpForward = false;
m_rtpLocalAddr = m->getValue("localip",m_rtpLocalAddr);
m_mediaStatus = MediaStarted;
m_mediaStatus = m_rtpLocalAddr.null() ? MediaMuted : MediaStarted;
const char* sdpPrefix = m->getValue("osdp-prefix","osdp");
if (sdpPrefix) {
unsigned int n = m->length();