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
0df23734
Commit
0df23734
authored
8 years ago
by
zuul
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "res_pjsip_multihomed: Change Contact port to listening port."
parents
ea8105cf
9d894ee0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
res/res_pjsip_multihomed.c
+5
-2
5 additions, 2 deletions
res/res_pjsip_multihomed.c
with
5 additions
and
2 deletions
res/res_pjsip_multihomed.c
+
5
−
2
View file @
0df23734
...
...
@@ -109,8 +109,11 @@ static pj_status_t multihomed_on_tx_message(pjsip_tx_data *tdata)
return
PJ_SUCCESS
;
}
/* The port in the message should always be that of the original transport */
prm
.
ret_port
=
tdata
->
tp_info
.
transport
->
local_name
.
port
;
/* For UDP we can have multiple transports so the port needs to be maintained */
if
(
tdata
->
tp_info
.
transport
->
key
.
type
==
PJSIP_TRANSPORT_UDP
||
tdata
->
tp_info
.
transport
->
key
.
type
==
PJSIP_TRANSPORT_UDP6
)
{
prm
.
ret_port
=
tdata
->
tp_info
.
transport
->
local_name
.
port
;
}
/* If the IP source differs from the existing transport see if we need to update it */
if
(
pj_strcmp
(
&
prm
.
ret_addr
,
&
tdata
->
tp_info
.
transport
->
local_name
.
host
))
{
...
...
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