Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
83e1fe3e
Commit
83e1fe3e
authored
Sep 07, 2018
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash when trying to access LinphoneCall.getToAddress() while in state OutgoingInit.
parent
35830f15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
call-session-p.h
src/conference/session/call-session-p.h
+0
-1
call-session.cpp
src/conference/session/call-session.cpp
+1
-2
call_single_tester.c
tester/call_single_tester.c
+9
-0
No files found.
src/conference/session/call-session-p.h
View file @
83e1fe3e
...
...
@@ -111,7 +111,6 @@ protected:
CallSessionParams
*
remoteParams
=
nullptr
;
mutable
Address
diversionAddress
;
mutable
Address
remoteContactAddress
;
mutable
Address
toAddress
;
std
::
string
subject
;
LinphoneCallDir
direction
=
LinphoneCallOutgoing
;
...
...
src/conference/session/call-session.cpp
View file @
83e1fe3e
...
...
@@ -1304,8 +1304,7 @@ CallSession::State CallSession::getPreviousState () const {
const
Address
&
CallSession
::
getToAddress
()
const
{
L_D
();
d
->
toAddress
=
Address
(
d
->
op
->
getTo
());
return
d
->
toAddress
;
return
*
L_GET_CPP_PTR_FROM_C_OBJECT
(
linphone_call_log_get_to
(
d
->
log
));
}
CallSession
::
State
CallSession
::
getTransferState
()
const
{
...
...
tester/call_single_tester.c
View file @
83e1fe3e
...
...
@@ -49,6 +49,15 @@ void call_state_changed(LinphoneCore *lc, LinphoneCall *call, LinphoneCallState
char
*
to
=
linphone_address_as_string
(
linphone_call_log_get_to
(
calllog
));
char
*
from
=
linphone_address_as_string
(
linphone_call_log_get_from
(
calllog
));
stats
*
counters
;
const
LinphoneAddress
*
to_addr
=
linphone_call_get_to_address
(
call
);
const
LinphoneAddress
*
remote_addr
=
linphone_call_get_remote_address
(
call
);
//const LinphoneAddress *from_addr = linphone_call_get_from_address(call);
BC_ASSERT_PTR_NOT_NULL
(
to_addr
);
//BC_ASSERT_PTR_NOT_NULL(from_addr);
BC_ASSERT_PTR_NOT_NULL
(
remote_addr
);
ms_message
(
" %s call from [%s] to [%s], new state is [%s]"
,
linphone_call_log_get_dir
(
calllog
)
==
LinphoneCallIncoming
?
"Incoming"
:
"Outgoing"
,
from
,
to
...
...
Write
Preview
Markdown
is supported
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