From c8e5f36f127beeb33dd41a58d1e568632e06aba9 Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Tue, 20 Jun 2017 20:55:20 -0400 Subject: [PATCH] tests: fix testSimpleOutgoingIpCall() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wasn't using the newest libring API thus causing the test failure. Change-Id: Ic3a65bf81a4e912f5106152a342b81f54ef9b320 Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com> --- test/sip/test_SIP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sip/test_SIP.cpp b/test/sip/test_SIP.cpp index ebf16b0c2f..36b986813c 100644 --- a/test/sip/test_SIP.cpp +++ b/test/sip/test_SIP.cpp @@ -140,13 +140,13 @@ void test_SIP::testSimpleOutgoingIpCall() std::cout << "test_SIP: ERROR; return code from pthread_create()" << std::endl; std::string testaccount("IP2IP"); - std::string testcallid("callid1234"); std::string testcallnumber("sip:test@127.0.0.1:5068"); + std::string testcallid; // returned by outgoingCall() CPPUNIT_ASSERT(!Manager::instance().hasCurrentCall()); // start a new call sending INVITE message to sipp instance - Manager::instance().outgoingCall(testaccount, testcallid, testcallnumber); + testcallid = Manager::instance().outgoingCall(testaccount, testcallnumber); // must sleep here until receiving 180 and 200 message from peer sleep(2); -- GitLab