Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
2dce2c97
Commit
2dce2c97
authored
6 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "pbx_dundi: Fix debug frame decode string."
parents
55f72f21
916abe7c
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
pbx/dundi-parser.c
+6
-6
6 additions, 6 deletions
pbx/dundi-parser.c
with
6 additions
and
6 deletions
pbx/dundi-parser.c
+
6
−
6
View file @
2dce2c97
...
...
@@ -446,7 +446,7 @@ void dundi_showframe(struct dundi_hdr *fhi, int rx, struct sockaddr_in *sin, int
"INVALID "
,
"UNKNOWN CMD "
,
"NULL "
,
"RE
Q
REQ "
,
"RE
G
REQ "
,
"REGRESPONSE "
,
"CANCEL "
,
"ENCRYPT "
,
...
...
@@ -456,15 +456,15 @@ void dundi_showframe(struct dundi_hdr *fhi, int rx, struct sockaddr_in *sin, int
char
subclass2
[
20
];
char
*
subclass
;
char
tmp
[
256
];
if
((
fhi
->
cmdresp
&
0x3f
)
>
(
int
)
sizeof
(
commands
)
/
(
int
)
sizeof
(
char
*
))
{
snprintf
(
class2
,
(
int
)
sizeof
(
class2
),
"(%d?)"
,
fhi
->
cmdresp
);
if
((
fhi
->
cmdresp
&
0x3f
)
>
=
ARRAY_LEN
(
commands
))
{
snprintf
(
class2
,
sizeof
(
class2
),
"(%d?)"
,
fhi
->
cmdresp
&
0x3f
);
class
=
class2
;
}
else
{
class
=
commands
[
(
int
)(
fhi
->
cmdresp
&
0x3f
)
];
class
=
commands
[
fhi
->
cmdresp
&
0x3f
];
}
snprintf
(
subclass2
,
(
int
)
sizeof
(
subclass2
),
"%02hhx"
,
(
unsigned
char
)
fhi
->
cmdflags
);
snprintf
(
subclass2
,
sizeof
(
subclass2
),
"%02hhx"
,
(
unsigned
char
)
fhi
->
cmdflags
);
subclass
=
subclass2
;
snprintf
(
tmp
,
(
int
)
sizeof
(
tmp
),
snprintf
(
tmp
,
sizeof
(
tmp
),
"%s-Frame -- OSeqno: %3.3d ISeqno: %3.3d Type: %s (%s)
\n
"
,
pref
[
rx
],
fhi
->
oseqno
,
fhi
->
iseqno
,
class
,
fhi
->
cmdresp
&
0x40
?
"Response"
:
"Command"
);
...
...
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