Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
belle-sip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
belle-sip
Commits
8747aca9
Commit
8747aca9
authored
May 21, 2014
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash in belle-sip while setting dscp to a non-sip channel
parent
8acd3337
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
stream_channel.c
src/transports/stream_channel.c
+5
-2
No files found.
src/transports/stream_channel.c
View file @
8747aca9
...
...
@@ -118,6 +118,7 @@ int stream_channel_connect(belle_sip_stream_channel_t *obj, const struct addrinf
belle_sip_socket_t
sock
;
tmp
=
1
;
obj
->
base
.
ai_family
=
ai
->
ai_family
;
sock
=
socket
(
ai
->
ai_family
,
SOCK_STREAM
,
IPPROTO_TCP
);
if
(
sock
==
(
belle_sip_socket_t
)
-
1
){
...
...
@@ -192,8 +193,10 @@ int finalize_stream_connection(belle_sip_stream_channel_t *obj, unsigned int rev
#if TARGET_OS_IPHONE
stream_channel_enable_ios_background_mode
(
obj
);
#endif
if
(
obj
->
base
.
stack
->
dscp
)
belle_sip_socket_set_dscp
(
sock
,
obj
->
base
.
lp
->
ai_family
,
obj
->
base
.
stack
->
dscp
);
if
(
obj
->
base
.
stack
->
dscp
&&
obj
->
base
.
lp
){
/*apply dscp only to channel belonging to a SIP listening point*/
belle_sip_socket_set_dscp
(
sock
,
obj
->
base
.
ai_family
,
obj
->
base
.
stack
->
dscp
);
}
set_tcp_nodelay
(
sock
);
return
0
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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