...
 
Commits (67)
......@@ -236,9 +236,7 @@ LinphoneChatMessage *linphone_chat_room_get_last_message_in_history(LinphoneChat
if (!cppPtr)
return nullptr;
LinphoneChatMessage *object = L_INIT(ChatMessage);
L_SET_CPP_PTR_FROM_C_OBJECT(object, cppPtr);
return object;
return linphone_chat_message_ref(L_GET_C_BACK_PTR(cppPtr));
}
LinphoneChatMessage *linphone_chat_room_find_message (LinphoneChatRoom *cr, const char *message_id) {
......
......@@ -2231,8 +2231,10 @@ void MediaSessionPrivate::handleIceEvents (OrtpEvent *ev) {
}
iceAgent->updateIceStateInCallStats();
} else if (evt == ORTP_EVENT_ICE_GATHERING_FINISHED) {
if (!evd->info.ice_processing_successful)
lWarning() << "No STUN answer from [" << linphone_core_get_stun_server(q->getCore()->getCCore()) << "], continuing without STUN";
if (!evd->info.ice_processing_successful) {
std::string stunServer(linphone_core_get_stun_server(q->getCore()->getCCore())?linphone_core_get_stun_server(q->getCore()->getCCore()):"not-set");
lWarning() << "No STUN answer from [" << stunServer << "], continuing without STUN";
}
iceAgent->gatheringFinished();
switch (state) {
case CallSession::State::Updating:
......