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
b7a14330
Commit
b7a14330
authored
13 years ago
by
Tristan Matthews
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_account_crasher' into account_id_in_treestore
parents
e3a19304
54c9e6e0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
daemon/src/sip/siptransport.cpp
+1
-1
1 addition, 1 deletion
daemon/src/sip/siptransport.cpp
daemon/src/sip/siptransport.h
+8
-6
8 additions, 6 deletions
daemon/src/sip/siptransport.h
with
9 additions
and
7 deletions
daemon/src/sip/siptransport.cpp
+
1
−
1
View file @
b7a14330
...
...
@@ -225,7 +225,7 @@ pj_status_t SipTransport::createStunResolver(pj_str_t serverName, pj_uint16_t po
return
status
;
}
pj_status_t
SipTransport
::
destroyStunResolver
(
const
std
::
string
serverName
)
pj_status_t
SipTransport
::
destroyStunResolver
(
const
std
::
string
&
serverName
)
{
std
::
map
<
std
::
string
,
pj_stun_sock
*>::
iterator
it
;
it
=
stunSocketMap_
.
find
(
serverName
);
...
...
This diff is collapsed.
Click to expand it.
daemon/src/sip/siptransport.h
+
8
−
6
View file @
b7a14330
...
...
@@ -33,6 +33,7 @@
#define SIPTRANSPORT_H_
#include
<string>
#include
<vector>
#include
<pjsip.h>
#include
<pjlib.h>
...
...
@@ -40,16 +41,16 @@
#include
<pjlib-util.h>
#include
<pjnath.h>
#include
<pjnath/stun_config.h>
#include
"noncopyable.h"
#include
"sipa
ccount
.h"
class
SIPA
ccount
;
class
SipTransport
{
public:
SipTransport
(
pjsip_endpoint
*
endpt
,
pj_caching_pool
*
cp
,
pj_pool_t
*
pool
);
~
SipTransport
();
static
std
::
string
getSIPLocalIP
(
void
);
static
std
::
string
getSIPLocalIP
();
/**
* List all the interfaces on the system and return
...
...
@@ -59,7 +60,7 @@ class SipTransport {
* of interface name available on all of the interfaces on
* the system.
*/
static
std
::
vector
<
std
::
string
>
getAllIpInterfaceByName
(
void
);
static
std
::
vector
<
std
::
string
>
getAllIpInterfaceByName
();
/**
* List all the interfaces on the system and return
...
...
@@ -101,7 +102,7 @@ class SipTransport {
*/
pj_status_t
createStunResolver
(
pj_str_t
serverName
,
pj_uint16_t
port
);
pj_status_t
destroyStunResolver
(
const
std
::
string
serverName
);
pj_status_t
destroyStunResolver
(
const
std
::
string
&
serverName
);
/**
* General Sip transport creation method according to the
...
...
@@ -110,7 +111,7 @@ class SipTransport {
*/
void
createSipTransport
(
SIPAccount
*
account
);
void
createDefaultSipUdpTransport
(
void
);
void
createDefaultSipUdpTransport
();
/**
* Create SIP UDP transport from account's setting
...
...
@@ -176,6 +177,7 @@ class SipTransport {
void
findLocalAddressFromTransport
(
pjsip_transport
*
transport
,
pjsip_transport_type_e
transportType
,
std
::
string
&
address
,
std
::
string
&
port
)
const
;
private
:
NON_COPYABLE
(
SipTransport
);
/**
* UDP Transports are stored in this map in order to retreive them in case
...
...
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