Skip to content
Snippets Groups Projects
Commit c79bb57a authored by Tristan Matthews's avatar Tristan Matthews
Browse files

sip: support pjsip 2.1.0

Change-Id: I52f354d3fd3c182d8fcc06d29343fa9cd4040de8
Refs: #53765
parent 91832363
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,11 @@ SipTransport::transportStateChanged(pjsip_transport* tp, pjsip_transport_state s
auto transport_key = map_utils::findByValue(transportMap_, tp);
if (transport_key == transportMap_.cend())
return;
#if PJ_VERSION_NUM > (2 << 24 | 1 << 16)
if (state == PJSIP_TP_STATE_SHUTDOWN || state == PJSIP_TP_STATE_DESTROY) {
#else
if (tp->is_shutdown || tp->is_destroying) {
#endif
WARN("Transport was destroyed: {%s}", tp->info);
transportMap_.erase(transport_key++);
transportDestroyedCv_.notify_all();
......
......@@ -570,7 +570,9 @@ SIPVoIPLink::SIPVoIPLink() : sipTransport(), sipAccountMap_(),
outgoing_request_forked_cb,
transaction_state_changed_cb,
sdp_request_offer_cb,
#if PJ_VERSION_NUM > (2 << 24 | 1 << 16)
nullptr /* on_rx_reinvite */,
#endif
sdp_create_offer_cb,
sdp_media_update_cb,
nullptr /* on_send_ack */,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment