Skip to content
Snippets Groups Projects
Commit 5f508463 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Adrien Béraud
Browse files

call: create URI when initialize sip call

When starting outgoing call with jami account, URI is
set as peer number. It could cause parsing issue on clients and lead to
creating multiple instances for the same contact. This patch set peer
id as peer number and create URI when initialize sip call.

Change-Id: I630d56eed90255f26d6c7718f9e05e298dd50150
parent 7fab7afc
No related branches found
No related tags found
No related merge requests found
......@@ -637,7 +637,7 @@ JamiAccount::onConnectedOutgoingCall(SIPCall& call, const std::string& to_id, Ip
call.initIceMediaTransport(true);
call.setIPToIP(true);
call.setPeerNumber(getToUri(to_id+"@"+target.toString(true).c_str()));
call.setPeerNumber(to_id);
const auto localAddress = ip_utils::getInterfaceAddr(getLocalInterface(), target.getFamily());
......@@ -685,7 +685,7 @@ bool
JamiAccount::SIPStartCall(SIPCall& call, IpAddr target)
{
call.setupLocalSDPFromIce();
std::string toUri(call.getPeerNumber()); // expecting a fully well formed sip uri
std::string toUri(getToUri(call.getPeerNumber()+"@"+target.toString(true).c_str())); // expecting a fully well formed sip uri
pj_str_t pjTo = pj_str((char*) toUri.c_str());
......
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