Skip to content
Snippets Groups Projects
Commit 3e6b8543 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

ipv6: prevent compilation failure if CCRTP is not compiled with IPV6 support

parent bb0229b5
No related branches found
No related tags found
No related merge requests found
......@@ -123,9 +123,12 @@ void AudioRtpFactory::initSession()
throw UnsupportedRtpSessionType("Unsupported Rtp Session Exception Type!");
}
} else {
#ifdef CCXX_IPV6
/*if (call_->isIPv6()) {
rtpSession_.reset(new AudioSymmetricRtpSessionIPv6(*call_));
} else */ {
} else */
#endif
{
rtpSession_.reset(new AudioSymmetricRtpSession(*call_));
}
}
......
......@@ -155,7 +155,7 @@ void AudioSymmetricRtpSession::onGotSR(ost::SyncSource& source, ost::RTCPCompoun
}
}
// IPv6
#ifdef CCXX_IPV6
AudioSymmetricRtpSessionIPv6::AudioSymmetricRtpSessionIPv6(SIPCall &call) :
ost::SymmetricRTPSessionIPV6(ost::IPV6Host(call.getLocalIp().c_str()), call.getLocalAudioPort())
......@@ -200,5 +200,6 @@ void AudioSymmetricRtpSessionIPv6::onGotSR(ost::SyncSource& source, ost::RTCPCom
// TODO: do something with this data
}
#endif // CCXX_IPV6
}
......@@ -77,6 +77,8 @@ class AudioSymmetricRtpSession : public ost::SymmetricRTPSession, public AudioRt
void startRTPLoop();
};
#ifdef CCXX_IPV6
class AudioSymmetricRtpSessionIPv6 : public ost::SymmetricRTPSessionIPV6, public AudioRtpSession {
public:
/**
......@@ -111,6 +113,8 @@ class AudioSymmetricRtpSessionIPv6 : public ost::SymmetricRTPSessionIPV6, public
void startRTPLoop();
};
#endif // CCXX_IPV6
}
#pragma GCC diagnostic warning "-Weffc++"
#endif // AUDIO_SYMMETRIC_RTP_SESSION_H__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment