Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
27a822ac
Commit
27a822ac
authored
Jun 14, 2021
by
Adrian Georgescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed decoding SIP trace payload
parent
b3a8f270
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
logging.py
blink/logging.py
+3
-2
No files found.
blink/logging.py
View file @
27a822ac
...
@@ -166,9 +166,10 @@ class LogManager(object, metaclass=Singleton):
...
@@ -166,9 +166,10 @@ class LogManager(object, metaclass=Singleton):
direction
=
"RECEIVED"
direction
=
"RECEIVED"
else
:
else
:
direction
=
"SENDING"
direction
=
"SENDING"
data
=
notification
.
data
.
data
.
decode
()
if
isinstance
(
notification
.
data
.
data
,
bytes
)
else
notification
.
data
.
data
buf
=
[
"
%
s: Packet
%
d, +
%
s"
%
(
direction
,
self
.
_siptrace_packet_count
,
(
notification
.
datetime
-
self
.
_siptrace_start_time
)),
buf
=
[
"
%
s: Packet
%
d, +
%
s"
%
(
direction
,
self
.
_siptrace_packet_count
,
(
notification
.
datetime
-
self
.
_siptrace_start_time
)),
"
%(source_ip)
s:
%(source_port)
d -(SIP over
%(transport)
s)->
%(destination_ip)
s:
%(destination_port)
d"
%
notification
.
data
.
__dict__
,
"
%(source_ip)
s:
%(source_port)
d -(SIP over
%(transport)
s)->
%(destination_ip)
s:
%(destination_port)
d"
%
notification
.
data
.
__dict__
,
notification
.
data
.
data
,
data
,
'--'
]
'--'
]
message
=
'
\n
'
.
join
(
buf
)
message
=
'
\n
'
.
join
(
buf
)
try
:
try
:
...
@@ -406,4 +407,4 @@ class LogManager(object, metaclass=Singleton):
...
@@ -406,4 +407,4 @@ class LogManager(object, metaclass=Singleton):
message
=
(
"
%
s XCAP manager client did not initialize:
%
s"
%
(
notification
.
datetime
,
notification
.
data
.
error
))
message
=
(
"
%
s XCAP manager client did not initialize:
%
s"
%
(
notification
.
datetime
,
notification
.
data
.
error
))
self
.
log_xcap
(
notification
,
message
)
self
.
log_xcap
(
notification
,
message
)
\ No newline at end of file
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