Skip to content
Snippets Groups Projects
Commit c8e5f36f authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

tests: fix testSimpleOutgoingIpCall()


Wasn't using the newest libring API thus causing
the test failure.

Change-Id: Ic3a65bf81a4e912f5106152a342b81f54ef9b320
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent 0debd060
No related branches found
No related tags found
No related merge requests found
...@@ -140,13 +140,13 @@ void test_SIP::testSimpleOutgoingIpCall() ...@@ -140,13 +140,13 @@ void test_SIP::testSimpleOutgoingIpCall()
std::cout << "test_SIP: ERROR; return code from pthread_create()" << std::endl; std::cout << "test_SIP: ERROR; return code from pthread_create()" << std::endl;
std::string testaccount("IP2IP"); std::string testaccount("IP2IP");
std::string testcallid("callid1234");
std::string testcallnumber("sip:test@127.0.0.1:5068"); std::string testcallnumber("sip:test@127.0.0.1:5068");
std::string testcallid; // returned by outgoingCall()
CPPUNIT_ASSERT(!Manager::instance().hasCurrentCall()); CPPUNIT_ASSERT(!Manager::instance().hasCurrentCall());
// start a new call sending INVITE message to sipp instance // 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 // must sleep here until receiving 180 and 200 message from peer
sleep(2); sleep(2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment