- fix compiler warnings
This commit is contained in:
@@ -553,7 +553,7 @@ void Account::onSuccess(resip::ClientRegistrationHandle h, const resip::SipMessa
|
||||
}
|
||||
|
||||
mUsedTransport = response.getReceivedTransportTuple().getType();
|
||||
bool streamTransport = mUsedTransport == resip::TCP || mUsedTransport == resip::TLS;
|
||||
//bool streamTransport = mUsedTransport == resip::TCP || mUsedTransport == resip::TLS;
|
||||
|
||||
// Retry registration for stream based transport too
|
||||
if ( (hostChanged || portChanged) && mRegistrationState == RegistrationState::Registering /*&& !streamTransport*/ && mConfig->at(CONFIG_EXTERNALIP).asBool())
|
||||
|
||||
@@ -125,6 +125,8 @@ void AudioProvider::updateSdpOffer(resip::SdpContents::Session::Medium& sdp, Sdp
|
||||
{
|
||||
case msSendonly: attr = "recvonly"; break;
|
||||
case msInactive: attr = "recvonly"; break;
|
||||
case msRecvonly:
|
||||
case msSendRecv: break; // Do nothing here
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -1085,7 +1085,7 @@ void UserAgent::onOffer(resip::InviteSessionHandle h, const resip::SipMessage& m
|
||||
if (sdp.session().exists("ice-ufrag"))
|
||||
iceUfrag = sdp.session().getValues("ice-ufrag").front().c_str();
|
||||
|
||||
ice::Stack& ice = *s->mIceStack;
|
||||
//ice::Stack& ice = *s->mIceStack;
|
||||
|
||||
uint64_t version = sdp.session().origin().getVersion();
|
||||
std::string remoteIp = sdp.session().connection().getAddress().c_str();
|
||||
@@ -1591,7 +1591,7 @@ VariantMap& UserAgent::config()
|
||||
return mConfig;
|
||||
}
|
||||
|
||||
static void splitToHeaders(resip::Data& content, std::vector<resip::Data>& output)
|
||||
/*static void splitToHeaders(resip::Data& content, std::vector<resip::Data>& output)
|
||||
{
|
||||
resip::Data::size_type startLine = 0, endLine = content.find("\r\n");
|
||||
while (endLine != resip::Data::npos)
|
||||
@@ -1603,9 +1603,9 @@ static void splitToHeaders(resip::Data& content, std::vector<resip::Data>& outpu
|
||||
}
|
||||
if (0 == startLine)
|
||||
output.push_back(content);
|
||||
}
|
||||
}*/
|
||||
|
||||
static bool parseHeader(resip::Data& input, resip::Data& name, resip::Data& value)
|
||||
/*static bool parseHeader(resip::Data& input, resip::Data& name, resip::Data& value)
|
||||
{
|
||||
resip::Data::size_type p = input.find(":");
|
||||
if (p == resip::Data::npos)
|
||||
@@ -1626,7 +1626,7 @@ static bool parseHeader(resip::Data& input, resip::Data& name, resip::Data& valu
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}*/
|
||||
|
||||
void UserAgent::onSipMessage(int flow, const char* msg, unsigned int length, const sockaddr* addr, unsigned int addrlen)
|
||||
{
|
||||
|
||||
@@ -536,12 +536,11 @@ void Session::onReceivedData(PDatagramSocket socket, InternetAddress& src, const
|
||||
{
|
||||
// Try to process incoming data by ICE stack
|
||||
int component = -1, stream = -1;
|
||||
bool processed;
|
||||
if (mIceStack->findStreamAndComponent(socket->family(), socket->localport(), &stream, &component))
|
||||
{
|
||||
ice::ByteBuffer buffer(receivedPtr, receivedSize);
|
||||
buffer.setRemoteAddress(src);
|
||||
processed = mIceStack->processIncomingData(stream, component, buffer);
|
||||
/*bool processed = */mIceStack->processIncomingData(stream, component, buffer);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user