Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
cee7c1aa
Commit
cee7c1aa
authored
12 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#9902: Fix SIPTest for IP to IP call
parent
279af0f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/test/siptest.cpp
+2
-8
2 additions, 8 deletions
daemon/test/siptest.cpp
with
2 additions
and
8 deletions
daemon/test/siptest.cpp
+
2
−
8
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
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment