Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
ba85ea0b
Commit
ba85ea0b
authored
Jul 20, 2012
by
Ghislain MARY
Browse files
Fix putting media specific c= line in the SDP.
parent
4a0f3714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
coreapi/sal_eXosip2_sdp.c
coreapi/sal_eXosip2_sdp.c
+12
-11
No files found.
coreapi/sal_eXosip2_sdp.c
View file @
ba85ea0b
...
...
@@ -261,17 +261,6 @@ static void add_line(sdp_message_t *msg, int lineno, const SalStreamDescription
port
=
desc
->
candidates
[
0
].
port
;
}
/*only add a c= line within the stream description if address are differents*/
if
(
strcmp
(
addr
,
sdp_message_c_addr_get
(
msg
,
-
1
,
0
))
!=
0
){
bool_t
inet6
;
if
(
strchr
(
addr
,
':'
)
!=
NULL
){
inet6
=
TRUE
;
}
else
inet6
=
FALSE
;
sdp_message_c_connection_add
(
msg
,
lineno
,
osip_strdup
(
"IN"
),
inet6
?
osip_strdup
(
"IP6"
)
:
osip_strdup
(
"IP4"
),
osip_strdup
(
addr
),
NULL
,
NULL
);
}
if
(
desc
->
proto
==
SalProtoRtpSavp
)
{
int
i
;
...
...
@@ -312,6 +301,18 @@ static void add_line(sdp_message_t *msg, int lineno, const SalStreamDescription
osip_strdup
(
"RTP/AVP"
));
}
/*only add a c= line within the stream description if address are differents*/
if
(
strcmp
(
addr
,
sdp_message_c_addr_get
(
msg
,
-
1
,
0
))
!=
0
){
bool_t
inet6
;
if
(
strchr
(
addr
,
':'
)
!=
NULL
){
inet6
=
TRUE
;
}
else
inet6
=
FALSE
;
sdp_message_c_connection_add
(
msg
,
lineno
,
osip_strdup
(
"IN"
),
inet6
?
osip_strdup
(
"IP6"
)
:
osip_strdup
(
"IP4"
),
osip_strdup
(
addr
),
NULL
,
NULL
);
}
if
(
desc
->
bandwidth
>
0
)
sdp_message_b_bandwidth_add
(
msg
,
lineno
,
osip_strdup
(
"AS"
),
int_2char
(
desc
->
bandwidth
));
if
(
desc
->
ptime
>
0
)
sdp_message_a_attribute_add
(
msg
,
lineno
,
osip_strdup
(
"ptime"
),
...
...
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