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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
6126efbc
Commit
6126efbc
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #9832: AudioZRTPSession: cleanup logging
parent
cb6f01e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/audio/audiortp/audio_zrtp_session.cpp
+7
-16
7 additions, 16 deletions
daemon/src/audio/audiortp/audio_zrtp_session.cpp
with
7 additions
and
16 deletions
daemon/src/audio/audiortp/audio_zrtp_session.cpp
+
7
−
16
View file @
6126efbc
...
...
@@ -34,26 +34,19 @@
#include
"audio_zrtp_session.h"
#include
"zrtp_session_callback.h"
#include
"fileutils.h"
#include
"sip/sipcall.h"
#include
"sip/sdp.h"
#include
"audio/audiolayer.h"
#include
"logger.h"
#include
"manager.h"
#include
"fileutils.h"
#include
<libzrtpcpp/zrtpccrtp.h>
#include
<libzrtpcpp/ZrtpQueue.h>
#include
<libzrtpcpp/ZrtpUserCallback.h>
#include
<cstdio>
#include
<cstring>
#include
<cerrno>
#include
<ccrtp/rtp.h>
namespace
sfl
{
AudioZrtpSession
::
AudioZrtpSession
(
SIPCall
&
call
,
const
std
::
string
&
zidFilename
)
:
AudioZrtpSession
::
AudioZrtpSession
(
SIPCall
&
call
,
const
std
::
string
&
zidFilename
)
:
AudioRtpSession
(
call
,
*
this
,
*
this
),
ost
::
TRTPSessionBase
<
ost
::
SymmetricRTPChannel
,
ost
::
SymmetricRTPChannel
,
ost
::
ZrtpQueue
>
(
ost
::
InetHostAddress
(
call_
.
getLocalIp
().
c_str
()),
call_
.
getLocalAudioPort
(),
...
...
@@ -62,9 +55,8 @@ AudioZrtpSession::AudioZrtpSession(SIPCall &call, const std::string& zidFilename
ost
::
defaultApplication
()),
zidFilename_
(
zidFilename
)
{
DEBUG
(
"AudioZrtpSession initialized"
);
initializeZid
();
DEBUG
(
"
AudioZrtpSession:
Setting new RTP session with destination %s:%d"
,
DEBUG
(
"Setting new RTP session with destination %s:%d"
,
call_
.
getLocalIp
().
c_str
(),
call_
.
getLocalAudioPort
());
}
...
...
@@ -83,18 +75,17 @@ void AudioZrtpSession::initializeZid()
std
::
string
xdg_config
=
std
::
string
(
HOMEDIR
)
+
DIR_SEPARATOR_STR
+
".cache"
+
DIR_SEPARATOR_STR
+
PACKAGE
+
"/"
+
zidFilename_
;
DEBUG
(
"
xdg_config %s"
,
xdg_config
.
c_str
());
DEBUG
(
"xdg_config %s"
,
xdg_config
.
c_str
());
if
(
XDG_CACHE_HOME
!=
NULL
)
{
std
::
string
xdg_env
=
std
::
string
(
XDG_CACHE_HOME
)
+
zidFilename_
;
DEBUG
(
"
xdg_env %s"
,
xdg_env
.
c_str
());
DEBUG
(
"xdg_env %s"
,
xdg_env
.
c_str
());
(
xdg_env
.
length
()
>
0
)
?
zidCompleteFilename
=
xdg_env
:
zidCompleteFilename
=
xdg_config
;
}
else
zidCompleteFilename
=
xdg_config
;
if
(
initialize
(
zidCompleteFilename
.
c_str
())
>=
0
)
{
DEBUG
(
"Register callbacks"
);
setEnableZrtp
(
true
);
setUserCallback
(
new
ZrtpSessionCallback
(
call_
));
return
;
...
...
@@ -133,7 +124,7 @@ void AudioZrtpSession::run()
{
// Set recording sampling rate
call_
.
setRecordingSmplRate
(
getCodecSampleRate
());
DEBUG
(
"
AudioZrtpSession:
Entering mainloop for call %s"
,
call_
.
getCallId
().
c_str
());
DEBUG
(
"Entering mainloop for call %s"
,
call_
.
getCallId
().
c_str
());
uint32
timeout
=
0
;
...
...
@@ -168,7 +159,7 @@ void AudioZrtpSession::run()
}
}
DEBUG
(
"
AudioZrtpSession:
Left main loop for call %s"
,
call_
.
getCallId
().
c_str
());
DEBUG
(
"Left main loop for call %s"
,
call_
.
getCallId
().
c_str
());
}
void
AudioZrtpSession
::
incrementTimestampForDTMF
()
...
...
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
register
or
sign in
to comment