mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
tests: fix testSimpleOutgoingIpCall()
Wasn't using the newest libring API thus causing the test failure. Change-Id: Ic3a65bf81a4e912f5106152a342b81f54ef9b320 Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user