Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
cee7c1aa
Commit
cee7c1aa
authored
Apr 23, 2012
by
Alexandre Savard
Browse files
#9902: Fix SIPTest for IP to IP call
parent
279af0f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/test/siptest.cpp
View file @
cee7c1aa
...
...
@@ -125,7 +125,7 @@ void SIPTest::testSimpleOutgoingIpCall()
pthread_t
thethread
;
// command to be executed by the thread, user agent server waiting for a call
std
::
string
command
(
"sipp -sn uas -i 127.0.0.1 -p 506
2
-m 1 -bg"
);
std
::
string
command
(
"sipp -sn uas -i 127.0.0.1 -p 506
8
-m 1 -bg"
);
int
rc
=
pthread_create
(
&
thethread
,
NULL
,
sippThread
,
&
command
);
...
...
@@ -134,7 +134,7 @@ void SIPTest::testSimpleOutgoingIpCall()
std
::
string
testaccount
(
"IP2IP"
);
std
::
string
testcallid
(
"callid1234"
);
std
::
string
testcallnumber
(
"sip:test@127.0.0.1:506
2
"
);
std
::
string
testcallnumber
(
"sip:test@127.0.0.1:506
8
"
);
CPPUNIT_ASSERT
(
!
Manager
::
instance
().
hasCurrentCall
());
...
...
@@ -144,9 +144,6 @@ void SIPTest::testSimpleOutgoingIpCall()
// must sleep here until receiving 180 and 200 message from peer
sleep
(
2
);
// call list should be empty for outgoing calls, only used for incoming calls
CPPUNIT_ASSERT
(
Manager
::
instance
().
getCallList
().
empty
());
CPPUNIT_ASSERT
(
Manager
::
instance
().
hasCurrentCall
());
CPPUNIT_ASSERT
(
Manager
::
instance
().
getCurrentCallId
()
==
testcallid
);
...
...
@@ -184,9 +181,6 @@ void SIPTest::testSimpleIncomingIpCall()
CallMap
::
iterator
iterCallId
=
siplink
->
callMap_
.
begin
();
std
::
string
testcallid
=
iterCallId
->
first
;
// TODO: hmmm, should IP2IP call be stored in call list....
CPPUNIT_ASSERT
(
Manager
::
instance
().
getCallList
().
size
()
==
0
);
// Answer this call
CPPUNIT_ASSERT
(
Manager
::
instance
().
answerCall
(
testcallid
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment