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
81c8b841
Commit
81c8b841
authored
13 years ago
by
Alexandre Savard
Browse files
Options
Downloads
Patches
Plain Diff
#8320: Send signal to client on stun failure
parent
884e41b0
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
daemon/src/sip/sipvoiplink.cpp
+4
-4
4 additions, 4 deletions
daemon/src/sip/sipvoiplink.cpp
with
4 additions
and
4 deletions
daemon/src/sip/sipvoiplink.cpp
+
4
−
4
View file @
81c8b841
...
...
@@ -1498,7 +1498,7 @@ pjsip_transport *SIPVoIPLink::createStunTransport(pj_str_t serverName, pj_uint16
DEBUG
(
"UserAgent: Create stun transport server name: %s, port: %d"
,
serverName
,
port
);
// account->getStunPort());
if
(
stunServerResolve
(
serverName
,
port
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Can't resolve STUN server"
);
// Signal client
Manager
::
instance
().
getDbusManager
()
->
getConfigurationManager
()
->
stunStatusFailure
(
""
);
return
NULL
;
}
...
...
@@ -1508,13 +1508,13 @@ pjsip_transport *SIPVoIPLink::createStunTransport(pj_str_t serverName, pj_uint16
if
(
pj_sockaddr_in_init
(
&
boundAddr
,
&
serverName
,
0
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Can't initialize IPv4 socket on %*s:%i"
,
serverName
.
slen
,
serverName
.
ptr
,
port
);
// Signal client
Manager
::
instance
().
getDbusManager
()
->
getConfigurationManager
()
->
stunStatusFailure
(
""
);
return
NULL
;
}
if
(
pj_sock_socket
(
pj_AF_INET
(),
pj_SOCK_DGRAM
(),
0
,
&
sock
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Can't create or bind socket"
);
// Signal client
Manager
::
instance
().
getDbusManager
()
->
getConfigurationManager
()
->
stunStatusFailure
(
""
);
return
NULL
;
}
...
...
@@ -1524,7 +1524,7 @@ pjsip_transport *SIPVoIPLink::createStunTransport(pj_str_t serverName, pj_uint16
if
(
pjstun_get_mapped_addr
(
&
cp_
->
factory
,
1
,
&
sock
,
&
serverName
,
port
,
&
serverName
,
port
,
&
pub_addr
)
!=
PJ_SUCCESS
)
{
ERROR
(
"UserAgent: Can't contact STUN server"
);
pj_sock_close
(
sock
);
// signal client
Manager
::
instance
().
getDbusManager
()
->
getConfigurationManager
()
->
stunStatusFailure
(
""
);
return
NULL
;
}
...
...
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