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
dcd846c3
Commit
dcd846c3
authored
7 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "res_pjsip_nat.c: Remove unnecessary CMP_STOP."
parents
e0aed61e
564927c5
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
res/res_pjsip_nat.c
+2
-2
2 additions, 2 deletions
res/res_pjsip_nat.c
with
2 additions
and
2 deletions
res/res_pjsip_nat.c
+
2
−
2
View file @
dcd846c3
...
...
@@ -35,6 +35,7 @@
static
void
rewrite_uri
(
pjsip_rx_data
*
rdata
,
pjsip_sip_uri
*
uri
)
{
pj_cstr
(
&
uri
->
host
,
rdata
->
pkt_info
.
src_name
);
uri
->
port
=
rdata
->
pkt_info
.
src_port
;
if
(
!
strcasecmp
(
"WSS"
,
rdata
->
tp_info
.
transport
->
type_name
))
{
/* WSS is special, we don't want to overwrite the URI at all as it needs to be ws */
}
else
if
(
strcasecmp
(
"udp"
,
rdata
->
tp_info
.
transport
->
type_name
))
{
...
...
@@ -42,7 +43,6 @@ static void rewrite_uri(pjsip_rx_data *rdata, pjsip_sip_uri *uri)
}
else
{
uri
->
transport_param
.
slen
=
0
;
}
uri
->
port
=
rdata
->
pkt_info
.
src_port
;
}
static
int
rewrite_route_set
(
pjsip_rx_data
*
rdata
,
pjsip_dialog
*
dlg
)
...
...
@@ -165,7 +165,7 @@ static int find_transport_state_in_use(void *obj, void *arg, int flags)
((
details
->
type
==
transport_state
->
type
)
&&
(
transport_state
->
factory
)
&&
!
pj_strcmp
(
&
transport_state
->
factory
->
addr_name
.
host
,
&
details
->
local_address
)
&&
transport_state
->
factory
->
addr_name
.
port
==
details
->
local_port
)))
{
return
CMP_MATCH
|
CMP_STOP
;
return
CMP_MATCH
;
}
return
0
;
...
...
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