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
797131da
Commit
797131da
authored
5 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
sipcall: cleanup
Change-Id: I993003f8d448a1181ecdd167df10bedc2048b76e
parent
c38ba2ed
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sip/sipcall.cpp
+1
-2
1 addition, 2 deletions
src/sip/sipcall.cpp
with
1 addition
and
2 deletions
src/sip/sipcall.cpp
+
1
−
2
View file @
797131da
...
@@ -167,11 +167,10 @@ SIPCall::setTransport(const std::shared_ptr<SipTransport>& t)
...
@@ -167,11 +167,10 @@ SIPCall::setTransport(const std::shared_ptr<SipTransport>& t)
if
(
transport_
)
{
if
(
transport_
)
{
setSecure
(
transport_
->
isSecure
());
setSecure
(
transport_
->
isSecure
());
std
::
weak_ptr
<
SIPCall
>
wthis_
=
std
::
static_pointer_cast
<
SIPCall
>
(
shared_from_this
());
// listen for transport destruction
// listen for transport destruction
transport_
->
addStateListener
(
list_id
,
transport_
->
addStateListener
(
list_id
,
[
wthis_
]
(
pjsip_transport_state
state
,
const
pjsip_transport_state_info
*
)
{
[
wthis_
=
weak
()
]
(
pjsip_transport_state
state
,
const
pjsip_transport_state_info
*
)
{
if
(
auto
this_
=
wthis_
.
lock
())
{
if
(
auto
this_
=
wthis_
.
lock
())
{
// end the call if the SIP transport is shut down
// end the call if the SIP transport is shut down
if
(
not
SipTransport
::
isAlive
(
this_
->
transport_
,
state
)
and
this_
->
getConnectionState
()
!=
ConnectionState
::
DISCONNECTED
)
{
if
(
not
SipTransport
::
isAlive
(
this_
->
transport_
,
state
)
and
this_
->
getConnectionState
()
!=
ConnectionState
::
DISCONNECTED
)
{
...
...
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