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
dd285eea
Commit
dd285eea
authored
Dec 17, 2009
by
Alexandre Savard
Browse files
[#2596] Close stream when hanging up call no yet sent
parent
e6ff28c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
sflphone-common/src/managerimpl.cpp
View file @
dd285eea
...
...
@@ -413,7 +413,7 @@ ManagerImpl::hangupCall (const CallID& call_id)
_debug
(
"ManagerImpl::hangupCall(%s)"
,
call_id
.
c_str
());
PulseLayer
*
pulselayer
;
AccountID
account_id
;
bool
returnValue
;
bool
returnValue
=
true
;
// store the current call id
CallID
current_call_id
=
getCurrentCallId
();
...
...
@@ -446,19 +446,20 @@ ManagerImpl::hangupCall (const CallID& call_id)
if
(
getConfigFromCall
(
call_id
)
==
Call
::
IPtoIP
)
{
returnValue
=
SIPVoIPLink
::
instance
(
AccountNULL
)
->
hangup
(
call_id
);
}
/* Classic call, attached to an account */
else
{
account_id
=
getAccountFromCall
(
call_id
);
if
(
account_id
==
AccountNULL
)
{
_debug
(
"! Manager Hangup Call: Call doesn't exists"
);
return
false
;
return
Value
=
false
;
}
else
{
returnValue
=
getAccountLink
(
account_id
)
->
hangup
(
call_id
);
removeCallAccount
(
call_id
);
returnValue
=
getAccountLink
(
account_id
)
->
hangup
(
call_id
);
removeCallAccount
(
call_id
);
}
}
int
nbCalls
=
getCallList
().
size
();
...
...
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