Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
acd1363f
Commit
acd1363f
authored
Apr 24, 2012
by
Tristan Matthews
Browse files
* #9910: SipTransport: pass parameters by const reference
parent
5b7fad49
Changes
2
Hide whitespace changes
Inline
Side-by-side
daemon/src/sip/siptransport.cpp
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
;
...
...
daemon/src/sip/siptransport.h
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
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment