Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
bccc0a6b
Commit
bccc0a6b
authored
Oct 04, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the alternate-server error
parent
696c98b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
agent/conncheck.c
agent/conncheck.c
+12
-2
No files found.
agent/conncheck.c
View file @
bccc0a6b
...
@@ -1699,7 +1699,12 @@ static gboolean priv_map_reply_to_discovery_request (NiceAgent *agent, StunMessa
...
@@ -1699,7 +1699,12 @@ static gboolean priv_map_reply_to_discovery_request (NiceAgent *agent, StunMessa
agent
,
d
,
(
int
)
res
);
agent
,
d
,
(
int
)
res
);
if
(
res
==
STUN_USAGE_BIND_RETURN_ALTERNATE_SERVER
)
{
if
(
res
==
STUN_USAGE_BIND_RETURN_ALTERNATE_SERVER
)
{
/* TODO : handle alternate server */
/* handle alternate server */
NiceAddress
niceaddr
;
nice_address_set_from_sockaddr
(
&
niceaddr
,
&
alternate
);
d
->
server
=
niceaddr
;
d
->
pending
=
FALSE
;
}
else
if
(
res
==
STUN_USAGE_BIND_RETURN_SUCCESS
)
{
}
else
if
(
res
==
STUN_USAGE_BIND_RETURN_SUCCESS
)
{
/* case: succesful binding discovery, create a new local candidate */
/* case: succesful binding discovery, create a new local candidate */
NiceAddress
niceaddr
;
NiceAddress
niceaddr
;
...
@@ -1769,7 +1774,12 @@ static gboolean priv_map_reply_to_relay_request (NiceAgent *agent, StunMessage *
...
@@ -1769,7 +1774,12 @@ static gboolean priv_map_reply_to_relay_request (NiceAgent *agent, StunMessage *
agent
,
d
,
(
int
)
res
);
agent
,
d
,
(
int
)
res
);
if
(
res
==
STUN_USAGE_TURN_RETURN_ALTERNATE_SERVER
)
{
if
(
res
==
STUN_USAGE_TURN_RETURN_ALTERNATE_SERVER
)
{
/* TODO : handle alternate server */
/* handle alternate server */
NiceAddress
niceaddr
;
nice_address_set_from_sockaddr
(
&
niceaddr
,
&
alternate
);
d
->
server
=
niceaddr
;
d
->
pending
=
FALSE
;
}
else
if
(
res
==
STUN_USAGE_TURN_RETURN_RELAY_SUCCESS
||
}
else
if
(
res
==
STUN_USAGE_TURN_RETURN_RELAY_SUCCESS
||
res
==
STUN_USAGE_TURN_RETURN_MAPPED_SUCCESS
)
{
res
==
STUN_USAGE_TURN_RETURN_MAPPED_SUCCESS
)
{
/* case: succesful allocate, create a new local candidate */
/* case: succesful allocate, create a new local candidate */
...
...
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