Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
e21cc4af
Commit
e21cc4af
authored
Apr 17, 2014
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quality reporting: do not publish report if we hung up too early (empty local IP address)
parent
2551648d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
coreapi/quality_reporting.c
coreapi/quality_reporting.c
+8
-1
No files found.
coreapi/quality_reporting.c
View file @
e21cc4af
...
...
@@ -232,8 +232,15 @@ static void reporting_publish(const LinphoneCall* call, const reporting_session_
size_t
size
=
2048
;
char
*
buffer
;
buffer
=
(
char
*
)
ms_malloc
(
size
);
// if the call was hungup too early, we might have invalid IPs information
// in that case, we abort the report since it's not useful data
if
(
strlen
(
report
->
info
.
local_addr
.
ip
)
==
0
||
strlen
(
report
->
info
.
remote_addr
.
ip
)
==
0
)
{
ms_warning
(
"The call was hang up too early (duration: %d sec) and IP could "
"not be retrieved so dropping this report"
,
linphone_call_get_duration
(
call
));
return
;
}
buffer
=
(
char
*
)
ms_malloc
(
size
);
content
.
type
=
ms_strdup
(
"application"
);
content
.
subtype
=
ms_strdup
(
"vq-rtcpxr"
);
...
...
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