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
22
Merge Requests
22
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
e1f4254d
Commit
e1f4254d
authored
Dec 15, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various call tester fixes.
parent
4bf5640f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
13 deletions
+29
-13
proxy.c
coreapi/proxy.c
+7
-9
address-p.h
src/address/address-p.h
+1
-0
address.cpp
src/address/address.cpp
+6
-0
call-p.h
src/call/call-p.h
+1
-0
call.cpp
src/call/call.cpp
+11
-0
call-session-listener.h
src/conference/session/call-session-listener.h
+1
-0
media-session.cpp
src/conference/session/media-session.cpp
+2
-3
call_single_tester.c
tester/call_single_tester.c
+0
-1
No files found.
coreapi/proxy.c
View file @
e1f4254d
...
...
@@ -1430,21 +1430,19 @@ uint8_t linphone_proxy_config_get_avpf_rr_interval(const LinphoneProxyConfig *cf
}
const
LinphoneAddress
*
linphone_proxy_config_get_contact
(
const
LinphoneProxyConfig
*
cfg
)
{
// Workaround for wrapping.
if
(
cfg
->
contact_address
)
{
linphone_address_unref
(
cfg
->
contact_address
);
const_cast
<
LinphoneProxyConfig
*>
(
cfg
)
->
contact_address
=
NULL
;
}
// Warning : Do not remove, the op can change its contact_address
if
(
!
cfg
->
op
)
return
NULL
;
const
SalAddress
*
salAddr
=
cfg
->
op
->
get_contact_address
();
if
(
!
salAddr
)
return
NULL
;
char
*
buf
=
sal_address_as_string
(
salAddr
);
const_cast
<
LinphoneProxyConfig
*>
(
cfg
)
->
contact_address
=
linphone_address_new
(
buf
);
ms_free
(
buf
);
if
(
cfg
->
contact_address
)
L_GET_PRIVATE_FROM_C_OBJECT
(
cfg
->
contact_address
)
->
setInternalAddress
(
const_cast
<
SalAddress
*>
(
salAddr
));
else
{
char
*
buf
=
sal_address_as_string
(
salAddr
);
const_cast
<
LinphoneProxyConfig
*>
(
cfg
)
->
contact_address
=
linphone_address_new
(
buf
);
ms_free
(
buf
);
}
return
cfg
->
contact_address
;
}
...
...
src/address/address-p.h
View file @
e1f4254d
...
...
@@ -36,6 +36,7 @@ public:
inline
const
SalAddress
*
getInternalAddress
()
const
{
return
internalAddress
;
}
void
setInternalAddress
(
const
SalAddress
*
value
);
private
:
struct
AddressCache
{
...
...
src/address/address.cpp
View file @
e1f4254d
...
...
@@ -33,6 +33,12 @@ LINPHONE_BEGIN_NAMESPACE
// -----------------------------------------------------------------------------
void
AddressPrivate
::
setInternalAddress
(
const
SalAddress
*
addr
)
{
internalAddress
=
sal_address_clone
(
addr
);
}
// -----------------------------------------------------------------------------
Address
::
Address
(
const
string
&
address
)
:
ClonableObject
(
*
new
AddressPrivate
)
{
L_D
();
if
(
!
(
d
->
internalAddress
=
sal_address_new
(
L_STRING_TO_C
(
address
))))
{
...
...
src/call/call-p.h
View file @
e1f4254d
...
...
@@ -78,6 +78,7 @@ private:
bool
onCallSessionAccepted
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
override
;
void
onCallSessionConferenceStreamStarting
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
,
bool
mute
)
override
;
void
onCallSessionConferenceStreamStopping
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
override
;
void
onCallSessionEarlyFailed
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
,
LinphoneErrorInfo
*
ei
)
override
;
void
onCallSessionSetReleased
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
override
;
void
onCallSessionSetTerminated
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
override
;
void
onCallSessionStartReferred
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
override
;
...
...
src/call/call.cpp
View file @
e1f4254d
...
...
@@ -223,6 +223,17 @@ void CallPrivate::onCallSessionConferenceStreamStopping (const shared_ptr<const
linphone_conference_on_call_stream_stopping
(
lc
->
conf_ctx
,
L_GET_C_BACK_PTR
(
q
));
}
void
CallPrivate
::
onCallSessionEarlyFailed
(
const
shared_ptr
<
const
CallSession
>
&
session
,
LinphoneErrorInfo
*
ei
)
{
L_Q
();
LinphoneCallLog
*
log
=
session
->
getLog
();
linphone_core_report_early_failed_call
(
q
->
getCore
()
->
getCCore
(),
linphone_call_log_get_dir
(
log
),
linphone_address_clone
(
linphone_call_log_get_from
(
log
)),
linphone_address_clone
(
linphone_call_log_get_to
(
log
)),
ei
);
linphone_call_unref
(
L_GET_C_BACK_PTR
(
q
));
}
void
CallPrivate
::
onCallSessionSetReleased
(
const
shared_ptr
<
const
CallSession
>
&
session
)
{
L_Q
();
linphone_call_unref
(
L_GET_C_BACK_PTR
(
q
));
...
...
src/conference/session/call-session-listener.h
View file @
e1f4254d
...
...
@@ -37,6 +37,7 @@ public:
virtual
bool
onCallSessionAccepted
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
{
return
false
;
}
virtual
void
onCallSessionConferenceStreamStarting
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
,
bool
mute
)
{}
virtual
void
onCallSessionConferenceStreamStopping
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
{}
virtual
void
onCallSessionEarlyFailed
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
,
LinphoneErrorInfo
*
ei
)
{}
virtual
void
onCallSessionSetReleased
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
{}
virtual
void
onCallSessionSetTerminated
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
{}
virtual
void
onCallSessionStartReferred
(
const
std
::
shared_ptr
<
const
CallSession
>
&
session
)
{}
...
...
src/conference/session/media-session.cpp
View file @
e1f4254d
...
...
@@ -4329,9 +4329,8 @@ void MediaSession::startIncomingNotification () {
if
(
sal_media_description_empty
(
md
)
||
linphone_core_incompatible_security
(
getCore
()
->
getCCore
(),
md
))
{
LinphoneErrorInfo
*
ei
=
linphone_error_info_new
();
linphone_error_info_set
(
ei
,
nullptr
,
LinphoneReasonNotAcceptable
,
488
,
"Not acceptable here"
,
nullptr
);
#if 0
linphone_core_report_early_failed_call(d->core, LinphoneCallIncoming, linphone_address_ref(from_addr), linphone_address_ref(to_addr), ei);
#endif
if
(
d
->
listener
)
d
->
listener
->
onCallSessionEarlyFailed
(
getSharedFromThis
(),
ei
);
d
->
op
->
decline
(
SalReasonNotAcceptable
,
nullptr
);
return
;
}
...
...
tester/call_single_tester.c
View file @
e1f4254d
...
...
@@ -5557,7 +5557,6 @@ static void call_logs_migrate(void) {
call_logs_attr
=
linphone_core_get_call_logs_attribute
(
laure
->
lc
);
*
call_logs_attr
=
bctbx_list_free_with_data
(
*
call_logs_attr
,
(
void
(
*
)(
void
*
))
linphone_call_log_unref
);
*
call_logs_attr
=
linphone_core_read_call_logs_from_config_file
(
laure
->
lc
);
BC_ASSERT_TRUE
(
bctbx_list_size
(
linphone_core_get_call_logs
(
laure
->
lc
))
==
0
);
unlink
(
logs_db
);
ms_free
(
logs_db
);
...
...
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