Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
fe303aab
Commit
fe303aab
authored
Jul 27, 2012
by
Tristan Matthews
Browse files
* #13800: SIP: stop video rtp earlier
parent
4f0b19a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/sipvoiplink.cpp
View file @
fe303aab
...
...
@@ -893,6 +893,18 @@ SIPVoIPLink::answer(Call *call)
call
->
answer
();
}
namespace
{
void
stopRtpIfCurrent
(
const
std
::
string
&
id
,
SIPCall
&
call
)
{
if
(
Manager
::
instance
().
isCurrentCall
(
id
))
{
call
.
getAudioRtp
().
stop
();
#ifdef SFL_VIDEO
call
.
getVideoRtp
().
stop
();
#endif
}
}
}
void
SIPVoIPLink
::
hangup
(
const
std
::
string
&
id
)
{
...
...
@@ -927,9 +939,7 @@ SIPVoIPLink::hangup(const std::string& id)
// Make sure user data is NULL in callbacks
inv
->
mod_data
[
mod_ua_
.
id
]
=
NULL
;
if
(
Manager
::
instance
().
isCurrentCall
(
id
))
call
->
getAudioRtp
().
stop
();
stopRtpIfCurrent
(
id
,
*
call
);
removeCall
(
id
);
}
...
...
@@ -950,9 +960,7 @@ SIPVoIPLink::peerHungup(const std::string& id)
// Make sure user data is NULL in callbacks
call
->
inv
->
mod_data
[
mod_ua_
.
id
]
=
NULL
;
if
(
Manager
::
instance
().
isCurrentCall
(
id
))
call
->
getAudioRtp
().
stop
();
stopRtpIfCurrent
(
id
,
*
call
);
removeCall
(
id
);
}
...
...
@@ -1359,8 +1367,7 @@ SIPVoIPLink::SIPCallClosed(SIPCall *call)
{
std
::
string
id
(
call
->
getCallId
());
if
(
Manager
::
instance
().
isCurrentCall
(
id
))
call
->
getAudioRtp
().
stop
();
stopRtpIfCurrent
(
id
,
*
call
);
Manager
::
instance
().
peerHungupCall
(
id
);
removeCall
(
id
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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