diff --git a/src/sip/sipcall.cpp b/src/sip/sipcall.cpp index 02a90e8eae34184fe1f67fcf318b2c22552cb662..9179e3da9817ede92c791088a1ee26701b0b7bb2 100644 --- a/src/sip/sipcall.cpp +++ b/src/sip/sipcall.cpp @@ -1468,7 +1468,7 @@ SIPCall::sendTextMessage(const std::map<std::string, std::string>& messages, con // method to prevent unexpected behavior when interoperating with // some SIP implementations. if (not isSipMethodAllowedByPeer(sip_utils::SIP_METHODS::MESSAGE)) { - JAMI_WARN() << fmt::format("[call:{}] Peer does not allow \"{}\" method]", + JAMI_WARN() << fmt::format("[call:{}] Peer does not allow \"{}\" method", getCallId(), sip_utils::SIP_METHODS::MESSAGE); diff --git a/src/sip/sipvoiplink.cpp b/src/sip/sipvoiplink.cpp index aad68002c620a54f6ba06c3ea299dcee406b3bc1..98c226b2ad5380d408990794f955c8780a4351ee 100644 --- a/src/sip/sipvoiplink.cpp +++ b/src/sip/sipvoiplink.cpp @@ -920,7 +920,10 @@ invite_session_state_changed_cb(pjsip_inv_session* inv, pjsip_event* ev) } if (rdata != nullptr) { call->setPeerUaVersion(sip_utils::getPeerUserAgent(rdata)); - call->setPeerAllowMethods(sip_utils::getPeerAllowMethods(rdata)); + auto methods = sip_utils::getPeerAllowMethods(rdata); + if (not methods.empty()) { + call->setPeerAllowMethods(std::move(methods)); + } } switch (inv->state) {