"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/sal/sal.cpp" between
liblinphone-4.5.0.tar.gz and liblinphone-4.5.1.tar.gz

About: Linphone is a cross-platform high-level VoIP library implementing all SIP calling and instant messaging (IM) features within a single API.

sal.cpp  (liblinphone-4.5.0):sal.cpp  (liblinphone-4.5.1)
skipping to change at line 280 skipping to change at line 280
auto response = belle_sip_response_event_get_response(event); auto response = belle_sip_response_event_get_response(event);
int responseCode = belle_sip_response_get_status_code(response); int responseCode = belle_sip_response_get_status_code(response);
auto clientTransaction = belle_sip_response_event_get_client_transaction( event); auto clientTransaction = belle_sip_response_event_get_client_transaction( event);
if (!clientTransaction) { if (!clientTransaction) {
lWarning() << "Discarding stateless response [" << responseCode < < "]"; lWarning() << "Discarding stateless response [" << responseCode < < "]";
return; return;
} }
auto op = static_cast<SalOp *>(belle_sip_transaction_get_application_data (BELLE_SIP_TRANSACTION(clientTransaction))); auto op = static_cast<SalOp *>(belle_sip_transaction_get_application_data (BELLE_SIP_TRANSACTION(clientTransaction)));
if (!op){
/* This happens when receiving a 200 OK for an orphan dialog that
has been BYEd.*/
lInfo() << "No Op related with this response.";
return;
}
if (op->mState == SalOp::State::Terminated) { if (op->mState == SalOp::State::Terminated) {
lInfo() << "Op [" << op << "] is terminated, nothing to do with t his [" << responseCode << "]"; lInfo() << "Op [" << op << "] is terminated, nothing to do with t his [" << responseCode << "]";
return; return;
} }
// Do it all the time, since we can receive provisional responses from a different instance than the final one // Do it all the time, since we can receive provisional responses from a different instance than the final one
op->setRemoteUserAgent(BELLE_SIP_MESSAGE(response)); op->setRemoteUserAgent(BELLE_SIP_MESSAGE(response));
auto remoteContactHeader = belle_sip_message_get_header_by_type(response, belle_sip_header_contact_t); auto remoteContactHeader = belle_sip_message_get_header_by_type(response, belle_sip_header_contact_t);
if (remoteContactHeader) if (remoteContactHeader)
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)