Commit ff72b5a8 authored by Adrien Béraud's avatar Adrien Béraud

jamiaccount: cleanup

Change-Id: I78e539ba9702bba09afb0f6c3bacd115e3fde737
parent 16a95375
......@@ -774,7 +774,7 @@ JamiAccount::onConnectedOutgoingCall(const std::shared_ptr<SIPCall>& call,
}
bool
JamiAccount::SIPStartCall(SIPCall& call, IpAddr target)
JamiAccount::SIPStartCall(SIPCall& call, const IpAddr& target)
{
if (call.isIceEnabled())
call.addLocalIceAttributes();
......@@ -788,7 +788,7 @@ JamiAccount::SIPStartCall(SIPCall& call, IpAddr target)
std::string from(getFromUri());
pj_str_t pjFrom = sip_utils::CONST_PJ_STR(from);
std::string targetStr = getToUri(target.toString(true) /*+";transport=ICE"*/);
std::string targetStr = getToUri(target.toString(true));
pj_str_t pjTarget = sip_utils::CONST_PJ_STR(targetStr);
pj_str_t pjContact;
......@@ -2974,7 +2974,7 @@ JamiAccount::getFromUri() const
std::string
JamiAccount::getToUri(const std::string& to) const
{
return "<sips:" + to + ";transport=tls>";
return fmt::format("<sips:{};transport=tls>", to);
}
pj_str_t
......
......@@ -690,7 +690,7 @@ private:
* @param call The current call
* @return true if all is correct
*/
bool SIPStartCall(SIPCall& call, IpAddr target);
bool SIPStartCall(SIPCall& call, const IpAddr& target);
/**
* For a call with (from_device, from_account), check the peer certificate chain (cert_list,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment