Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
1ba5bbbc
Commit
1ba5bbbc
authored
Mar 23, 2012
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#8320: Use two different variables for status and return statement in stun's on_status_cb
parent
d310968b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/preferences.cpp
+0
-2
0 additions, 2 deletions
daemon/src/preferences.cpp
daemon/src/sip/sipvoiplink.cpp
+2
-2
2 additions, 2 deletions
daemon/src/sip/sipvoiplink.cpp
with
2 additions
and
4 deletions
daemon/src/preferences.cpp
+
0
−
2
View file @
1ba5bbbc
...
@@ -377,11 +377,9 @@ void AudioPreference::serialize(Conf::YamlEmitter *emitter)
...
@@ -377,11 +377,9 @@ void AudioPreference::serialize(Conf::YamlEmitter *emitter)
Conf
::
ScalarNode
noise
(
noisereduce_
);
Conf
::
ScalarNode
noise
(
noisereduce_
);
Conf
::
ScalarNode
echo
(
echocancel_
);
Conf
::
ScalarNode
echo
(
echocancel_
);
std
::
stringstream
tailstr
;
std
::
stringstream
tailstr
;
DEBUG
(
"************************************************** serialize echotail %d"
,
echoCancelTailLength_
);
tailstr
<<
echoCancelTailLength_
;
tailstr
<<
echoCancelTailLength_
;
Conf
::
ScalarNode
echotail
(
tailstr
.
str
());
Conf
::
ScalarNode
echotail
(
tailstr
.
str
());
std
::
stringstream
delaystr
;
std
::
stringstream
delaystr
;
DEBUG
(
"************************************************** serialize echodelay %d"
,
echoCancelTailLength_
);
delaystr
<<
echoCancelDelay_
;
delaystr
<<
echoCancelDelay_
;
Conf
::
ScalarNode
echodelay
(
delaystr
.
str
());
Conf
::
ScalarNode
echodelay
(
delaystr
.
str
());
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sip/sipvoiplink.cpp
+
2
−
2
View file @
1ba5bbbc
...
@@ -1233,13 +1233,13 @@ bool SIPVoIPLink::SIPNewIpToIpCall(const std::string& id, const std::string& to)
...
@@ -1233,13 +1233,13 @@ bool SIPVoIPLink::SIPNewIpToIpCall(const std::string& id, const std::string& to)
pj_bool_t
stun_sock_on_status_cb
(
pj_stun_sock
*
stun_sock
UNUSED
,
pj_stun_sock_op
op
UNUSED
,
pj_status_t
status
)
pj_bool_t
stun_sock_on_status_cb
(
pj_stun_sock
*
stun_sock
UNUSED
,
pj_stun_sock_op
op
UNUSED
,
pj_status_t
status
)
{
{
// What ever is the status, we want the keep-alive timer to be rescheduled
// What ever is the status, we want the keep-alive timer to be rescheduled
status
=
PJ_TRUE
;
pj_bool_t
reschedule
=
PJ_TRUE
;
if
(
status
!=
PJ_SUCCESS
)
{
if
(
status
!=
PJ_SUCCESS
)
{
ERROR
(
"Error STUN session failed because %s failed"
,
pj_stun_sock_op_name
(
op
));
ERROR
(
"Error STUN session failed because %s failed"
,
pj_stun_sock_op_name
(
op
));
}
}
return
status
;
return
reschedule
;
}
}
pj_bool_t
stun_sock_on_rx_data_cb
(
pj_stun_sock
*
stun_sock
UNUSED
,
void
*
pkt
UNUSED
,
unsigned
pkt_len
UNUSED
,
const
pj_sockaddr_t
*
src_addr
UNUSED
,
unsigned
addr_len
UNUSED
)
pj_bool_t
stun_sock_on_rx_data_cb
(
pj_stun_sock
*
stun_sock
UNUSED
,
void
*
pkt
UNUSED
,
unsigned
pkt_len
UNUSED
,
const
pj_sockaddr_t
*
src_addr
UNUSED
,
unsigned
addr_len
UNUSED
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment