From e7fcef63d8b4854a1f10381e6094123acf8c7a8a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 27 Feb 2020 12:05:36 -0500
Subject: [PATCH] sip: fix getPeerNumber on control socket

This fix the contact requests generation when receiving a vcard chunk or any
SIP messages during a call

Change-Id: Id3a35c87ac4d343dc834a18ad332f11a31676159
---
 src/jamidht/jamiaccount.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp
index 0b53de56af..004b062021 100644
--- a/src/jamidht/jamiaccount.cpp
+++ b/src/jamidht/jamiaccount.cpp
@@ -487,7 +487,7 @@ JamiAccount::startOutgoingCall(const std::shared_ptr<SIPCall>& call, const std::
         call->setTransport(transport);
 
         auto remote_addr = it.channel->underlyingICE()->getRemoteAddress(ICE_COMP_SIP_TRANSPORT);
-        onConnectedOutgoingCall(*call, deviceConnIt->first, remote_addr);
+        onConnectedOutgoingCall(*call, toUri, remote_addr);
 
         devices.emplace(deviceConnIt->first);
     }
-- 
GitLab