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
b8ea6839
Commit
b8ea6839
authored
15 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
indentation
parent
f61ee617
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sflphone-common/src/call.cpp
+35
-25
35 additions, 25 deletions
sflphone-common/src/call.cpp
with
35 additions
and
25 deletions
sflphone-common/src/call.cpp
+
35
−
25
View file @
b8ea6839
...
...
@@ -86,25 +86,30 @@ std::string
Call
::
getStateStr
()
{
CallState
state
=
getState
();
ConnectionState
connection
=
getConnectionState
();
CallType
type
=
_type
;
ConnectionState
connection
=
getConnectionState
();
CallType
type
=
_type
;
std
::
string
state_str
;
switch
(
state
)
{
case
Active
:
switch
(
connection
)
{
case
Ringing
:
(
type
==
Incoming
)
?
state_str
=
"INCOMING"
:
state_str
=
"RINGING"
;
break
;
case
Connected
:
state_str
=
"CURRENT"
;
break
;
default:
state_str
=
"CURRENT"
;
break
;
}
break
;
switch
(
connection
)
{
case
Ringing
:
(
type
==
Incoming
)
?
state_str
=
"INCOMING"
:
state_str
=
"RINGING"
;
break
;
case
Connected
:
state_str
=
"CURRENT"
;
break
;
default:
state_str
=
"CURRENT"
;
break
;
}
break
;
case
Hold
:
state_str
=
"HOLD"
;
...
...
@@ -115,17 +120,22 @@ Call::getStateStr ()
break
;
case
Inactive
:
switch
(
connection
)
{
case
Ringing
:
(
type
==
Incoming
)
?
state_str
=
"INCOMING"
:
state_str
=
"RINGING"
;
break
;
case
Connected
:
state_str
=
"CURRENT"
;
break
;
default:
state_str
=
"INACTIVE"
;
break
;
}
switch
(
connection
)
{
case
Ringing
:
(
type
==
Incoming
)
?
state_str
=
"INCOMING"
:
state_str
=
"RINGING"
;
break
;
case
Connected
:
state_str
=
"CURRENT"
;
break
;
default:
state_str
=
"INACTIVE"
;
break
;
}
break
;
case
Refused
:
...
...
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