Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
acd1363f
Commit
acd1363f
authored
12 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Patches
Plain Diff
* #9910: SipTransport: pass parameters by const reference
parent
5b7fad49
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/sip/siptransport.cpp
+3
-2
3 additions, 2 deletions
daemon/src/sip/siptransport.cpp
daemon/src/sip/siptransport.h
+1
-1
1 addition, 1 deletion
daemon/src/sip/siptransport.h
with
4 additions
and
3 deletions
daemon/src/sip/siptransport.cpp
+
3
−
2
View file @
acd1363f
...
...
@@ -453,13 +453,14 @@ SipTransport::createUdpTransport(const std::string &interface, unsigned int port
}
pjsip_transport
*
SipTransport
::
createUdpTransport
(
const
std
::
string
&
interface
,
unsigned
int
port
,
std
::
string
&
publicAddr
,
unsigned
int
publicPort
)
SipTransport
::
createUdpTransport
(
const
std
::
string
&
interface
,
unsigned
int
port
,
const
std
::
string
&
publicAddr
,
unsigned
int
publicPort
)
{
// init socket to bind this transport to
pj_uint16_t
listeningPort
=
(
pj_uint16_t
)
port
;
pjsip_transport
*
transport
=
NULL
;
DEBUG
(
"SipTransport: Update UDP transport on %s:%d with public addr %s:%d"
,
interface
.
c_str
(),
port
,
publicAddr
.
c_str
(),
publicPort
);
DEBUG
(
"SipTransport: Update UDP transport on %s:%d with public addr %s:%d"
,
interface
.
c_str
(),
port
,
publicAddr
.
c_str
(),
publicPort
);
// determine the ip address for this transport
std
::
string
listeningAddress
;
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sip/siptransport.h
+
1
−
1
View file @
acd1363f
...
...
@@ -140,7 +140,7 @@ class SipTransport {
* @param The public address for this transport
* @param The public port for this transport
*/
pjsip_transport
*
createUdpTransport
(
const
std
::
string
&
interface
,
unsigned
int
port
,
std
::
string
&
publicAddr
,
unsigned
int
publicPort
);
pjsip_transport
*
createUdpTransport
(
const
std
::
string
&
interface
,
unsigned
int
port
,
const
std
::
string
&
publicAddr
,
unsigned
int
publicPort
);
private
:
NON_COPYABLE
(
SipTransport
);
...
...
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