Skip to content
GitLab
Explore
Sign in
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
9189c266
Commit
9189c266
authored
6 years ago
by
Jenkins2
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "pbx_dundi: Added IPv6 support for dundi"
parents
1ca54b18
328f772d
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES
+4
-0
4 additions, 0 deletions
CHANGES
pbx/dundi-parser.c
+6
-3
6 additions, 3 deletions
pbx/dundi-parser.c
pbx/dundi-parser.h
+1
-1
1 addition, 1 deletion
pbx/dundi-parser.h
pbx/pbx_dundi.c
+188
-101
188 additions, 101 deletions
pbx/pbx_dundi.c
with
199 additions
and
105 deletions
CHANGES
+
4
−
0
View file @
9189c266
...
@@ -125,6 +125,10 @@ format_jpeg
...
@@ -125,6 +125,10 @@ format_jpeg
------------------
------------------
* The format_jpeg module has been removed.
* The format_jpeg module has been removed.
pbx_dundi
------------------
* DUNDi now supports IPv6
Core:
Core:
------------------
------------------
* libedit is no longer available as an embedded library and must be provided
* libedit is no longer available as an embedded library and must be provided
...
...
This diff is collapsed.
Click to expand it.
pbx/dundi-parser.c
+
6
−
3
View file @
9189c266
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include
"asterisk/dundi.h"
#include
"asterisk/dundi.h"
#include
"dundi-parser.h"
#include
"dundi-parser.h"
static
void
internaloutput
(
const
char
*
str
)
static
void
internaloutput
(
const
char
*
str
)
{
{
fputs
(
str
,
stdout
);
fputs
(
str
,
stdout
);
...
@@ -428,7 +429,7 @@ static void dump_ies(unsigned char *iedata, int spaces, int len)
...
@@ -428,7 +429,7 @@ static void dump_ies(unsigned char *iedata, int spaces, int len)
outputf
(
"
\n
"
);
outputf
(
"
\n
"
);
}
}
void
dundi_showframe
(
struct
dundi_hdr
*
fhi
,
int
rx
,
struct
sockaddr
_in
*
sin
,
int
datalen
)
void
dundi_showframe
(
struct
dundi_hdr
*
fhi
,
int
rx
,
struct
ast_
sockaddr
*
sin
,
int
datalen
)
{
{
char
*
pref
[]
=
{
char
*
pref
[]
=
{
"Tx"
,
"Tx"
,
...
@@ -469,11 +470,13 @@ void dundi_showframe(struct dundi_hdr *fhi, int rx, struct sockaddr_in *sin, int
...
@@ -469,11 +470,13 @@ void dundi_showframe(struct dundi_hdr *fhi, int rx, struct sockaddr_in *sin, int
pref
[
rx
],
pref
[
rx
],
fhi
->
oseqno
,
fhi
->
iseqno
,
class
,
fhi
->
cmdresp
&
0x40
?
"Response"
:
"Command"
);
fhi
->
oseqno
,
fhi
->
iseqno
,
class
,
fhi
->
cmdresp
&
0x40
?
"Response"
:
"Command"
);
outputf
(
tmp
);
outputf
(
tmp
);
snprintf
(
tmp
,
(
int
)
sizeof
(
tmp
),
snprintf
(
tmp
,
(
int
)
sizeof
(
tmp
),
"%s Flags: %s STrans: %5.5d DTrans: %5.5d [%s
:%d
]%s
\n
"
,
(
rx
>
1
)
?
" "
:
""
,
"%s Flags: %s STrans: %5.5d DTrans: %5.5d [%s]%s
\n
"
,
(
rx
>
1
)
?
" "
:
""
,
subclass
,
ntohs
(
fhi
->
strans
)
&
~
DUNDI_FLAG_RESERVED
,
ntohs
(
fhi
->
dtrans
)
&
~
DUNDI_FLAG_RETRANS
,
subclass
,
ntohs
(
fhi
->
strans
)
&
~
DUNDI_FLAG_RESERVED
,
ntohs
(
fhi
->
dtrans
)
&
~
DUNDI_FLAG_RETRANS
,
ast_
inet_ntoa
(
sin
->
sin_addr
),
ntohs
(
sin
->
sin_port
),
ast_
sockaddr_stringify
(
sin
),
fhi
->
cmdresp
&
0x80
?
" (Final)"
:
""
);
fhi
->
cmdresp
&
0x80
?
" (Final)"
:
""
);
outputf
(
tmp
);
outputf
(
tmp
);
dump_ies
(
fhi
->
ies
,
rx
>
1
,
datalen
);
dump_ies
(
fhi
->
ies
,
rx
>
1
,
datalen
);
}
}
...
...
This diff is collapsed.
Click to expand it.
pbx/dundi-parser.h
+
1
−
1
View file @
9189c266
...
@@ -60,7 +60,7 @@ struct dundi_ie_data {
...
@@ -60,7 +60,7 @@ struct dundi_ie_data {
extern
void
dundi_set_output
(
void
(
*
output
)(
const
char
*
data
));
extern
void
dundi_set_output
(
void
(
*
output
)(
const
char
*
data
));
/* Choose a different function for errors */
/* Choose a different function for errors */
extern
void
dundi_set_error
(
void
(
*
output
)(
const
char
*
data
));
extern
void
dundi_set_error
(
void
(
*
output
)(
const
char
*
data
));
extern
void
dundi_showframe
(
struct
dundi_hdr
*
fhi
,
int
rx
,
struct
sockaddr
_in
*
sin
,
int
datalen
);
extern
void
dundi_showframe
(
struct
dundi_hdr
*
fhi
,
int
rx
,
struct
ast_
sockaddr
*
sin
,
int
datalen
);
extern
const
char
*
dundi_ie2str
(
int
ie
);
extern
const
char
*
dundi_ie2str
(
int
ie
);
...
...
This diff is collapsed.
Click to expand it.
pbx/pbx_dundi.c
+
188
−
101
View file @
9189c266
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